Re: Issues with maven-ant-tasks / maven-profile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09:30:19 Tuesday 19 July 2011 Guido Grazioli wrote:
> Hello all,
> 
> i found some mess with maven-ant-tasks while packaging jinput (ant build);
> when build.xml calls <artifact:pom> task provided by maven-ant-tasks, i
> get:
> 
> /home/guido/rpmbuild/BUILD/jinput/build.xml:251: The following error
> occurred while executing this line:
> jar:file:/home/guido/rpmbuild/BUILD/jinput/lib/maven-ant-tasks-2.1.0.jar!/o
> rg/apache/maven/artifact/ant/antlib.xml:4: taskdef A class needed by class
> org.apache.maven.artifact.ant.DependenciesTask cannot be found:
> org/apache/maven/profiles/ProfileManager
> using the classloader
> AntClassLoader[/home/guido/rpmbuild/BUILD/jinput/lib/maven-ant-tasks-2.1.0.
> jar]
> 
> Searching for that class i found it is included in package
> maven-project-2.2.1, which depends on maven2
> 
> I could not find a suitable replacement in maven3, so maven-ant-tasks
> should definitely depend on maven2 (yum let me install it without maven2)
maven-ant-tasks should depend on maven-project not on maven2. And for it to 
work properly you might need to create a file in /etc/ant.d adding maven-
project and whatever else jars are needed to the classpath. Please do that in 
the maven-ant-tasks or open a bug with patch we can apply.

> 
> This probably also needs fixing?
> # rpm -q --whatprovides /usr/share/java/maven2/maven-project.jar
> maven-project-2.2.1-25.fc16.noarch
> maven2-2.2.1-25.fc16.noarch
Yes, this definetely needs fixing. Please open a bug report.

Regards,
Alex

> 
> Cheers,
> Guido
--
java-devel mailing list
java-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/java-devel


[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux