Lift Maven Archetype

188 views
Skip to first unread message

Senthil

unread,
Oct 20, 2010, 11:11:00 PM10/20/10
to Lift
When I try to run jetty, I am getting the following error. I have
created the project as specified in Wiki using maven archetype-basic

E:\myworkout>mvn -e jetty:run
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloaded: http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml
(17 KB at 12.9 KB/sec)
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml
(9 KB at 4.2 KB/sec)
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2.359s
[INFO] Finished at: Thu Oct 21 08:32:54 IST 2010
[INFO] Final Memory: 2M/6M
[INFO]
------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'jetty' in the current project and
in the plugin groups [org.apache.maven.plugins, or
g.codehaus.mojo] available from the repositories [local (C:\Documents
and Settings\senthilkumar.v\.m2\repository), centr
al (http://repo1.maven.org/maven2)] -> [Help 1]
org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No
plugin found for prefix 'jetty' in the current projec
t and in the plugin groups [org.apache.maven.plugins,
org.codehaus.mojo] available from the repositories [local (C:\Docu
ments and Settings\senthilkumar.v\.m2\repository), central (http://
repo1.maven.org/maven2)]
at
org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:
91)
at
org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:
248)

at
org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:
208)
at
org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecy
cleTaskSegmentCalculator.java:106)
at
org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecy
cleTaskSegmentCalculator.java:86)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:
98)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
314)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
151)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
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:592)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:
290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:
409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException

David Pollak

unread,
Oct 21, 2010, 12:05:43 AM10/21/10
to lif...@googlegroups.com
On Wed, Oct 20, 2010 at 8:11 PM, Senthil <sendmail...@gmail.com> wrote:
When I try to run jetty, I am getting the following error. I have
created the project as specified in Wiki using maven archetype-basic

Please be specific about the commands you ran and the wiki page you found them on.
 

--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.




--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Blog: http://goodstuff.im
Surf the harmonics

David Bernard

unread,
Oct 21, 2010, 5:59:34 AM10/21/10
to lif...@googlegroups.com
What is the content of E:\myworkout\pom.xml ?

Indrajit Raychaudhuri

unread,
Oct 21, 2010, 9:01:52 AM10/21/10
to lif...@googlegroups.com
Senthil,

Looks like the section for maven-jetty-plugin is incorrect in your
project descriptor (E:\myworkout\pom.xml).

At the least, it should be having something like:
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.25</version>
</plugin>

