You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sébastien Geindre <se...@meteo.fr> on 2007/01/09 17:32:20 UTC

Pb on depedencies in cocoon2.2 with maven

Hello everybody,

I've tried the tutorial /Your first Cocoon application using Maven 2 
/http://cocoon.zones.apache.org/daisy/cdocs/g2/g1/g2/1159.html

The web application does not well package.
It seems that several dependencies are wrong.

Did anybody succeed with this tutorial ?
DO i have to change the dependencies ? Or re-create a local maven 
repository ?

mvn package
...
Downloading: 
http://mirrors.dotsrc.org/maven2/jakarta-bcel/jakarta-bcel/20040329/jakarta-bcel-20040329.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://mirrors.dotsrc.org/maven2/org/apache/excalibur/containerkit/logger/excalibur-logger/2.1/excalibur-logger-2.1.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://mirrors.dotsrc.org/maven2/org/apache/excalibur/components/sourceresolve/excalibur-sourceresolve/2.1/excalibur-sourceresolve-2.1.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://mirrors.dotsrc.org/maven2/org/apache/excalibur/components/xmlutil/excalibur-xmlutil/2.1/excalibur-xmlutil-2.1.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://mirrors.dotsrc.org/maven2/org/apache/excalibur/components/store/excalibur-store/2.1/excalibur-store-2.1.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://mirrors.dotsrc.org/maven2/org/apache/excalibur/components/pool/excalibur-pool-api/2.1/excalibur-pool-api-2.1.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://mirrors.dotsrc.org/maven2/org/apache/avalon/framework/avalon-framework-impl/4.3/avalon-framework-impl-4.3.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
...

And, then mvn jetty:run could not complete :

2007-01-09 17:30:06.047::WARN:  Could not instantiate listener 
org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: 
org.springframework.web.context.ContextLoaderListener
...



Re: Pb on depedencies in cocoon2.2 with maven

Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Sébastien Geindre napisał(a):
> Hello everybody,
>
> I've tried the tutorial /Your first Cocoon application using Maven 2 
> /http://cocoon.zones.apache.org/daisy/cdocs/g2/g1/g2/1159.html
>
> The web application does not well package.
> It seems that several dependencies are wrong.
>
> Did anybody succeed with this tutorial ?
> DO i have to change the dependencies ? Or re-create a local maven 
> repository ?
>
I've encountered some problems trying M2, see [1]. For me, the solution 
was to put additional repository information (for apache.snapshot) in 
poms. But your problem seems to be different, anyway try to remove whole 
m2 local repository. If still no success, run maven with -X parameter 
and paste the output (or see yourself what's going on).

[1] https://issues.apache.org/jira/browse/COCOON-1975


--
Grzegorz Kossakowski

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