oh, I see : I did not know it was possible.

How is "mvn jxr:jxr" converted to org.apache.maven.plugins:maven-jxr-plugin, 
when it should be org.codehaus.mojo:jxr-maven-plugin ? The fact that the 
groupId is different seems intriguing to me : the conversion rule cannot work 
only on artifactId, but both on groupId and artifactId.

Now that the jxr plugin is in local cache, perhaps you don't need the pom 
entry any more.
I made the following test : having the jxr plugin in my local cache, "mvn 
jxr:jxr" works perfectly without the jxr pom entry. But after deleting my 
cache ("rm -rf ~/.m2/repository/org/codehaus/mojo/"), it doesn't work any 
more : I get the same error stated by Chris at the beginning.

Then this problem does happen only to new users, who have an empty local 
cache.

Hervé

Le Lundi 06 Février 2006 04:07, Brian E. Fox a écrit :
> Yes, but if you run it from the command line, you don't need to put it in
> the pom. If it is in the pom incorrectly, then that will cause problems. I
> tested it on a random project with nothing in my pom for the plugin and it
> found it ok.
>
> -----Original Message-----
> From: Hervé BOUTEMY [mailto:[EMAIL PROTECTED]
> Sent: Sunday, February 05, 2006 6:09 PM
> To: Maven Users List
> Subject: Re: downloading plug-ins from mojo (org.codehaus.mojo)?
>
> it's jxr-maven-plugin, not maven-jxr-plugin : I did the same mistake some
> time ago... The convention is not the same between org.apache.maven.plugins
> (maven-xxx-plugin) and org.codehaus.mojo (xxx-maven-plugin).
>
> Jira http://jira.codehaus.org/browse/MPLUGIN-11 is an attempt to help
> newbies to copy/paste a pom excerpt to avoid such mistakes : please vote
> for it.
>
> Hervé
>
> Le Dimanche 05 Février 2006 22:34, Chris Markle a écrit :
> > Brian et al,
> >
> > > Hrm, works ok for me. What version of maven are you using?
> >
> > Maven 2:
> >
> > C:\blah> mvn --version
> > Maven version: 2.0.2
> >
> >  > Try mvn -U jxr:jxr and see what happens.
> >
> > C:\blah> mvn --version
> > Maven version: 2.0.2
> >
> > C:\blah> mvn -U jxr:jxr
> >
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'jxr'.
> > [INFO] org.apache.maven.plugins: checking for updates from central
> > [INFO] org.codehaus.mojo: checking for updates from central [INFO]
> > artifact org.apache.maven.plugins:maven-jxr-plugin: checking for
> > updates from central ...
> > [ERROR] BUILD ERROR
> > ...
> > [INFO] The plugin 'org.apache.maven.plugins:maven-jxr-plugin' does not
> > exist or no valid version could be found
> >
> > No joy :(
> >
> > Chris
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to