You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2016/05/18 21:27:13 UTC

[jira] [Closed] (MANTTASKS-250) Version 3.3.3 of Maven does not work with Ant Tasks

     [ https://issues.apache.org/jira/browse/MANTTASKS-250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed MANTTASKS-250.
------------------------------------
    Resolution: Won't Fix

This component has been retired.

> Version 3.3.3 of Maven does not work with Ant Tasks
> ---------------------------------------------------
>
>                 Key: MANTTASKS-250
>                 URL: https://issues.apache.org/jira/browse/MANTTASKS-250
>             Project: Maven Ant Tasks
>          Issue Type: Bug
>          Components: mvn task
>    Affects Versions: 2.1.3
>         Environment: Windows 7 x64. java 1.8.0_51-b16
>            Reporter: John Francis
>
> The following build.xml fails with maven 3.3.3
> {code:xml|title=build.xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <project name="Classpath" default="main" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant">
> 	
> 	<property environment="env"/>
> 		
> 	<condition property="maven.home" value="${env.M2_HOME}" else="">
> 		<isset property="env.M2_HOME" />
> 	</condition>
> 	
> 	<target name="main">
> 	   <echo message="${maven.home}"/>
> 		
> 		<artifact:mvn pom="${basedir}/pom.xml" mavenHome="${maven.home}" fork="true">
> 			<arg value="clean"/>
>                         <!-- following makes no difference in or out -->
> 			<arg value="-Dmaven.multiModuleProjectDirectory=C:/Users/john/workspace-eop-pom-test/MvnMain1"/>
> 		</artifact:mvn>
> 	</target>
> 	
> </project>
> {code}
> {code:title=3.3.3}
> C:\Users\john\workspace-eop-pom-test\MvnMain1>ant
> Buildfile: C:\Users\john\workspace-eop-pom-test\MvnMain1\build.xml
> main:
>      [echo] C:\development\maven\apache-maven-3.3.3
> [artifact:mvn] -Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable an
> n script match.
> [artifact:mvn] Java Result: 1
> BUILD SUCCESSFUL
> Total time: 0 seconds
> {code}
> The  ant script works fine with 3.1.1
> {code:title=3.1.1}
> C:\Users\john\workspace-eop-pom-test\MvnMain1>ant
> Buildfile: C:\Users\john\workspace-eop-pom-test\MvnMain1\build.xml
> main:
>      [echo] C:\development\maven\apache-maven-3.1.1
> [artifact:mvn] [INFO] Scanning for projects...
> [artifact:mvn] [INFO]
> [artifact:mvn] [INFO] ------------------------------------------------------------------------
> [artifact:mvn] [INFO] Building MvnMain1 0.0.1
> [artifact:mvn] [INFO] ------------------------------------------------------------------------
> [artifact:mvn] [INFO]
> [artifact:mvn] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ MvnMain1 ---
> [artifact:mvn] [INFO] Deleting C:\Users\john\workspace-eop-pom-test\MvnMain1\target
> [artifact:mvn] [INFO] ------------------------------------------------------------------------
> [artifact:mvn] [INFO] BUILD SUCCESS
> [artifact:mvn] [INFO] ------------------------------------------------------------------------
> [artifact:mvn] [INFO] Total time: 0.311s
> [artifact:mvn] [INFO] Finished at: Mon Sep 21 13:02:34 BST 2015
> [artifact:mvn] [INFO] Final Memory: 13M/368M
> [artifact:mvn] [INFO] ------------------------------------------------------------------------
> [artifact:mvn] [WARNING] The requested profile "jaxb-ee" could not be activated because it does not exist.
> [artifact:mvn] [WARNING] The requested profile "ee" could not be activated because it does not exist.
> [artifact:mvn] [WARNING] The requested profile "test-ee" could not be activated because it does not exist.
> [artifact:mvn] [WARNING] The requested profile "chanf" could not be activated because it does not exist.
> BUILD SUCCESSFUL
> Total time: 1 second
> C:\Users\john\workspace-eop-pom-test\MvnMain1>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)