[ http://jira.codehaus.org/browse/MANTRUN-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MANTRUN-149. ------------------------------------- Resolution: Not A Bug Assignee: Benjamin Bentmann Please see [Guide to Configuring Plug-ins|http://maven.apache.org/guides/mini/guide-configuring-plugins.html#Configuring_Build_Plugins], in particular the last paragraph of the linked section, and [Guide to Configuring Default Mojo Executions|http://maven.apache.org/guides/mini/guide-default-execution-ids.html]. Configuration for direct CLI invocations either have to be placed directly inside the {{<plugin>}} block or use the special id {{default-cli}}. > mvn antrun does not perform task options > ---------------------------------------- > > Key: MANTRUN-149 > URL: http://jira.codehaus.org/browse/MANTRUN-149 > Project: Maven 2.x Antrun Plugin > Issue Type: Bug > Affects Versions: 1.4 > Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400) > Java version: 1.6.0_21 > OS name: "linux" version: "2.6.18-194.11.1.el5" arch: "amd64" Family: "unix" > Reporter: Shawn Capron > Assignee: Benjamin Bentmann > > I am testing antrun for transtioning my companys product from ant to maven, > and have a task thats must be run with ant. To test mvn antrun I created a > test pom.xml that contains: > {quote} > <project> > <modelVersion>4.0.0</modelVersion> > <artifactId>my-test-app</artifactId> > <groupId>my-test-group</groupId> > <version>1.0-SNAPSHOT</version> > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-antrun-plugin</artifactId> > <version>1.4</version> > <executions> > <execution> > <id>compile</id> > <phase>compile</phase> > <configuration> > <tasks> > <property name="compile_classpath" > refid="maven.compile.classpath"/> > <property name="runtime_classpath" > refid="maven.runtime.classpath"/> > <property name="test_classpath" refid="maven.test.classpath"/> > <property name="plugin_classpath" > refid="maven.plugin.classpath"/> > <echo message="compile classpath: ${compile_classpath}"/> > <echo message="runtime classpath: ${runtime_classpath}"/> > <echo message="test classpath: ${test_classpath}"/> > <echo message="plugin classpath: ${plugin_classpath}"/> > </tasks> > </configuration> > <goals> > <goal>run</goal> > </goals> > </execution> > </executions> > </plugin> > </plugins> > </build> > </project> > {quote} > Then at the command line, I type in mvn antrun:run and the output I get is > this: > {quote} > scap...@altair:/home/scapron/antrun_test% mvn antrun:run > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Unnamed - my-test-group:my-test-app:jar:1.0-SNAPSHOT > [INFO] task-segment: [antrun:run] > [INFO] > ------------------------------------------------------------------------ > [INFO] [antrun:run {execution: default-cli}] > project.artifactId > [INFO] Executing tasks > [INFO] Executed tasks > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESSFUL > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 1 second > [INFO] Finished at: Tue Aug 31 12:19:02 EDT 2010 > [INFO] Final Memory: 9M/303M > [INFO] > ------------------------------------------------------------------------ > scap...@altair:/home/scapron/antrun_test% > {quote} > It doesn't seem to matter what I place in the tasks, it does not get executed. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira