Thanks a ton stuart. Its working now.

On Jan 7, 2008 5:20 PM, Stuart McCulloch <[EMAIL PROTECTED]>
wrote:

> On 07/01/2008, amit kumar <[EMAIL PROTECTED]> wrote:
> >
> > I had resolved this problem, by putting the snapshots repository into
> > pluginRepository tag rather than normal repository tag. Though can not
> > explain why it worked but it just did.
>
>
> plugins are only downloaded from plugin repositories listed under
> <pluginRepositories>
> so adding the snapshot repository to <repositories> would not enable
> downloading of
> the plugin snapshot (only any non-plugin snapshot artifacts that it
> depended
> on)
>
> also, installing the plugin manually (using install:install-file?) might
> not
> have updated
> the plugin metadata in your local repository, which would explain why it
> only worked
> once you added the snapshot plugin repository and Maven updated the
> metadata...
>
> HTH
>
> Regards,
> > Amit Kumar
> >
> > On Jan 7, 2008 3:29 PM, amit kumar <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > > I want to package a myproj.sar within a myproj.ear.
> > > The structure I want is
> > >
> > > MyProject.ear
> > >                         - MyProject.sar
> > >                                                  -lib
> > >                                                       -jars..
> > >
> > > I am trying to use jboss-packaging-maven-plugin from
> > > http://mojo.codehaus.org/jboss-packaging-maven-plugin/, but it did not
> > > work for me.
> > > below are the things that I tried already
> > > a) I had followed this link
> >
> http://docs.codehaus.org/display/MAVENUSER/Creating+JBoss+SAR+(Service+ARchive)+Artifacts#CreatingJBossSAR%28ServiceARchive%29Artifacts-SARinaMultiprojectBuild%2CIncludedinanEAR<http://docs.codehaus.org/display/MAVENUSER/Creating+JBoss+SAR+%28Service+ARchive%29+Artifacts#CreatingJBossSAR%28ServiceARchive%29Artifacts-SARinaMultiprojectBuild%2CIncludedinanEAR>
> > >
> > > <
> >
> http://docs.codehaus.org/display/MAVENUSER/Creating+JBoss+SAR+%28Service+ARchive%29+Artifacts#CreatingJBossSAR%28ServiceARchive%29Artifacts-SARinaMultiprojectBuild%2CIncludedinanEAR
> > >
> > > but the maven threw an error where it wasn't able to download it from
> > > repo1.maven.org, i manually downloaded the
> jboss-packaging-maven-plugin
> > > from codehaus's snapshot repository and installed in my local
> repository
> > > after that I am seeing the below exception
> > >
> > > [ERROR] FATAL ERROR
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] The PluginDescriptor for the plugin Plugin [
> > > org.codehaus.mojo:jboss-packaging-maven-plugin] was not found.
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Trace
> > > java.lang.IllegalStateException: The PluginDescriptor for the plugin
> > > Plugin [org.codehaus.mojo:jboss-packaging-maven-plugin ] was not
> found.
> > >         at org.apache.maven.plugin.DefaultPluginManager.addPlugin(
> > > DefaultPluginManager.java:317)
> > >         at
> > > org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(
> > > DefaultPluginManager.java :207)
> > >         at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(
> > > DefaultPluginManager.java:171)
> > >         at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
> > > DefaultLifecycleExecutor.java:1257)
> > >         at
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(
> > > DefaultLifecycleExecutor.java:1221)
> > >         at
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings
> > > (DefaultLifecycleExecutor.java :987)
> > >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> > > (DefaultLifecycleExecutor.java:458)
> > >         at
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> > > (DefaultLifecycleExecutor.java :311)
> > >         at
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> > > DefaultLifecycleExecutor.java:278)
> > >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> (
> > > DefaultLifecycleExecutor.java :143)
> > >         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
> > :334)
> > >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java
> :125)
> > >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> > >         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: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:430)
> > >         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > >
> > > Could someone please help?
> > >
> > > Regards,
> > > Amit
> > >
> > >
> >
>
>
>
> --
> Cheers, Stuart
>

Reply via email to