FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development Java

 
 
LinkBack Thread Tools
 
Old 07-19-2011, 06:10 AM
Guido Grazioli
 
Default Issues with maven-ant-tasks / maven-profile

Hello all,

i found some mess with maven-ant-tasks while packaging jinput (ant build);
when build.xml calls <artifactom> 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!/org/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)

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

Cheers,
Guido


--
Guido Grazioli <guido.grazioli@gmail.com>
Via Parri 11 48011 - Alfonsine (RA)
Mobile: +39 347 1017202 (10-18)
Key FP = 7040 F398 0DED A737 7337* DAE1 12DC A698 5E81 2278
Linked in: http://www.linkedin.com/in/guidograzioli
--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 
Old 07-19-2011, 06:33 AM
Alexander Kurtakov
 
Default Issues with maven-ant-tasks / maven-profile

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 <artifactom> 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@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 
Old 07-19-2011, 10:03 AM
Guido Grazioli
 
Default Issues with maven-ant-tasks / maven-profile

2011/7/19 Alexander Kurtakov:
> 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.

i wasn't aware of this ant.d mechanism; i found that a bunch of packages
need to be added there, should i open a bug for each one? or just
add it as additional info in the bug requesting to make maven-ant-tasks
require them?

it turns also out that one of the needed classes is in
maven-error-diagnostics.jar
which is provided by maven2 main package; if we want to get rid of maven2
completely i think it has to be split in a package on its own


>> 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.

ok, bug also has already been taken care of

Forgot to thank you and Stanislav for taking care of the packages I own
and that i have a little overlooked lately!


regards,
guido
--
Guido Grazioli <guido.grazioli@gmail.com>
Via Parri 11 48011 - Alfonsine (RA)
Mobile: +39 347 1017202 (10-18)
Key FP = 7040 F398 0DED A737 7337* DAE1 12DC A698 5E81 2278
Linked in: http://www.linkedin.com/in/guidograzioli
--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 
Old 07-19-2011, 12:16 PM
Stanislav Ochotnicky
 
Default Issues with maven-ant-tasks / maven-profile

Excerpts from Guido Grazioli's message of Tue Jul 19 12:03:17 +0200 2011:
> 2011/7/19 Alexander Kurtakov:
> > 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.
>
> i wasn't aware of this ant.d mechanism; i found that a bunch of packages
> need to be added there, should i open a bug for each one? or just
> add it as additional info in the bug requesting to make maven-ant-tasks
> require them?
>
> it turns also out that one of the needed classes is in
> maven-error-diagnostics.jar
> which is provided by maven2 main package; if we want to get rid of maven2
> completely i think it has to be split in a package on its own

The thing is: maven2 package has been split into smaller chunks.
* maven-project
* maven-artifact-manager
* maven-plugin-registry
* maven-monitor
* maven-model
* maven-profile
* maven-toolchain

And of course main maven2 package. We did this to more easily figure
out what parts of maven2 are still required by our packages. I went
jar-by-jar as they were needed. Now it seems I'll create another
subpackage for error-diagnostics. It would be ideal if upstream simply
got rid of those dependencies or split those parts into separate
projects, but I won't hold my breath for it.

Problem is that some package that used to BR/R maven2 should now
require one or more of the above subpackages. While not ideal, it's
the only sane way to slowly phase-out maven2. If nothing else at least
we'll know which packages still require it.

> >> 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.
>
> ok, bug also has already been taken care of
>
> Forgot to thank you and Stanislav for taking care of the packages I own
> and that i have a little overlooked lately!

I have as well? Heh, I guess since I became provenpackager I've been
committing everywhere without looking much (usually the problems took
less time to fix than filing of a bugreport). I am just glad I haven't
stepped on anyone's toes yet...

Regards,

--
Stanislav Ochotnicky <sochotnicky@redhat.com>
Software Engineer - Base Operating Systems Brno

PGP: 7B087241
Red Hat Inc. http://cz.redhat.com
--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 
Old 07-19-2011, 02:57 PM
Guido Grazioli
 
Default Issues with maven-ant-tasks / maven-profile

2011/7/19 Stanislav Ochotnicky:
> Excerpts from Guido Grazioli's message of Tue Jul 19 12:03:17 +0200 2011:
>> it turns also out that one of the needed classes is in
>> maven-error-diagnostics.jar
>> which is provided by maven2 main package; if we want to get rid of maven2
>> completely i think it has to be split in a package on its own
>
> The thing is: maven2 package has been split into smaller chunks.
> ** maven-project
> ** maven-artifact-manager
> ** maven-plugin-registry
> ** maven-monitor
> ** maven-model
> ** maven-profile
> ** maven-toolchain
>
> And of course main maven2 package. We did this to more easily figure
> out what parts of maven2 are still required by our packages. I went
> jar-by-jar as they were needed. Now it seems I'll create another
> subpackage for error-diagnostics. It would be ideal if upstream simply
> got rid of those dependencies or split those parts into separate
> projects, but I won't hold my breath for it.

i've found that maven-artifact and maven-settings could also be included
in that list; the choice to split maven2 in subpackages seems wise to me,
and i see not too much hassle in requiring some specific package instead
of a bigger one. But did you document somewhere which of those packages
are still provided with maven3 (main or subpackage of it)? Would always
be feasible/safe for a package to require maven 3 and one of those subpackages
(ie BR: maven & BR: maven-artifact-manager = 2.2.1 ) ?
Though shipping maven 3.0 and a maven-xxx package built from the maven 2
sources could appear a bit inelegant

Guido

--
Guido Grazioli <guido.grazioli@gmail.com>
Via Parri 11 48011 - Alfonsine (RA)
Mobile: +39 347 1017202 (10-18)
Key FP = 7040 F398 0DED A737 7337* DAE1 12DC A698 5E81 2278
Linked in: http://www.linkedin.com/in/guidograzioli
--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 

Thread Tools




All times are GMT. The time now is 11:59 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org