Forum Lutèce

phil89
 4  1214
4

BUIL FAILURE soucis de dependance

BUIL FAILURE soucis de dependance

Bonjour,
Une petire réponse ?
Meric bcp
Phil

[code]
[ERROR] Failed to execute goal on project jce: Could not resolve dependencies for project fr.paris.lutece:jce:lutece-site:0.0.1: Failed to collect dependencies for [fr.paris.lutece:lutece-core:jar:3.1.7 (compile), fr.paris.lutece.plugins:plugin-document:jar:2.2.3 (compile), fr.paris.lutece.plugins:plugin-html:jar:2.1.3 (compile), fr.paris.lutece.plugins:plugin-insertalbum:jar:1.1.5 (compile), fr.paris.lutece.plugins:plugin-links:jar:2.0.8 (compile), fr.paris.lutece.plugins:plugin-folderlisting:jar:2.1.1 (compile), fr.paris.lutece.plugins:plugin-linkpages:jar:2.2.0 (compile), fr.paris.lutece.plugins:plugin-childpages:jar:2.1.2 (compile), fr.paris.lutece.plugins:plugin-calendar:jar:3.0.3 (compile), fr.paris.lutece.plugins:plugin-library:jar:2.1.1 (compile), fr.paris.lutece.plugins:plugin-newsletter:jar:2.2.5 (compile), fr.paris.lutece.plugins:plugin-whatsnew:jar:2.1.1 (compile), fr.paris.lutece.plugins:plugin-rss:jar:2.2.6 (compile), fr.paris.lutece.plugins:plugin-contact:jar:2.1.3 (compile), fr.paris.lutece.plugins:module-mylutece-database:jar:2.3.4 (compile), fr.paris.lutece.plugins:plugin-upload:jar:2.1.2-SNAPSHOT (compile), fr.paris.lutece.plugins:plugin-insertmap:jar:1.1.2-SNAPSHOT (compile), fr.paris.lutece.plugins:plugin-form:jar:2.5.0 (compile), fr.paris.lutece.plugins:plugin-wrapper:jar:1.0.1 (compile), fr.paris.lutece.plugins:plugin-digglike:jar:2.2.4 (compile), fr.paris.lutece.plugins:plugin-urlrewriter:jar:1.1.3 (compile), fr.paris.lutece.plugins:library-lucene:jar:1.0.5 (compile), javax.servlet:servlet-api:jar:2.5 (provided), javax.servlet:jsp-api:jar:2.0 (provided), fr.paris.lutece.plugins:library-lutece-unit-testing:jar:2.0.6 (test), junit:junit:jar:4.8.1 (test)]: Could not resolve version conflict among [fr.paris.lutece:lutece-core:jar:3.1.7, fr.paris.lutece.plugins:plugin-document:jar:2.2.3 -> fr.paris.lutece:lutece-core:jar:[3.0.4-SNAPSHOT,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-html:jar:2.1.3 -> fr.paris.lutece:lutece-core:jar:[2.3.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-insertalbum:jar:1.1.5 -> fr.paris.lutece:lutece-core:jar:[2.3.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-links:jar:2.0.8 -> fr.paris.lutece:lutece-core:jar:[2.2.6,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-folderlisting:jar:2.1.1 -> fr.paris.lutece:lutece-core:jar:[2.3.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-linkpages:jar:2.2.0 -> fr.paris.lutece:lutece-core:jar:[2.5.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-childpages:jar:2.1.2 -> fr.paris.lutece:lutece-core:jar:[2.3.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-calendar:jar:3.0.3 -> fr.paris.lutece:lutece-core:jar:[2.4.2-SNAPSHOT,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-library:jar:2.1.1 -> fr.paris.lutece:lutece-core:jar:[2.3.1-SNAPSHOT,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-newsletter:jar:2.2.5 -> fr.paris.lutece:lutece-core:jar:[2.3.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-whatsnew:jar:2.1.1 -> fr.paris.lutece:lutece-core:jar:[2.3.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-rss:jar:2.2.6 -> fr.paris.lutece:lutece-core:jar:[3.0.0-SNAPSHOT,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-rss:jar:2.2.6 -> fr.paris.lutece.plugins:library-httpaccess:jar:[2.2.6,3.0.0-SNAPSHOT) -> fr.paris.lutece:lutece-core:jar:[2.2.6,5.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-rss:jar:2.2.6 -> fr.paris.lutece.plugins:library-rss:jar:[1.0.0,2.0.0-SNAPSHOT) -> fr.paris.lutece:lutece-core:jar:[2.3.0,5.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-contact:jar:2.1.3 -> fr.paris.lutece:lutece-core:jar:[2.3.1,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:module-mylutece-database:jar:2.3.4 -> fr.paris.lutece.plugins:plugin-mylutece:jar:[3.0.3,5.0.0-SNAPSHOT) -> fr.paris.lutece:lutece-core:jar:[4.0.0-SNAPSHOT,5.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-upload:jar:2.1.2-SNAPSHOT -> fr.paris.lutece:lutece-core:jar:[2.3.0,5.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-insertmap:jar:1.1.2-SNAPSHOT -> fr.paris.lutece:lutece-core:jar:[2.3.0,5.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-form:jar:2.5.0 -> fr.paris.lutece:lutece-core:jar:[2.4.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-wrapper:jar:1.0.1 -> fr.paris.lutece:lutece-core:jar:[2.3.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-digglike:jar:2.2.4 -> fr.paris.lutece:lutece-core:jar:[2.4.2-SNAPSHOT,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-urlrewriter:jar:1.1.3 -> fr.paris.lutece:lutece-core:jar:[2.3.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:library-lutece-unit-testing:jar:2.0.6 -> fr.paris.lutece:lutece-core:jar:RELEASE] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project jce: Could not resolve dependencies for project fr.paris.lutece:jce:lutece-site:0.0.1: Failed to collect dependencies for [fr.paris.lutece:lutece-core:jar:3.1.7 (compile), fr.paris.lutece.plugins:plugin-document:jar:2.2.3 (compile), fr.paris.lutece.plugins:plugin-html:jar:2.1.3 (compile), fr.paris.lutece.plugins:plugin-insertalbum:jar:1.1.5 (compile), fr.paris.lutece.plugins:plugin-links:jar:2.0.8 (compile), fr.paris.lutece.plugins:plugin-folderlisting:jar:2.1.1 (compile), fr.paris.lutece.plugins:plugin-linkpages:jar:2.2.0 (compile), fr.paris.lutece.plugins:plugin-childpages:jar:2.1.2 (compile), fr.paris.lutece.plugins:plugin-calendar:jar:3.0.3 (compile), fr.paris.lutece.plugins:plugin-library:jar:2.1.1 (compile), fr.paris.lutece.plugins:plugin-newsletter:jar:2.2.5 (compile), fr.paris.lutece.plugins:plugin-whatsnew:jar:2.1.1 (compile), fr.paris.lutece.plugins:plugin-rss:jar:2.2.6 (compile), fr.paris.lutece.plugins:plugin-contact:jar:2.1.3 (compile), fr.paris.lutece.plugins:module-mylutece-database:jar:2.3.4 (compile), fr.paris.lutece.plugins:plugin-upload:jar:2.1.2-SNAPSHOT (compile), fr.paris.lutece.plugins:plugin-insertmap:jar:1.1.2-SNAPSHOT (compile), fr.paris.lutece.plugins:plugin-form:jar:2.5.0 (compile), fr.paris.lutece.plugins:plugin-wrapper:jar:1.0.1 (compile), fr.paris.lutece.plugins:plugin-digglike:jar:2.2.4 (compile), fr.paris.lutece.plugins:plugin-urlrewriter:jar:1.1.3 (compile), fr.paris.lutece.plugins:library-lucene:jar:1.0.5 (compile), javax.servlet:servlet-api:jar:2.5 (provided), javax.servlet:jsp-api:jar:2.0 (provided), fr.paris.lutece.plugins:library-lutece-unit-testing:jar:2.0.6 (test), junit:junit:jar:4.8.1 (test)]
	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
	at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project fr.paris.lutece:jce:lutece-site:0.0.1: Failed to collect dependencies for [fr.paris.lutece:lutece-core:jar:3.1.7 (compile), fr.paris.lutece.plugins:plugin-document:jar:2.2.3 (compile), fr.paris.lutece.plugins:plugin-html:jar:2.1.3 (compile), fr.paris.lutece.plugins:plugin-insertalbum:jar:1.1.5 (compile), fr.paris.lutece.plugins:plugin-links:jar:2.0.8 (compile), fr.paris.lutece.plugins:plugin-folderlisting:jar:2.1.1 (compile), fr.paris.lutece.plugins:plugin-linkpages:jar:2.2.0 (compile), fr.paris.lutece.plugins:plugin-childpages:jar:2.1.2 (compile), fr.paris.lutece.plugins:plugin-calendar:jar:3.0.3 (compile), fr.paris.lutece.plugins:plugin-library:jar:2.1.1 (compile), fr.paris.lutece.plugins:plugin-newsletter:jar:2.2.5 (compile), fr.paris.lutece.plugins:plugin-whatsnew:jar:2.1.1 (compile), fr.paris.lutece.plugins:plugin-rss:jar:2.2.6 (compile), fr.paris.lutece.plugins:plugin-contact:jar:2.1.3 (compile), fr.paris.lutece.plugins:module-mylutece-database:jar:2.3.4 (compile), fr.paris.lutece.plugins:plugin-upload:jar:2.1.2-SNAPSHOT (compile), fr.paris.lutece.plugins:plugin-insertmap:jar:1.1.2-SNAPSHOT (compile), fr.paris.lutece.plugins:plugin-form:jar:2.5.0 (compile), fr.paris.lutece.plugins:plugin-wrapper:jar:1.0.1 (compile), fr.paris.lutece.plugins:plugin-digglike:jar:2.2.4 (compile), fr.paris.lutece.plugins:plugin-urlrewriter:jar:1.1.3 (compile), fr.paris.lutece.plugins:library-lucene:jar:1.0.5 (compile), javax.servlet:servlet-api:jar:2.5 (provided), javax.servlet:jsp-api:jar:2.0 (provided), fr.paris.lutece.plugins:library-lutece-unit-testing:jar:2.0.6 (test), junit:junit:jar:4.8.1 (test)]
	at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:158)
	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
	... 22 more
Caused by: org.sonatype.aether.collection.DependencyCollectionException: Failed to collect dependencies for [fr.paris.lutece:lutece-core:jar:3.1.7 (compile), fr.paris.lutece.plugins:plugin-document:jar:2.2.3 (compile), fr.paris.lutece.plugins:plugin-html:jar:2.1.3 (compile), fr.paris.lutece.plugins:plugin-insertalbum:jar:1.1.5 (compile), fr.paris.lutece.plugins:plugin-links:jar:2.0.8 (compile), fr.paris.lutece.plugins:plugin-folderlisting:jar:2.1.1 (compile), fr.paris.lutece.plugins:plugin-linkpages:jar:2.2.0 (compile), fr.paris.lutece.plugins:plugin-childpages:jar:2.1.2 (compile), fr.paris.lutece.plugins:plugin-calendar:jar:3.0.3 (compile), fr.paris.lutece.plugins:plugin-library:jar:2.1.1 (compile), fr.paris.lutece.plugins:plugin-newsletter:jar:2.2.5 (compile), fr.paris.lutece.plugins:plugin-whatsnew:jar:2.1.1 (compile), fr.paris.lutece.plugins:plugin-rss:jar:2.2.6 (compile), fr.paris.lutece.plugins:plugin-contact:jar:2.1.3 (compile), fr.paris.lutece.plugins:module-mylutece-database:jar:2.3.4 (compile), fr.paris.lutece.plugins:plugin-upload:jar:2.1.2-SNAPSHOT (compile), fr.paris.lutece.plugins:plugin-insertmap:jar:1.1.2-SNAPSHOT (compile), fr.paris.lutece.plugins:plugin-form:jar:2.5.0 (compile), fr.paris.lutece.plugins:plugin-wrapper:jar:1.0.1 (compile), fr.paris.lutece.plugins:plugin-digglike:jar:2.2.4 (compile), fr.paris.lutece.plugins:plugin-urlrewriter:jar:1.1.3 (compile), fr.paris.lutece.plugins:library-lucene:jar:1.0.5 (compile), javax.servlet:servlet-api:jar:2.5 (provided), javax.servlet:jsp-api:jar:2.0 (provided), fr.paris.lutece.plugins:library-lutece-unit-testing:jar:2.0.6 (test), junit:junit:jar:4.8.1 (test)]
	at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:258)
	at org.sonatype.aether.impl.internal.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:308)
	at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:150)
	... 23 more
Caused by: org.sonatype.aether.collection.UnsolvableVersionConflictException: Could not resolve version conflict among [fr.paris.lutece:lutece-core:jar:3.1.7, fr.paris.lutece.plugins:plugin-document:jar:2.2.3 -> fr.paris.lutece:lutece-core:jar:[3.0.4-SNAPSHOT,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-html:jar:2.1.3 -> fr.paris.lutece:lutece-core:jar:[2.3.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-insertalbum:jar:1.1.5 -> fr.paris.lutece:lutece-core:jar:[2.3.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-links:jar:2.0.8 -> fr.paris.lutece:lutece-core:jar:[2.2.6,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-folderlisting:jar:2.1.1 -> fr.paris.lutece:lutece-core:jar:[2.3.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-linkpages:jar:2.2.0 -> fr.paris.lutece:lutece-core:jar:[2.5.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-childpages:jar:2.1.2 -> fr.paris.lutece:lutece-core:jar:[2.3.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-calendar:jar:3.0.3 -> fr.paris.lutece:lutece-core:jar:[2.4.2-SNAPSHOT,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-library:jar:2.1.1 -> fr.paris.lutece:lutece-core:jar:[2.3.1-SNAPSHOT,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-newsletter:jar:2.2.5 -> fr.paris.lutece:lutece-core:jar:[2.3.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-whatsnew:jar:2.1.1 -> fr.paris.lutece:lutece-core:jar:[2.3.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-rss:jar:2.2.6 -> fr.paris.lutece:lutece-core:jar:[3.0.0-SNAPSHOT,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-rss:jar:2.2.6 -> fr.paris.lutece.plugins:library-httpaccess:jar:[2.2.6,3.0.0-SNAPSHOT) -> fr.paris.lutece:lutece-core:jar:[2.2.6,5.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-rss:jar:2.2.6 -> fr.paris.lutece.plugins:library-rss:jar:[1.0.0,2.0.0-SNAPSHOT) -> fr.paris.lutece:lutece-core:jar:[2.3.0,5.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-contact:jar:2.1.3 -> fr.paris.lutece:lutece-core:jar:[2.3.1,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:module-mylutece-database:jar:2.3.4 -> fr.paris.lutece.plugins:plugin-mylutece:jar:[3.0.3,5.0.0-SNAPSHOT) -> fr.paris.lutece:lutece-core:jar:[4.0.0-SNAPSHOT,5.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-upload:jar:2.1.2-SNAPSHOT -> fr.paris.lutece:lutece-core:jar:[2.3.0,5.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-insertmap:jar:1.1.2-SNAPSHOT -> fr.paris.lutece:lutece-core:jar:[2.3.0,5.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-form:jar:2.5.0 -> fr.paris.lutece:lutece-core:jar:[2.4.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-wrapper:jar:1.0.1 -> fr.paris.lutece:lutece-core:jar:[2.3.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-digglike:jar:2.2.4 -> fr.paris.lutece:lutece-core:jar:[2.4.2-SNAPSHOT,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-urlrewriter:jar:1.1.3 -> fr.paris.lutece:lutece-core:jar:[2.3.0,4.0.0-SNAPSHOT), fr.paris.lutece.plugins:library-lutece-unit-testing:jar:2.0.6 -> fr.paris.lutece:lutece-core:jar:RELEASE]
	at org.sonatype.aether.util.graph.transformer.NearestVersionConflictResolver.newFailure(NearestVersionConflictResolver.java:198)
	at org.sonatype.aether.util.graph.transformer.NearestVersionConflictResolver.backtrack(NearestVersionConflictResolver.java:182)
	at org.sonatype.aether.util.graph.transformer.NearestVersionConflictResolver.selectVersion(NearestVersionConflictResolver.java:131)
	at org.sonatype.aether.util.graph.transformer.NearestVersionConflictResolver.selectVersion(NearestVersionConflictResolver.java:141)
	at org.sonatype.aether.util.graph.transformer.NearestVersionConflictResolver.selectVersion(NearestVersionConflictResolver.java:141)
	at org.sonatype.aether.util.graph.transformer.NearestVersionConflictResolver.selectVersion(NearestVersionConflictResolver.java:141)
	at org.sonatype.aether.util.graph.transformer.NearestVersionConflictResolver.transformGraph(NearestVersionConflictResolver.java:65)
	at org.sonatype.aether.util.graph.transformer.ChainedDependencyGraphTransformer.transformGraph(ChainedDependencyGraphTransformer.java:71)
	at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:249)
	... 25 more
[/code]

 

 

 

LLI
Bonjour, Afin de compiler votre site (j'ai repris votre pom.xml à partir d'un autre post), il faut que vous définissez la version du plugin-mylutece. En effet, si la version du plugin-mylutece n'est pas spécifiée, le module-mylutece-database va récupérer par défaut la dernière version du plugin-mylutece, à savoir la version 3.0.5-SNAPSHOT. Or cette version possède une plage de version du core [4.0.0-SNAPSHOT,5.0.0-SNAPSHOT) alors que votre site nécessite une version du core en 3.1.7. Pour résoudre ce problème, il vous suffit donc d'ajouter les lignes suivantes sur votre pom.xml : [code] [dependency] \n [groupId]fr.paris.lutece.plugins[/groupId]\n [artifactId]plugin-mylutece[/artifactId] \n [version]3.0.4[/version] \n [type]lutece-plugin[/type] \n [/dependency] [/code] LLI