phase « plugin « Maven/Ant Q&A

Home
Maven/Ant Q&A
1.Ant
2.artifact
3.dependency
4.deploy
5.Development
6.eclipse
7.glassfish
8.hudson
9.integration
10.jetty
11.junit
12.m2eclipse
13.module
14.netbeans
15.package
16.plugin
17.POM
18.repository
19.svn
Maven/Ant Q&A » plugin » phase 

1. How do I link a plugin execution to a phase in maven without forcing me to specify plugin on command line    stackoverflow.com

I have a simple pom and added an ant-run to the compile but it only executes then when I do the following: mvn install antrun:run
mvn install -- doesn't process ...

2. How to perform ordered tasks in Maven2 build    stackoverflow.com

I am trying to migrate a Java application built by Ant to Maven2. among other the build perform the following operations: 1) Running a javadoc doclet to find annotated Java files to ...

3. How can I execute several maven plugins within a single phase and set their respective execution order?    stackoverflow.com

I would like to breakup certain phases in the maven life cycle into sub phases. I would like to control the execution flow from one sub-phase to another, sort of like ...

4. Maven - add custom phase to execute plugin with other configuration    stackoverflow.com

I have two set of integration tests in one maven project - automatic and manual tests. The manual tests are few but tedious - they require pulling the plug of servers ...

5. Determining Maven execution phase within a plugin    stackoverflow.com

I have a plugin which transforms the compiled classes. This transformation needs to be done for both the module's classes and the module's test classes. Thus, I bind the ...

6. How to bind maven antrun plugin to the clean phase    stackoverflow.com

I have just translated an ant project into maven however since maven does not really deal with deployment I introduce some antrun into the build. However when I try to execute ...

7. Maven - How do I get the Castor plugin to trigger in the generate-sources phase?    stackoverflow.com

I am mavenizing an ant project. One module includes XSD files that are used to generate source files using Castor. I have everything working if I run:

mvn castor:generate package
However I am ...

8. What phase to use if I want the goal (antrun:run) to be run after creating exploded war?    stackoverflow.com

I have some ant task in my .pom, which copies exploded .war to the server. I want it to be run after creation of exploded .war. What should I enter in ...

9. Maven phase executing twice    stackoverflow.com

I require to generate some sources, so i attached a plugin goal to the generate-sources lifecycle phase. When I run mvn package it works fine, but when I run mvn install ...

10. Maven YUI Compressor Plugin Causing process-resources phase to not run?    stackoverflow.com

I have a maven project that builds a war file. Including the yui compressor in my maven build file is causing files, found in src/main/resources/ unrelated to any js files, processed during ...

11. How to attach a maven plugin to a phase by default?    stackoverflow.com

I have a maven plugin that should run in the compile phase, so in the project that consumes my plugin, I have to do something like this:

<executions>
 <execution>
  <phase>compile</phase>
  ...

12. Maven - Tweaking the phase where to run a plugin declared in the reporting section    stackoverflow.com

I am trying to tweak the phase when a maven plugin execution will run in maven-2. My specific issue is with attempting to run the cobertura:instrument step bound to the lifecycle ...

13. How to get all Maven plugins & their versions for a specific phase?    stackoverflow.com

Do you know of a way to list all Maven plugins (with their versions) that are going to be executed for a particular phase? This should include all plugins set in ...

14. Maven assembly plugin does not overwrite files during compile phase    stackoverflow.com

I have defined maven assembly plugin and have set pom to execute the plugin(assembly.xml) in "compile" phase. assembly.xml - it gets the jars/files using "dependencySet" and I replace few files with ...

15. Find the default phase that a Maven plugin binds to    stackoverflow.com

Given a <plugin> element in a pom.xml, how do I find the default phase that it binds to? For example, I'd like to know which phase of the Maven lifecycle does the ...

16. Plugin.xml configuration of phase doesn't seem to work for my custom maven plugin    stackoverflow.com

I'm playing around with writing a maven plugin for the first time. I've written a simple plugin with a goal that writes a hello world message to the output. ...

17. Use compiler plugin in process-sources phase    stackoverflow.com

Is it possible to run the maven-compiler-plugin in process-sources only for specific packages? I know the correct way to do this is to extract the needed classes in a extra module but ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.