maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Jambert <marc.jamb...@vegatechnologies.fr>
Subject Re: Plugin not valid exception
Date Thu, 09 Dec 2004 11:48:48 GMT
Thanks a lot, that's fixed!
I made a mistake when re-jaring the plugin files. Sorry for that, and
thanks again


On Thu, 2004-12-09 at 22:42 +1100, Brett Porter wrote:
> ok, I took another look back at this:
> > > > $ jar -tf maven-sdocbook-plugin-1.4-SNAPSHOT.jar | grep project.xml
> > > > maven-sdocbook-plugin-1.4-SNAPSHOT/project.xml
> 
> the problem is that you have introduced a top level directory into the jar.
> 
> The plugin should not have a maven-sdocbook-plugin-1.4-SNAPSHOT subdirectory.
> 
> - Brett
> 
> On Thu, 09 Dec 2004 12:34:47 +0100, Marc Jambert
> <marc.jambert@vegatechnologies.fr> wrote:
> > Here it is :
> > 
> > Getting URL: http://mavenhost/maven/maven-plugins/plugins/maven-
> > sdocbook-plugin-1.4-SNAPSHOT.jar.md5
> > Received status code: 404
> > Processing dependencies for project x-forge; classloader
> > [ForeheadClassLoader: name="root.maven"]
> > Using plugin file: /home/mjambert/.maven/repository/maven-
> > plugins/plugins/maven-sdocbook-plugin-1.4-SNAPSHOT.jar
> > Not a plugin directory: /home/mjambert/.maven/cache/maven-sdocbook-
> > plugin-1.4-SNAPSHOT
> > popping off org.apache.maven.jelly.MavenJellyContext@19b04e2 for
> > org.apache.maven.jelly.MavenJellyContext@5dcec6 in x-forge:x-forge
> > 
> > 
> > org.apache.maven.MavenException: Not a valid plugin
> > file: /home/mjambert/.maven/repository/maven-plugins/plugins/maven-
> > sdocbook-plugin-1.4-SNAPSHOT.jar
> >         at org.apache.maven.plugin.PluginManager.installPlugin
> > (PluginManager.java:910)
> >         at org.apache.maven.plugin.PluginManager.installPlugin
> > (PluginManager.java:862)
> >         at org.apache.maven.plugin.PluginManager.processDependencies
> > (PluginManager.java:448)
> >         at org.apache.maven.plugin.PluginManager.attainGoals
> > (PluginManager.java:642)
> >         at org.apache.maven.MavenSession.attainGoals
> > (MavenSession.java:263)
> >         at org.apache.maven.cli.App.doMain(App.java:488)
> >         at org.apache.maven.cli.App.main(App.java:1239)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke
> > (NativeMethodAccessorImpl.java:39)
> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > (DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:324)
> >         at com.werken.forehead.Forehead.run(Forehead.java:551)
> >         at com.werken.forehead.Forehead.main(Forehead.java:581)
> > 
> > On Thu, 2004-12-09 at 22:28 +1100, Brett Porter wrote:
> > > can you run maven -X? This should show additional messages beforehand.
> > >
> > >
> > > On Thu, 09 Dec 2004 12:25:05 +0100, Marc Jambert
> > > <marc.jambert@vegatechnologies.fr> wrote:
> > > > The project.xml is in it and is valid :
> > > >
> > > > $ jar -tf maven-sdocbook-plugin-1.4-SNAPSHOT.jar | grep project.xml
> > > > maven-sdocbook-plugin-1.4-SNAPSHOT/project.xml
> > > >
> > > > Moreover I removed my .maven before launching maven. There must be
> > > > something else
> > > >
> > > >
> > > >
> > > >
> > > > On Thu, 2004-12-09 at 22:22 +1100, Brett Porter wrote:
> > > > > This error occurs if project.xml is missing from the JAR.
> > > > >
> > > > > If it is in the JAR, try deleting your plugin cache (usually ~/.maven/cache)
> > > > >
> > > > > - Brett
> > > > >
> > > > >
> > > > > On Thu, 09 Dec 2004 12:13:55 +0100, Marc Jambert
> > > > > <marc.jambert@vegatechnologies.fr> wrote:
> > > > > > Here is the error message. I deleted my local repository before
> > > > > > launching with maven 1.0.2. The only unusual thing is that,
as I said, I
> > > > > > modified the plugin.jelly file inside the sdocbook plugin (the
XML is
> > > > > > valid of course, and the modif works fine with maven 1.0)
> > > > > >
> > > > > >  __  __
> > > > > > |  \/  |__ _Apache__ ___
> > > > > > | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> > > > > > |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
> > > > > >
> > > > > > Plugin cache will be regenerated
> > > > > > Directory /home/mjambert/.maven/repository does not exist. Attempting
to
> > > > > > create.
> > > > > > Attempting to download mail-1.3.2.jar.
> > > > > > 336K downloaded
> > > > > > Attempting to download activation-1.0.2.jar.
> > > > > > 53K downloaded
> > > > > > Attempting to download maven-sdocbook-plugin-1.4-SNAPSHOT.jar.
> > > > > > 831K downloaded
> > > > > > Attempting to download maven-javaapp-plugin-1.3.jar.
> > > > > > 11K downloaded
> > > > > > org.apache.maven.MavenException: Not a valid plugin
> > > > > > file: /home/mjambert/.maven/repository/maven-plugins/plugins/maven-
> > > > > > sdocbook-plugin-1.4-SNAPSHOT.jar
> > > > > >         at org.apache.maven.plugin.PluginManager.installPlugin
> > > > > > (PluginManager.java:910)
> > > > > >         at org.apache.maven.plugin.PluginManager.installPlugin
> > > > > > (PluginManager.java:862)
> > > > > >         at org.apache.maven.plugin.PluginManager.processDependencies
> > > > > > (PluginManager.java:448)
> > > > > >         at org.apache.maven.plugin.PluginManager.attainGoals
> > > > > > (PluginManager.java:642)
> > > > > >         at org.apache.maven.MavenSession.attainGoals
> > > > > > (MavenSession.java:263)
> > > > > >         at org.apache.maven.cli.App.doMain(App.java:488)
> > > > > >         at org.apache.maven.cli.App.main(App.java:1239)
> > > > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
> > > > > >         at sun.reflect.NativeMethodAccessorImpl.invoke
> > > > > > (NativeMethodAccessorImpl.java:39)
> > > > > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > > > (DelegatingMethodAccessorImpl.java:25)
> > > > > >         at java.lang.reflect.Method.invoke(Method.java:324)
> > > > > >         at com.werken.forehead.Forehead.run(Forehead.java:551)
> > > > > >         at com.werken.forehead.Forehead.main(Forehead.java:581)
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Thu, 2004-12-09 at 22:07 +1100, Brett Porter wrote:
> > > > > > > Can you paste the actualy error message you receive?
> > > > > > >
> > > > > > > Regards,
> > > > > > > Brett
> > > > > > >
> > > > > > >
> > > > > > > On Thu, 09 Dec 2004 09:48:37 +0100, Marc Jambert
> > > > > > > <marc.jambert@vegatechnologies.fr> wrote:
> > > > > > > > Good morning,
> > > > > > > >
> > > > > > > > Since I've migrated to Maven 1.0.2 (from Maven 1.0),
I get a Plugin not
> > > > > > > > Valid Exception for a certain plugin. Actually I slightly
modify the
> > > > > > > > plugin.jelly file in this plugin. Is there something
like a checksum
> > > > > > > > done or anything ? I do not understand what is wrong.
> > > > > > > >
> > > > > > > > Thanks
> > > > > > > >
> > > > > > > > Marc
> > > > > > > >
> > > > > > > > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > >
> > > > > > ---------------------------------------------------------------------
> > > > > >
> > > > > >
> > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > > >
> > > > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > >
> > > >
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > 
> > 
> > ---------------------------------------------------------------------
> > 
> > 
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> > 
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message