Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.1.0
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Windows XP, Maven 2.2.1, Java 1.5
-
Number of attachments :
Description
After invocation of artifact:mvn, no subsequent ant tasks run, even if artifact:mvn executes sucessfully. A simple example:
<project name="Foo" default="help" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant"> <path id="maven-ant-tasks.classpath" path="path/to/maven-ant-tasks-2.1.0.jar" /> <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="antlib:org.apache.maven.artifact.ant" classpathref="maven-ant-tasks.classpath" /> <target name="maven_install" description="Invokes Maven install" > <artifact:mvn pom="path/to/some/pom.xml" mavenHome="path/to/maven/home"> <arg value="-Dmaven.test.skip=true"/> <arg value="clean"/> <arg value="install"/> </artifact:mvn> <echo>Install finished</echo> </target> </project>
The echo task will not be executed.
Activity
Herve Boutemy
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
After invocation of artifact:mvn, no subsequent ant tasks run, even if artifact:mvn executes sucessfully. A simple example:
<project name="Foo" default="help" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant"> <path id="maven-ant-tasks.classpath" path="path/to/maven-ant-tasks-2.1.0.jar" /> <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="antlib:org.apache.maven.artifact.ant" classpathref="maven-ant-tasks.classpath" /> <target name="maven_install" description="Invokes Maven install" > <artifact:mvn pom="path/to/some/pom.xml" mavenHome="path/to/maven/home"> <arg value="-Dmaven.test.skip=true"/> <arg value="clean"/> <arg value="install"/> </artifact:mvn> <echo>Install finished</echo> </target> </project> The echo task will not be executed. |
After invocation of artifact:mvn, no subsequent ant tasks run, even if artifact:mvn executes sucessfully. A simple example:
{code:xml}<project name="Foo" default="help" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant"> <path id="maven-ant-tasks.classpath" path="path/to/maven-ant-tasks-2.1.0.jar" /> <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="antlib:org.apache.maven.artifact.ant" classpathref="maven-ant-tasks.classpath" /> <target name="maven_install" description="Invokes Maven install" > <artifact:mvn pom="path/to/some/pom.xml" mavenHome="path/to/maven/home"> <arg value="-Dmaven.test.skip=true"/> <arg value="clean"/> <arg value="install"/> </artifact:mvn> <echo>Install finished</echo> </target> </project>{code} The echo task will not be executed. |