maven-plugin

android-maven-plugin: Disable debug build for apk

痴心易碎 提交于 2019-11-27 14:45:13
问题 I am not clear about the exact procedure for disabling debug build while building with android-maven-plugin: I understand that the export wizard with ADT(21.1) will automatically disable debugging but it is broken as BuildConfig.DEBUG always returns true and my logging used to depend on it. (Now I have my own property for logging defined in my maven build profiles.) So if I have to disable debugging using android-maven-plugin, what is the the right way to do it? I use the following plugins:

Tool for creating a Java daemon service on Linux [closed]

[亡魂溺海] 提交于 2019-11-27 13:37:39
What is the best way to create a java application that can be run using ‘service’ on Linux? I was going to use the JSW available here , but cannot use the licence on that (licence is either GPL or it costs money as far as I can tell). I’d need an apache style licence. I’m using maven to build, so it would be great if it was possible to create the service using a maven plugin, but any other suggestions would be great. I've seen Apache Commons Daemon , is there a maven plugin for this? Documentation seems sparse, so a working example of this would be good... Thanks Services on Linux are just

Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved

时光怂恿深爱的人放手 提交于 2019-11-27 13:35:57
I have install maven in my machine. I have properly set the class-path and maven home folder. Every time I execute mvn clean install , it gives me exception. I have also tried to delete the .m2 folder but the same result. mvn -version output Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T19:57:37+08:00) Maven home: C:\maven-3 Java version: 1.7.0_45, vendor: Oracle Corporation Java home: D:\jdk170_45\jre Default locale: en_US, platform encoding: MS950 OS name: "windows 7", version: "6.1", arch: "x86", family: "windows" log for mvn -X clean install Apache Maven 3.3.3

Plugin error: execution not covered by lifecycle configuration

大憨熊 提交于 2019-11-27 13:15:43
I am trying to use the maven-warpath-plugin available here . But I keep getting an error in my pom.xml file that says: Plugin execution not covered by lifecycle configuration: org.appfuse.plugins:maven-warpath-plugin:2.1.0:add-classes (execution: default, phase: generate-sources) How do I resolve this? Here is my pom.xml snippet for the plugin: <plugin> <groupId>org.appfuse.plugins</groupId> <artifactId>maven-warpath-plugin</artifactId> <version>2.1.0</version> <extensions>true</extensions> <executions> <execution> <goals> <goal>add-classes</goal> </goals> </execution> </executions> </plugin>

Add maven-build-classpath to plugin execution classpath

最后都变了- 提交于 2019-11-27 11:28:23
I am writing some code-gen maven-plugin. I need my project classpath be injected in to my plugin execution classpath. I found this article . The solution there works but is quite long. Maybe someone of you know an out of the box solution. Roman Found the answer ! OK , Pascal is right , here it is for the foundation!! So here is the cleanest way ( as far as i know ) to add the compile classpath to the execution of you plugin. Here are some code samples from my code-gen plugin, that is actually generating some template code based on the code compiled. So I needed first the code compiled, then

How do I download a Maven artifact at the command line without using dependency:get or maven-download-plugin?

家住魔仙堡 提交于 2019-11-27 11:10:34
问题 I'd like to download an artifact and its dependencies at the command line. I.e. mvn [some plugin]:[goal] -DartifactId=[artifactId] -DgroupId=[groupId] -Dversion=[version] I've tried mvn dependency:get but this seems to require a list of remote repositories. I want mvn to use what's already specified in settings.xml I've also tried the maven-download-plugin but this doesn't seem to work properly (it tried downloading xerces-impl as a transitive dependency of ant and failed to resolve it.

How to opensource a Maven plugin?

↘锁芯ラ 提交于 2019-11-27 08:06:01
问题 I have a Maven plugin that I want to share with outside world. Is there an official Maven repository I can deploy this plugin too ? What are the steps involved ? Any links to documentation much appreciated I've been reading http://www.sonatype.com/people/2008/11/adding-a-jar-to-a-maven-repository-with-sonatype-nexus/ but this just seems to describe deploying to internal Nexus repository, wheras I want to deploy to an external repo so any user can use it. 回答1: I would recommend: Setting up an

maven archetype:generate failure caused by org.apache.maven.plugin.MojoFailureException

你。 提交于 2019-11-27 08:01:15
问题 I have installed maven 2 and following the tutorial as mentioned in the below link maven.apache.org/guides/getting-started/maven-in-five-minutes.html But while executing the archetype:generate command, mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false" I am getting the below error [INFO] Trace org.apache.maven.BuildFailureException: Error merging velocity templates at org.apache.maven.lifecycle

How do I execute a set of goals before my Maven plugin runs?

我的未来我决定 提交于 2019-11-27 07:20:10
I'm writing a Maven plugin (Mojo) that needs to execute a standard set of other plugin executions before it is run. Is there a mechanism to declare all the goals within my plugin so I don't have to rely on the user defining them all in their POM? Rich Seller You can do this by defining a custom lifecycle and invoking that lifecycle before your Mojo is executed via the execute annotation. In your Mojo, declare in the Javadoc the lifecycle to be executed: /** * Invoke the custom lifecycle before executing this goal. * * @goal my-goal * @execute lifecycle="my-custom-lifecycle" phase="process

Run a single Maven plugin execution?

北城以北 提交于 2019-11-27 06:51:22
I thought I was an experienced Maven user, but I am having a mental block on how to do this! I've been able to use the Maven sql plugin to drop, create, and install a schema in a database via plugin executions I've defined and bound to the pre-integration-test phase. However, now I'd like to use that same sql plugin to insert some sample data whenever I want from the command line -- that is, not bound to any lifecycle goal. There are a few different sets of sample data, so I'd like to define a few different executions. But is there a way to run one of these executions from the command line by