Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • 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

      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

        Douglass Parker created issue -
        Hervé 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.
        Michael Osipov made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 09:00:58 UTC 2015 [ 1428224458201 ]
        Mark Thomas made changes -
        Workflow jira [ 12716267 ] Default workflow, editable Closed status [ 12759987 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 22:08:22 UTC 2015 [ 1428271702400 ]
        Mark Thomas made changes -
        Workflow jira [ 12953527 ] Default workflow, editable Closed status [ 12990652 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Douglass Parker
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development