Forum Lutèce

phil89
 1  1146
1

soucis de dépendance suite mise a jour de pom

soucis de dépendance suite mise a jour de pom

Bonjour,

J'ai voulu me mettre a jour, et je rencontre des soucis de dépendance
Merci d'avance
Phil

fichier logs
[code]

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:jce:lutece-site:0.0.1
	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)
	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
	at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
	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:317)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
	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:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
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:jce:lutece-site:0.0.1
	at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:167)
	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
	... 22 more
Caused by: org.eclipse.aether.collection.DependencyCollectionException: Failed to collect dependencies for fr.paris.lutece:jce:lutece-site:0.0.1
	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:296)
	at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:317)
	at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:159)
	... 23 more
Caused by: org.eclipse.aether.collection.UnsolvableVersionConflictException: Could not resolve version conflict among [fr.paris.lutece:lutece-core:jar:4.1.1, fr.paris.lutece.plugins:plugin-html:jar:3.0.0 -- fr.paris.lutece:lutece-core:jar:[2.3.0,5.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-insertalbum:jar:1.1.5 -- fr.paris.lutece.plugins:plugin-document:jar:[2.0.13,4.0.0-SNAPSHOT) -- fr.paris.lutece:lutece-core:jar:[3.0.4-SNAPSHOT,5.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:4.0.0 -- fr.paris.lutece:lutece-core:jar:[2.5.0,5.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-childpages:jar:3.0.0 -- fr.paris.lutece:lutece-core:jar:[2.3.0,5.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-calendar:jar:4.0.0 -- fr.paris.lutece:lutece-core:jar:[2.4.2-SNAPSHOT,5.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-library:jar:4.0.0 -- fr.paris.lutece:lutece-core:jar:[2.3.2-SNAPSHOT,5.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-newsletter:jar:3.0.0 -- fr.paris.lutece:lutece-core:jar:[4.0.0,5.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-whatsnew:jar:3.0.0 -- fr.paris.lutece:lutece-core:jar:[4.0.0,7.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-rss:jar:3.0.0 -- fr.paris.lutece:lutece-core:jar:[3.0.0-SNAPSHOT,5.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-rss:jar:3.0.0 -- 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:3.0.0 -- 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:4.0.0 -- fr.paris.lutece:lutece-core:jar:[3.2.6,5.0.0-SNAPSHOT), fr.paris.lutece.plugins:module-mylutece-database:jar:3.0.1 -- fr.paris.lutece.plugins:plugin-mylutece:jar:[3.0.5,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:3.0.0 -- 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:3.1.1 -- fr.paris.lutece:lutece-core:jar:[4.0.0,5.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.9 -- fr.paris.lutece:lutece-core:jar:[2.4.2-SNAPSHOT,5.0.0-SNAPSHOT), fr.paris.lutece.plugins:plugin-digglike:jar:2.2.9 -- fr.paris.lutece.plugins:plugin-subscribe:jar:[0.9.9-SNAPSHOT,) -- fr.paris.lutece:lutece-core:jar:[4.1.0,), 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.7 -- fr.paris.lutece:lutece-core:jar:RELEASE]
	at org.eclipse.aether.util.graph.transformer.NearestVersionSelector.newFailure(NearestVersionSelector.java:150)
	at org.eclipse.aether.util.graph.transformer.NearestVersionSelector.backtrack(NearestVersionSelector.java:111)
	at org.eclipse.aether.util.graph.transformer.NearestVersionSelector.selectVersion(NearestVersionSelector.java:84)
	at org.eclipse.aether.util.graph.transformer.ConflictResolver.transformGraph(ConflictResolver.java:187)
	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:275)
	... 25 more
[/code]

JGO
Bonjour, le problème ici vient de la version du core en dépendance des plugins utilisés. Certains plugins utilisés référencent une plage de versions du core avec la version 4.0.0 maximum : [X.X.X,4.0.0-SNAPSHOT), d'autres avec la version du core 4.0.0 minimum : [4.0.0,5.0.0-SNAPSHOT). Il faut soit monter de version les plugins qui référencent une version 4.0.0 maximum (exemple : plugin-insertalbum, plugin-document, ...) soit exclure le core du plugin concerné : exclusions exclusion groupId fr.paris.lutece groupId artifactId lutece-core artifactId exclusion exclusions