[Lift] Re: Question about the Getting Started Guide

2009-10-09 Thread oatkinson

I was getting the same problem last week.  Now this week i am getting
something similar that i am wondering if it is because of a proxy:

17:26:40 atkinso...@atkinsonos-laptop:~/personal/hg/lift-experiment2$
mvn jetty:run
[INFO] Scanning for projects...
Downloading:
http://mvn.onemodel.org:8082/nexus/content/groups/dev/org/mortbay/jetty/maven-jetty-plugin/7.0.0.pre5/maven-jetty-plugin-7.0.0.pre5.jar
[INFO] Unable to find resource 'org.mortbay.jetty:maven-jetty-
plugin:maven-plugin:7.0.0.pre5' in repository scala-tools.org (http://
scala-tools.org/repo-releases)
Downloading:
http://mvn.onemodel.org:8082/nexus/content/groups/dev/org/mortbay/jetty/maven-jetty-plugin/7.0.0.pre5/maven-jetty-plugin-7.0.0.pre5.jar
[INFO] Unable to find resource 'org.mortbay.jetty:maven-jetty-
plugin:maven-plugin:7.0.0.pre5' in repository central (http://
repo1.maven.org/maven2)
[INFO] Cannot find mojo descriptor for: 'jetty:run' - Treating as non-
aggregator.
[INFO]

[INFO] Building lift-experiment2
[INFO]task-segment: [jetty:run]
[INFO]

Downloading:
http://mvn.onemodel.org:8082/nexus/content/groups/dev/org/mortbay/jetty/maven-jetty-plugin/7.0.0.pre5/maven-jetty-plugin-7.0.0.pre5.jar
[INFO] Unable to find resource 'org.mortbay.jetty:maven-jetty-
plugin:maven-plugin:7.0.0.pre5' in repository scala-tools.org (http://
scala-tools.org/repo-releases)
Downloading:
http://mvn.onemodel.org:8082/nexus/content/groups/dev/org/mortbay/jetty/maven-jetty-plugin/7.0.0.pre5/maven-jetty-plugin-7.0.0.pre5.jar
[INFO] Unable to find resource 'org.mortbay.jetty:maven-jetty-
plugin:maven-plugin:7.0.0.pre5' in repository central (http://
repo1.maven.org/maven2)
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] A required plugin was not found: Plugin could not be found -
check that the goal name is correct: Unable to download the artifact
from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.mortbay.jetty -
DartifactId=maven-jetty-plugin -Dversion=7.0.0.pre5 -Dpackaging=maven-
plugin -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.mortbay.jetty -
DartifactId=maven-jetty-plugin -Dversion=7.0.0.pre5 -Dpackaging=maven-
plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


  org.mortbay.jetty:maven-jetty-plugin:maven-plugin:7.0.0.pre5

