Javier, can you do me a favor and tell what the contents of the
following directory in your repository is? Hopefully you can do this
before the -U Wayne asked for.

repository\org\apache\maven\plugins\maven-install-plugin

Specifically, I'm wondering if it is just a metadata file, probably
maven-metadata-central.xml.

Chris 

> -----Original Message-----
> From: Wayne Fay [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, 09 January, 2007 15:17
> To: Maven Users List
> Subject: Re: plugin not found error and jta
> 
> You've got something funky going on. Maven isn't going out to 
> the Internet to look for these plugins as it should be and 
> your builds are finishing in 1 second.
> 
> Last time, it was the resources plugin. This time, its the 
> same thing but the install plugin.
> 
> Do you have a proxy or something? Run mvn -U -cpu -X a couple 
> times and see if perhaps it doesn't find the plugin and 
> download it automatically. And/or perhaps check JIRA for this 
> issue -- unsure what module it would be under, but search for 
> "does not exist" and maybe you'll find an open issue.
> 
> Wayne
> 
> On 1/9/07, JavierL <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Hi
> >
> > It worked with 2.1 version for mvn compile command with my pom.
> >
> > Nevertheless, I'm having problems to install jta.jar.
> >
> > If I run C:\work\worldnet21\cinb\trunk>mvn install:install-file 
> > -DgroupId=javax.transacti on -DartifactId=jta -Dversion=1.0.1B 
> > -Dpackaging=jar
> > -Dfile=\soft\java\jta\jta.1
> > .0.1b.jar -DgeneratePom=false
> >
> > I got the error:
> >
> > -----------
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'install'.
> > [INFO]
> > 
> ----------------------------------------------------------------------
> > ---
> > ---
> > [ERROR] BUILD ERROR
> > [INFO]
> > 
> ----------------------------------------------------------------------
> > ---
> > ---
> > [INFO] The plugin 
> 'org.apache.maven.plugins:maven-install-plugin' does 
> > not exist  or no valid version could be found [INFO]
> > 
> ----------------------------------------------------------------------
> > ---
> > ---
> > [INFO] For more information, run Maven with the -e switch [INFO]
> > 
> ----------------------------------------------------------------------
> > ---
> > ---
> > [INFO] Total time: 1 second
> > [INFO] Finished at: Tue Jan 09 21:58:39 CET 2007 [INFO] 
> Final Memory: 
> > 1M/5M [INFO]
> > 
> ----------------------------------------------------------------------
> > ---
> > ---
> > ------------------
> >
> > If can't install jta I can't compile my project...
> >
> > Any idea ?
> >
> >
> > PS: Sometimes maven use to be a nightmare...
> >
> >
> >
> > Wayne Fay wrote:
> > >
> > > Take a look here:
> > > 
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resourc
> > > es-plugin/
> > >
> > > As you can see, there are several versions of this 
> artifact available:
> > > 2.0, 2.1, and 2.2 being the non-beta versions.
> > >
> > > In the plugins node of your pom, specify:
> > > <plugin>
> > >    <groupId>org.apache.maven.plugins</groupId>
> > >    <artifactId>maven-resources-plugin</artifactId>
> > >    <version>[2.2]</version>
> > > </plugin>
> > >
> > > This will "lock" the version to 2.2. As it seems that Maven is 
> > > having trouble resolving the LATEST version, locking it 
> to a specify 
> > > version should perhaps clear up your troubles. If that 
> doesn't work, 
> > > perhaps try [2.1].
> > >
> > > However, Maven should really be able to find and resolve 
> the LATEST 
> > > version of m-r-p, so it makes me think there's something 
> else going 
> > > on in your configuration which is breaking things... Or there's a 
> > > weird bug somewhere in Maven itself that you're running into for 
> > > some reason.
> > >
> > > Wayne
> > >
> > > On 1/9/07, JavierL <[EMAIL PROTECTED]> wrote:
> > >>
> > >>
> > >> Thanks for your reply.
> > >>
> > >> I've deleted the folder maven-resources-plugin and the 
> version of 
> > >> files there was 2.2 dated 1/9/2007 8:10:46pm
> > >>
> > >> I've tried mvn -cpu -X compile and got the error:
> > >>
> > >> --------------
> > >> C:\work\worldnet21\cinb\trunk>mvn -cpu -X -e compile
> > >> + Error stacktraces are turned on.
> > >> [DEBUG] Building Maven user-level plugin registry from: 
> > >> 'C:\Documents and Settin gs\jleyba\.m2\plugin-registry.xml'
> > >> [DEBUG] Building Maven global-level plugin registry from:
> > >> 'c:\maven\bin\..\conf\
> > >> plugin-registry.xml'
> > >> [INFO] Scanning for projects...
> > >> [INFO]
> > >> 
> -------------------------------------------------------------------
> > >> ------
> > >> ---
> > >> [INFO] Building cinb
> > >> [INFO]    task-segment: [compile]
> > >> [INFO]
> > >> 
> -------------------------------------------------------------------
> > >> ------
> > >> ---
> > >> [DEBUG] maven-resources-plugin: using locally installed snapshot 
> > >> [DEBUG] Artifact not found - using stub model: Unable to 
> determine 
> > >> the latest ve rsion
> > >>
> > >>  org.apache.maven.plugins:maven-resources-plugin:pom:LATEST
> > >>
> > >>
> > >> [DEBUG] Using defaults for missing POM
> > >> org.apache.maven.plugins:maven-resources-
> > >> plugin:pom:LATEST
> > >> [DEBUG] maven-resources-plugin: using locally installed snapshot 
> > >> [DEBUG] Artifact not found - using stub model: Unable to 
> determine 
> > >> the release v ersion
> > >>
> > >>  org.apache.maven.plugins:maven-resources-plugin:pom:RELEASE
> > >>
> > >>
> > >> [DEBUG] Using defaults for missing POM
> > >> org.apache.maven.plugins:maven-resources-
> > >> plugin:pom:RELEASE
> > >> [INFO]
> > >> 
> -------------------------------------------------------------------
> > >> ------
> > >> ---
> > >> [ERROR] BUILD ERROR
> > >> [INFO]
> > >> 
> -------------------------------------------------------------------
> > >> ------
> > >> ---
> > >> [INFO] The plugin 
> 'org.apache.maven.plugins:maven-resources-plugin' 
> > >> does not exi st or no valid version could be found [INFO]
> > >> 
> -------------------------------------------------------------------
> > >> ------
> > >> ---
> > >> [DEBUG] Trace
> > >> org.apache.maven.lifecycle.LifecycleExecutionException: 
> The plugin 
> > >> 'org.apache.m aven.plugins:maven-resources-plugin' does 
> not exist 
> > >> or no valid version could be  found
> > >>        at
> > >> 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(De
> > >> fa
> > >> ultLifecycleExecutor.java:1203)
> > >>        at
> > >> 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescript
> > >> or
> > >> (DefaultLifecycleExecutor.java:1436)
> > >>        at
> > >> 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleFo
> > >> rP
> > >> ackaging(DefaultLifecycleExecutor.java:975)
> > >>        at
> > >> 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecy
> > >> cl
> > >> eMappings(DefaultLifecycleExecutor.java:941)
> > >>        at
> > >> 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Def
> > >> au
> > >> ltLifecycleExecutor.java:450)
> > >>        at
> > >> 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndH
> > >> an
> > >> dleFailures(DefaultLifecycleExecutor.java:303)
> > >>        at
> > >> 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegm
> > >> en
> > >> ts(DefaultLifecycleExecutor.java:270)
> > >>        at
> > >> 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(Default
> > >> Li
> > >> fecycleExecutor.java:139)
> > >>        at 
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> > >>        at 
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> > >>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> > >>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >>        at
> > >> 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> > >> java:39)
> > >>        at
> > >> 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
> > >> es
> > >> sorImpl.java:25)
> > >>        at java.lang.reflect.Method.invoke(Method.java:585)
> > >>        at
> > >> 
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > >>        at 
> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > >>        at
> > >> 
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:43
> > >> 0)
> > >>
> > >>        at 
> org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > >> Caused by:
> > >> org.apache.maven.plugin.version.PluginVersionNotFoundException:
> > >> The p
> > >> lugin 'org.apache.maven.plugins:maven-resources-plugin' does not 
> > >> exist or no val id version could be found
> > >>        at
> > >> 
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolve
> > >> Pl
> > >> uginVersion(DefaultPluginVersionManager.java:225)
> > >>        at
> > >> 
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolve
> > >> Pl
> > >> uginVersion(DefaultPluginVersionManager.java:87)
> > >>        at
> > >> 
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPl
> > >> ug
> > >> inManager.java:177)
> > >>        at
> > >> 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(De
> > >> fa
> > >> ultLifecycleExecutor.java:1174)
> > >>        ... 18 more
> > >> [INFO]
> > >> 
> -------------------------------------------------------------------
> > >> ------
> > >> ---
> > >> [INFO] Total time: < 1 second
> > >> [INFO] Finished at: Tue Jan 09 20:19:41 CET 2007 [INFO] Final 
> > >> Memory: 1M/3M [INFO]
> > >> 
> -------------------------------------------------------------------
> > >> ------
> > >> --- ------------------------
> > >>
> > >>
> > >> The error started when I just did a mvn compile.
> > >>
> > >> Now I wonder how to "specify an older plugin version in your pom 
> > >> with [1.1.1] style versioning"...
> > >>
> > >> Thanks in advance
> > >>
> > >> J
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> Wayne Fay wrote:
> > >> >
> > >> > Try mvn -cpu to force an update of your plugins.
> > >> >
> > >> > If that doesn't work, try mvn -X to enable debug mode 
> and see if 
> > >> > there's more information provided as to why it won't 
> find and use 
> > >> > the plugin.
> > >> >
> > >> > Finally, if that doesn't work, I'd dig into the M2 
> cache/repo on 
> > >> > your local machine and delete the 
> plugins/maven-resources-plugin 
> > >> > folder and then try mvn -cpu again to update the 
> plugins. Before 
> > >> > deleting, take note of what versions are available in 
> the folder 
> > >> > and the timestamps on the files. (It might be that a recent 
> > >> > release of the resources plugin has introduced a 
> bug/regression.)
> > >> >
> > >> > If it still doesn't work, then I'd file a bug in JIRA with 
> > >> > complete information on what you've done and perhaps 
> specify an 
> > >> > older plugin version in your pom with [1.1.1] style 
> versioning to 
> > >> > lock Maven to that version. At that point, your builds should 
> > >> > proceed normally as they are using the older plugin version.
> > >> >
> > >> > Wayne
> > >> >
> > >> > On 1/9/07, JavierL <[EMAIL PROTECTED]> wrote:
> > >> >>
> > >> >>
> > >> >> Wayne Fay wrote:
> > >> >> >
> > >> >> > JTA cannot be provided via Maven due to its licensing. You 
> > >> >> > will have to download it from Sun and install it 
> manually via 
> > >> >> > mvn install:install-file.
> > >> >> >
> > >> >> > It might be available from JBoss, Glassfish, Harmony, or 
> > >> >> > Geronimo under different licensing but you'll need 
> to research this yourself.
> > >> >> >
> > >> >> > Wayne
> > >> >> >
> > >> >> > On 1/9/07, JavierL <[EMAIL PROTECTED]> wrote:
> > >> >> >>
> > >> >> >> Hi
> > >> >> >>
> > >> >> >> Since today I'm receiving an error message like this:
> > >> >> >>
> > >> >> >> ---------
> > >> >> >> 'org.apache.maven.plugins:maven-resources-plugin' does not 
> > >> >> >> exist or
> > >> no
> > >> >> >> valid
> > >> >> >> version could be found
> > >> >> >> ------
> > >> >> >>
> > >> >> >> when I try to do a mvn compile.
> > >> >> >>
> > >> >> >> Could please somebody tell me why this problem and 
> how could 
> > >> >> >> I
> > >> solve
> > >> >> it ?
> > >> >> >>
> > >> >> >> I've searched over the net withou success...
> > >> >> >>
> > >> >> >>
> > >> >> >> Also, I've a project that requires jta.1.0.1b.jar. 
> I've been
> > >> looking
> > >> >> in
> > >> >> >> repos and found just pom files, no jars... I wonder if 
> > >> >> >> somebody
> > >> knows
> > >> >> >> where
> > >> >> >> could I found this jar...
> > >> >> >>
> > >> >> >
> > >> >> >
> > >> >>
> > >> >>
> > >> >> Thanks for your reply. I'll search more to get it.
> > >> >>
> > >> >> Nevertheless, I couldn't use maven because the error 
> I described 
> > >> >> in my mail...
> > >> >>
> > >> >> Any idea ?
> > >> >>
> > >> >
> > >>
> > >>
> > >>
> > >> --
> > >> View this message in context:
> > >> 
> http://www.nabble.com/plugin-not-found-error-and-jta-tf2947414s177.
> > >> html#a8244402 Sent from the Maven - Users mailing list 
> archive at 
> > >> Nabble.com.
> > >>
> > >>
> > >> 
> -------------------------------------------------------------------
> > >> -- 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]
> > >
> > >
> > >
> >
> > --
> > View this message in context: 
> > 
> http://www.nabble.com/plugin-not-found-error-and-jta-tf2947414s177.htm
> > l#a8246242 Sent from the Maven - Users mailing list archive at 
> > Nabble.com.
> >
> >
> > 
> ---------------------------------------------------------------------
> > 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