The Cocoon 2.2 installation instructions assume changing directories
happens during the optional "Import the block in Eclipse" section.
This causes confusion when skipping to the "Run the block as Java web
application". Please change the order of sections to "Install",
"Run", then "Develop". Why would anyone start development without
verifying the "Hello World" example runs properly?
After changing to the block directory, "mvn jetty:run" runs for a long
time and ends with errors about missing JARs for Jetty (see below).
solprovider
===
>mvn --version
Maven version: 2.0.8
Java version: 1.4.2_15
OS name: "windows 2003" version: "5.2" arch: "x86" Family: "windows"
>mvn jetty:run
...
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.mortbay.jetty:jetty-util:jar:2.4.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.mortbay.jetty -DartifactId=jetty-ut
il -Dversion=2.4.1 -Dpackaging=jar -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=jetty-util
-Dversion=2.4.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId
=[id]
Path to dependency:
1) org.mortbay.jetty:maven-jetty-plugin:maven-plugin:6.1.5
2) org.mortbay.jetty:jetty:jar:6.1.5
3) org.mortbay.jetty:jetty-util:jar:2.4.1
2) org.mortbay.jetty:servlet-api-2.5:jar:2.4.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.mortbay.jetty -DartifactId=servlet-
api-2.5 -Dversion=2.4.1 -Dpackaging=jar -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=servlet-ap
i-2.5 -Dversion=2.4.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dreposit
oryId=[id]
Path to dependency:
1) org.mortbay.jetty:maven-jetty-plugin:maven-plugin:6.1.5
2) org.mortbay.jetty:jetty:jar:6.1.5
3) org.mortbay.jetty:servlet-api-2.5:jar:2.4.1
3) org.mortbay.jetty:jsp-api-2.0:jar:2.4.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.mortbay.jetty -DartifactId=jsp-api-
2.0 -Dversion=2.4.1 -Dpackaging=jar -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=jsp-api-2.
0 -Dversion=2.4.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryI
d=[id]
Path to dependency:
1) org.mortbay.jetty:maven-jetty-plugin:maven-plugin:6.1.5
2) org.mortbay.jetty:jsp-2.0:pom:6.1.5
3) org.mortbay.jetty:jsp-api-2.0:jar:2.4.1
----------
3 required artifacts are missing.
for artifact:
org.mortbay.jetty:maven-jetty-plugin:maven-plugin:6.1.5
from the specified remote repositories:
codehaus.org (http://snapshots.repository.codehaus.org),
central (http://repo1.maven.org/maven2),
apache.m2.incubator (http://people.apache.org/repo/m2-snapshot-repository/)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]