from the specified remote repositories:
  fch (http://mvn.onemodel.org:8082/nexus/content/groups/dev)


  org.mortbay.jetty:maven-jetty-plugin:maven-plugin:7.0.0.pre5

from the specified remote repositories:
  fch (http://mvn.onemodel.org:8082/nexus/content/groups/dev)


[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 1 second
[INFO] Finished at: Fri Oct 09 17:33:49 MDT 2009
[INFO] Final Memory: 3M/17M
[INFO]

17:33:49 atkinso...@atkinsonos-laptop:~/personal/hg/lift-experiment2$


On Sep 29, 11:49 pm, Indrajit Raychaudhuri 
wrote:
> Jack,
>
> maven-jetty-plugin belongs to the group org.mortbay.jetty, not
> org.apache.maven.plugins. This makes me suspect that your jetty plugin
> isn't configured properly.
>
> A minimal jetty plugin configuration would look like this:
>
>        
>          org.mortbay.jetty
>          maven-jetty-plugin
>          
>            /
>          
>        
>
> Could you please ensure this config under build -> plugin section in
> your pom.xml and retry?
>
> Cheers, Indrajit
>
> On 30/09/09 10:09 AM, jlist9 wrote:
>
> > I just tried it on another computer and got exactly the same error when
> > running (below). I think something is broken. I checked the mvn output
> > in the first run to create helloworld project and didn't see any mentioning
> > of jetty...
>
> > D:\Java\liftweb\work>mvn jetty:run
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'jetty'.
> > [INFO] artifact org.apache.maven.plugins:maven-jetty-plugin: checking
> > for updates from central
> > [INFO] 
> > 
> > [ERROR] BUILD ERROR
> > [INFO] 
> > 
> > [INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does
> > not exist or no valid version c
> > ould be found
> > [INFO] 
> > 
> > [INFO] For more information, run Maven with 

[Lift] Re: Question about the Getting Started Guide

2009-10-10 Thread oatkinson

I reran the archetype:generate in a new artifactId and before I tried
to mvn jetty:run,  I edited the pom that was generated to use the new
name of the plugin and all worked.

  
org.mortbay.jetty
jetty-maven-plugin

  /
  5

  

is the correct form of the plugin.
Hope that help others.

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



[Lift] Re: Question about the Getting Started Guide

2009-10-10 Thread oatkinson

I think I know what is happening.  The maven-jetty-plugin has been
moved.  It is now the jetty-maven-plugin.  I reran the
archetype:generate with a new artifactId and before running the mvn
jetty:run I edited the pom to contain the following:

  
org.mortbay.jetty
jetty-maven-plugin

  5

  

NOTE that I also had to remove the configuration for the contextPath
because jetty was saying that it could not override readonly
configuration parameter.

I tried to post this earlier so I hope this works and that it is not a
duplicate.

On Oct 9, 5:37 pm, oatkinson  wrote:
> I was getting the same problem last week.  Now this week i am getting
> something similar that i am wondering if it is because of a proxy:
>
> 17:26:40 atkinso...@atkinsonos-laptop:~/personal/hg/lift-experiment2$
> mvn jetty:run
> [INFO] Scanning for projects...
> Downloading:http://mvn.onemodel.org:8082/nexus/content/groups/dev/org/mortbay/jet...
> [INFO] Unable to find resource 'org.mortbay.jetty:maven-jetty-
> plugin:maven-plugin:7.0.0.pre5' in repository scala-tools.org (http://
> scala-tools.org/repo-releases)
> Downloading:http://mvn.onemodel.org:8082/nexus/content/groups/dev/org/mortbay/jet...
> [INFO] Unable to find resource 'org.mortbay.jetty:maven-jetty-
> plugin:maven-plugin:7.0.0.pre5' in repository central (http://
> repo1.maven.org/maven2)
> [INFO] Cannot find mojo descriptor for: 'jetty:run' - Treating as non-
> aggregator.
> [INFO]
> 
> [INFO] Building lift-experiment2
> [INFO]    task-segment: [jetty:run]
> [INFO]
> 
> Downloading:http://mvn.onemodel.org:8082/nexus/content/groups/dev/org/mortbay/jet...
> [INFO] Unable to find resource 'org.mortbay.jetty:maven-jetty-
> plugin:maven-plugin:7.0.0.pre5' in repository scala-tools.org (http://
> scala-tools.org/repo-releases)
> Downloading:http://mvn.onemodel.org:8082/nexus/content/groups/dev/org/mortbay/jet...
> [INFO] Unable to find resource 'org.mortbay.jetty:maven-jetty-
> plugin:maven-plugin:7.0.0.pre5' in repository central (http://
> repo1.maven.org/maven2)
> [INFO]
> 
> [ERROR] BUILD FAILURE
> [INFO]
> 
> [INFO] A required plugin was not found: Plugin could not be found -
> check that the goal name is correct: Unable to download the artifact
> from any repository
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
>     mvn install:install-file -DgroupId=org.mortbay.jetty -
> DartifactId=maven-jetty-plugin -Dversion=7.0.0.pre5 -Dpackaging=maven-
> plugin -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the file
> there:
>     mvn deploy:deploy-file -DgroupId=org.mortbay.jetty -
> DartifactId=maven-jetty-plugin -Dversion=7.0.0.pre5 -Dpackaging=maven-
> plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
>   org.mortbay.jetty:maven-jetty-plugin:maven-plugin:7.0.0.pre5
>
> from the specified remote repositories:
>   fch (http://mvn.onemodel.org:8082/nexus/content/groups/dev)
>
>   org.mortbay.jetty:maven-jetty-plugin:maven-plugin:7.0.0.pre5
>
> from the specified remote repositories:
>   fch (http://mvn.onemodel.org:8082/nexus/content/groups/dev)
>
> [INFO]
> 
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> 
> [INFO] Total time: 1 second
> [INFO] Finished at: Fri Oct 09 17:33:49 MDT 2009
> [INFO] Final Memory: 3M/17M
> [INFO]
> 
> 17:33:49 atkinso...@atkinsonos-laptop:~/personal/hg/lift-experiment2$
>
> On Sep 29, 11:49 pm, Indrajit Raychaudhuri 
> wrote:
>
>
>
> > Jack,
>
> > maven-jetty-plugin belongs to the group org.mortbay.jetty, not
> > org.apache.maven.plugins. This makes me suspect that your jetty plugin
> > isn't configured properly.
>
> > A minimal jetty plugin configuration would look like this:
>
> >        
> >          org.mortbay.jetty
> >          maven-jetty-plugin
> >          
> >            /
> >          
> >        
>
> > Could you please ensure this config under build -> plugin section in
> > your pom.xml and retry?
>
> > Cheers, Indrajit
>
> > On 30/09/09 10:09 AM, jlist9 wrote:

[Lift] Re: Question about the Getting Started Guide

2009-10-10 Thread oatkinson

I went to the location specified and only found a pom with the
following contents:

http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  
org.mortbay.jetty
modules-extra
7.0.0.pre5
  
  org.mortbay.jetty
  maven-jetty-plugin
  pom
  Jetty Extra :: Maven Jetty Plugin :: Stub
  

  org.mortbay.jetty
  jetty-maven-plugin
  ${project.version}
  This project has been renamed and moved to jetty-maven-
plugin.

  


I am going to try changing the name to see if it makes any difference.


On Oct 9, 5:37 pm, oatkinson  wrote:
> I was getting the same problem last week.  Now this week i am getting
> something similar that i am wondering if it is because of a proxy:
>
> 17:26:40 atkinso...@atkinsonos-laptop:~/personal/hg/lift-experiment2$
> mvn jetty:run
> [INFO] Scanning for projects...
> Downloading:http://mvn.onemodel.org:8082/nexus/content/groups/dev/org/mortbay/jet...
> [INFO] Unable to find resource 'org.mortbay.jetty:maven-jetty-
> plugin:maven-plugin:7.0.0.pre5' in repository scala-tools.org (http://
> scala-tools.org/repo-releases)
> Downloading:http://mvn.onemodel.org:8082/nexus/content/groups/dev/org/mortbay/jet...
> [INFO] Unable to find resource 'org.mortbay.jetty:maven-jetty-
> plugin:maven-plugin:7.0.0.pre5' in repository central (http://
> repo1.maven.org/maven2)
> [INFO] Cannot find mojo descriptor for: 'jetty:run' - Treating as non-
> aggregator.
> [INFO]
> 
> [INFO] Building lift-experiment2
> [INFO]    task-segment: [jetty:run]
> [INFO]
> 
> Downloading:http://mvn.onemodel.org:8082/nexus/content/groups/dev/org/mortbay/jet...
> [INFO] Unable to find resource 'org.mortbay.jetty:maven-jetty-
> plugin:maven-plugin:7.0.0.pre5' in repository scala-tools.org (http://
> scala-tools.org/repo-releases)
> Downloading:http://mvn.onemodel.org:8082/nexus/content/groups/dev/org/mortbay/jet...
> [INFO] Unable to find resource 'org.mortbay.jetty:maven-jetty-
> plugin:maven-plugin:7.0.0.pre5' in repository central (http://
> repo1.maven.org/maven2)
> [INFO]
> 
> [ERROR] BUILD FAILURE
> [INFO]
> 
> [INFO] A required plugin was not found: Plugin could not be found -
> check that the goal name is correct: Unable to download the artifact
> from any repository
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
>     mvn install:install-file -DgroupId=org.mortbay.jetty -
> DartifactId=maven-jetty-plugin -Dversion=7.0.0.pre5 -Dpackaging=maven-
> plugin -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the file
> there:
>     mvn deploy:deploy-file -DgroupId=org.mortbay.jetty -
> DartifactId=maven-jetty-plugin -Dversion=7.0.0.pre5 -Dpackaging=maven-
> plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
>   org.mortbay.jetty:maven-jetty-plugin:maven-plugin:7.0.0.pre5
>
> from the specified remote repositories:
>   fch (http://mvn.onemodel.org:8082/nexus/content/groups/dev)
>
>   org.mortbay.jetty:maven-jetty-plugin:maven-plugin:7.0.0.pre5
>
> from the specified remote repositories:
>   fch (http://mvn.onemodel.org:8082/nexus/content/groups/dev)
>
> [INFO]
> 
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> 
> [INFO] Total time: 1 second
> [INFO] Finished at: Fri Oct 09 17:33:49 MDT 2009
> [INFO] Final Memory: 3M/17M
> [INFO]
> 
> 17:33:49 atkinso...@atkinsonos-laptop:~/personal/hg/lift-experiment2$
>
> On Sep 29, 11:49 pm, Indrajit Raychaudhuri 
> wrote:
>
>
>
> > Jack,
>
> > maven-jetty-plugin belongs to the group org.mortbay.jetty, not
> > org.apache.maven.plugins. This makes me suspect that your jetty plugin
> > isn't configured properly.
>
> > A minimal jetty plugin configuration would look like this:
>
> >        
> >          org.mortbay.jetty
> >          maven-jetty-plugin
> >          
> >            /
> >          
> >        
>
> > Could you please ensure this config under build -> plugin section in
> > yo