Specifically, the <groupId/> element is mandatory in the particular case
of jetty (since it's not a Maven distributed plugin).

As David said, please share the way you got this pom.xml (command, wiki
etc.)

- Indrajit

David Bernard wrote:
> What is the content of E:\myworkout\pom.xml ?
>
> On Thu, Oct 21, 2010 at 06:05, David Pollak

> <feeder.of...@gmail.com <mailto:feeder.of...@gmail.com>>


> wrote:
>
>
>
> On Wed, Oct 20, 2010 at 8:11 PM, Senthil

> <sendmail...@gmail.com <mailto:sendmail...@gmail.com>>

> repo1.maven.org/maven2 <http://repo1.maven.org/maven2>)]

> <mailto:lif...@googlegroups.com>.


> To unsubscribe from this group, send email to
> liftweb+u...@googlegroups.com

> <mailto:liftweb%2Bunsu...@googlegroups.com>.


> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Blog: http://goodstuff.im
> Surf the harmonics
>
> --
> You received this message because you are subscribed to the Google
> Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com

> <mailto:lif...@googlegroups.com>.


> To unsubscribe from this group, send email to
> liftweb+u...@googlegroups.com

> <mailto:liftweb%2Bunsu...@googlegroups.com>.

Vlad Patryshev

unread,
Oct 25, 2010, 12:58:03 AM10/25/10
to Lift
Seems like I have the same problem: I have this in my pom:

<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.25</version>
<configuration>
<contextPath>/</contextPath>
<scanIntervalSeconds>5</scanIntervalSeconds>
</configuration>
</plugin>

(it was 6.1.24, I changed it back and forth to 6.1.25), and all I see
is the following when I run mvn -e jetty:run:

[ERROR] No plugin found for prefix 'jetty' in the current project and
in the plugin groups [org.apache.maven.plugins, or
g.codehaus.mojo] available from the repositories [local (C:\Users
\vpatryshev\.m2\repository), central (http://repo1.mave
n.org/maven2)] -> [Help 1]
org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No
plugin found for prefix 'jetty' in the current projec
t and in the plugin groups [org.apache.maven.plugins,
org.codehaus.mojo] available from the repositories [local (C:\User
s\vpatryshev\.m2\repository), central (http://repo1.maven.org/maven2)]
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:
290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:
409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException

Reading the article referenced, I checked out settings.xml in my .m2
directory - there's none.
So I found settings.xml in maven/conf directory, copied it over to
my .m2 - did not help. Looking into this file, I got a feeling it is
just a stub.

So probably the question is - who and how is supposed to build teh
right settings.xml?

Thanks,
-Vlad


On Oct 21, 6:01 am, Indrajit Raychaudhuri <indraj...@gmail.com> wrote:
> Senthil,
>
> Looks like the section for maven-jetty-plugin is incorrect in your
> project descriptor (E:\myworkout\pom.xml).
>
> At the least, it should be having something like:
> <plugin>
>    <groupId>org.mortbay.jetty</groupId>
>    <artifactId>maven-jetty-plugin</artifactId>
>    <version>6.1.25</version>
> </plugin>
>
> Specifically, the <groupId/> element is mandatory in the particular case
> of jetty (since it's not a Maven distributed plugin).
>
> As David said, please share the way you got this pom.xml (command, wiki
> etc.)
>
> - Indrajit
>
>
>
> David Bernard wrote:
> > What is the content of E:\myworkout\pom.xml ?
>
> > On Thu, Oct 21, 2010 at 06:05, David Pollak
> > <feeder.of.the.be...@gmail.com <mailto:feeder.of.the.be...@gmail.com>>
> > wrote:
>
> >     On Wed, Oct 20, 2010 at 8:11 PM, Senthil
> >     <sendmailtosent...@gmail.com <mailto:sendmailtosent...@gmail.com>>
> >     wrote:
>
> >         When I try to run jetty, I am getting the following error. I have
> >         created the project as specified in Wiki using maven archetype-basic
>
> >     Please be specific about the commands you ran and the wiki page you
> >     found them on.
>
> >         E:\myworkout>mvn -e jetty:run
> >         [INFO] Error stacktraces are turned on.
> >         [INFO] Scanning for projects...
> >         Downloading:
> >        http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata...
> >         Downloading:
> >        http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml
> >         Downloaded:
> >        http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml
> >         (17 KB at 12.9 KB/sec)
> >         Downloaded:
> >        http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata...
> >        http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPref...
>
> >         --
> >         You received this message because you are subscribed to the
> >         Google Groups "Lift" group.
> >         To post to this group, send email to lif...@googlegroups.com
> >         <mailto:lif...@googlegroups.com>.
> >         To unsubscribe from this group, send email to
> >         liftweb+u...@googlegroups.com
> >         <mailto:liftweb%2Bunsu...@googlegroups.com>.
> >         For more options, visit this group at
> >        http://groups.google.com/group/liftweb?hl=en.
>
> >     --
> >     Lift, the simply functional web frameworkhttp://liftweb.net
> >     Beginning Scalahttp://www.apress.com/book/view/1430219890

Indrajit Raychaudhuri

unread,
Oct 25, 2010, 4:10:43 AM10/25/10
to lif...@googlegroups.com
Are you using Maven 3? If so, try:
http://maven.apache.org/settings.html#Plugin_Groups

- Indrajit

Vlad Patryshev

unread,
Oct 25, 2010, 8:46:36 PM10/25/10
to Lift
Thank you! It helped.


Vlad

On Oct 25, 1:10 am, Indrajit Raychaudhuri <indraj...@gmail.com> wrote:
> Are you using Maven 3? If so, try:http://maven.apache.org/settings.html#Plugin_Groups
>
> - Indrajit
>
>
>
> Vlad Patryshev wrote:
> > Seems like I have the same problem: I have this in my pom:
>
> >        <plugin>
> >          <groupId>org.mortbay.jetty</groupId>
> >          <artifactId>maven-jetty-plugin</artifactId>
> >          <version>6.1.25</version>
> >          <configuration>
> >            <contextPath>/</contextPath>
> >            <scanIntervalSeconds>5</scanIntervalSeconds>
> >          </configuration>
> >        </plugin>
>
> > (it was 6.1.24, I changed it back and forth to6.1.25), and all I see
> > is the following when I run mvn -e jetty:run:
>
> > [ERROR] No plugin found for prefix 'jetty' in the current project and
> > in the plugin groups [org.apache.maven.plugins, or
> > g.codehaus.mojo] available from the repositories [local (C:\Users
> > \vpatryshev\.m2\repository), central (http://repo1.mave
> > n.org/maven2)] ->  [Help 1]
> > org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No
> > plugin found for prefix 'jetty' in the current projec
> > t and in the plugin groups [org.apache.maven.plugins,
> > org.codehaus.mojo] available from the repositories [local (C:\User
> > s\vpatryshev\.m2\repository), central (http://repo1.maven.org/maven2)]
> >          at
> >          at java.lang.reflect.Method.invoke(Method.java:597)
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages