cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <reinh...@apache.org>
Subject Re: Deploying a Cocoon 2.2 application: missing dependency
Date Tue, 04 Dec 2007 14:57:17 GMT
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        reinhard@apache.org
_________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message