Dear Cocooners, I've done:
cd myblock1 mvn install cd ../myCocoonWebapp mvn package jetty:run and now it works! Can this be done automatically by Maven? dperez wrote: > > Hi, > > I'm trying to use Cocoon 2.2 > > I've followed this tutorial: > http://cocoon.apache.org/2.2/1362_1_1.html > > When I try to package my block as a webapp with > > mvn package jetty:run > > then I get the following error: > > 1) com.mycompany:myblock1:jar:1.0-SNAPSHOT > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=com.mycompany > -DartifactId=myblock1 -Dversion=1.0-S > NAPSHOT -Dpackaging=jar -Dfile=/path/to/file > > Alternatively, if you host your own repository you can deploy the file > there: > mvn deploy:deploy-file -DgroupId=com.mycompany -DartifactId=myblock1 > -Dversion=1.0-SNA > PSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] > > Path to dependency: > 1) com.mycompany:myCocoonWebapp:war:1.0-SNAPSHOT > 2) com.mycompany:myblock1:jar:1.0-SNAPSHOT > > > As I'm a newbie to Maven, it's hard for me to solve this. > Any help will be greatly appreciated. > > David > -- View this message in context: http://www.nabble.com/Deploying-a-Cocoon-2.2-application%3A-missing-dependency-tf4943471.html#a14152141 Sent from the Cocoon - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
