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.
Go to the base directory of "myBlock1" and run "mvn install" from there. This
will put the block into your local repository and is then available when you
build the "myCocoonWebapp" module.
--
Reinhard Pötz Managing Director, {Indoqa} GmbH
http://www.indoqa.com/en/people/reinhard.poetz/
Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member, PMC Chair [EMAIL PROTECTED]
_________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]