Hi,
This morning, I've managed to migrate our test environnement (and its plugins) to latest v9 (with tycho v2.7.3) - previous sources were from March 2022.
Now, I'm facing an issue for a second environnement, which has some little customizations in trunk and plugins.
Trunk is ok but I can't compile plugins (locally or on our Jenkins server)
I'm compiling locally using this command:
mvn verify -Didempiere.core.path=../deviDempiereTgi9 -Didempiere.core.repository.url=file:c:/src/deviDempiereTgi9/org.idempiere.p2/target/repository
Error is :
[INFO] Resolving MavenDependencyRoots = [GroupId = org.eclipse.jetty, ArtifactId = jetty-servlets, Version = 10.0.7, ArtifactType = jar, IncludeDependencyScope = ], IncludeDependencyScope = [compile], MissingManifestStrategy = GENERATE, IncludeSource = true...
Downloading from Central:
http://central.maven.org/maven2/org/eclipse/jetty/tests/jetty-http-tools/10.0.7/jetty-http-tools-10.0.7.pomDownloading from jenkins:
http://repo.jenkins-ci.org/releases/org/eclipse/jetty/tests/jetty-http-tools/10.0.7/jetty-http-tools-10.0.7.pom[INFO] Failure detected.
[ERROR] Failed to resolve target definition file:/C:/Src/deviDempiereTgi9/org.idempiere.p2.targetplatform/org.idempiere.p2.targetplatform.target: MavenDependency GroupId = org.eclipse.jetty, ArtifactId = jetty-servlets, Version = 10.0.7, ArtifactType = jar, IncludeDependencyScope = of location MavenDependencyRoots = [GroupId = org.eclipse.jetty, ArtifactId = jetty-servlets, Version = 10.0.7, ArtifactType = jar, IncludeDependencyScope = ], IncludeDependencyScope = [compile], MissingManifestStrategy = GENERATE, IncludeSource = true could not be resolved: resolving org.eclipse.jetty:jetty-servlets:jar:10.0.7 failed! [org.apache.maven.artifact.resolver.ArtifactResolutionException: Unable to get dependency information for org.eclipse.jetty.tests:jetty-http-tools:jar:10.0.7: Failed to retrieve POM for org.eclipse.jetty.tests:jetty-http-tools:jar:10.0.7: Could not transfer artifact org.eclipse.jetty.tests:jetty-http-tools:pom:10.0.7 from/to Central (
http://central.maven.org/maven2): Transfer failed for
http://central.maven.org/maven2/org/eclipse/jetty/tests/jetty-http-tools/10.0.7/jetty-http-tools-10.0.7.pom[ERROR] org.eclipse.jetty.tests:jetty-http-tools:jar:10.0.7
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] idempiere-core (file:c:/src/deviDempiereTgi9/org.idempiere.p2/target/repository, releases=false, snapshots=false),
[ERROR] Central (
http://central.maven.org/maven2, releases=true, snapshots=true),
[ERROR] jenkins (
http://repo.jenkins-ci.org/releases, releases=true, snapshots=true),
[ERROR] central (
https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
[ERROR] Path to dependency:
[ERROR] 1) org.eclipse.jetty:jetty-servlets:jar:10.0.7
[ERROR]
[ERROR] ]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException
I got a similar warning above :
[INFO] Resolving MavenDependencyRoots = [GroupId = org.apache.felix, ArtifactId = org.osgi.service.obr, Version = 1.0.2, ArtifactType = jar, IncludeDependencyScope = ], IncludeDependencyScope = [compile], MissingManifestStrategy = GENERATE, IncludeSource = true...
Downloading from Central:
http://central.maven.org/maven2/org/apache/felix/org.osgi.service.obr/1.0.2/org.osgi.service.obr-1.0.2-sources.jarDownloading from jenkins:
http://repo.jenkins-ci.org/releases/org/apache/felix/org.osgi.service.obr/1.0.2/org.osgi.service.obr-1.0.2-sources.jar[WARNING] MavenResolver: source-artifact org.apache.felix:org.osgi.service.obr:1.0.2:sources can't be resolved: org.eclipse.tycho.core.shared.DependencyResolutionException: resolving org.apache.felix:org.osgi.service.obr:jar:sources:1.0.2 failed! [org.apache.maven.artifact.resolver.ArtifactResolutionException: Could not transfer artifact org.apache.felix:org.osgi.service.obr:jar:sources:1.0.2 from/to Central (
http://central.maven.org/maven2): Transfer failed for
http://central.maven.org/maven2/org/apache/felix/org.osgi.service.obr/1.0.2/org.osgi.service.obr-1.0.2-sources.jar org.apache.felix:org.osgi.service.obr:jar:1.0.2
from the specified remote repositories:
idempiere-core (file:c:/src/deviDempiereTgi9/org.idempiere.p2/target/repository, releases=false, snapshots=false),
Central (
http://central.maven.org/maven2, releases=true, snapshots=true),
jenkins (
http://repo.jenkins-ci.org/releases, releases=true, snapshots=true),
central (
https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
]
What is strange, is that those error/warning are not present in plugins I migrated this morning
When comparing logs, I can see for successfull (test environnement):
[INFO] Resolving MavenDependencyRoots = [GroupId = org.eclipse.jetty, ArtifactId = jetty-servlets, Version = 10.0.7, ArtifactType = jar, IncludeDependencyScope = ], IncludeDependencyScope = [compile], MissingManifestStrategy = GENERATE, IncludeSource = true...
[WARNING] Missing POM for org.eclipse.jetty.tests:jetty-http-tools:jar:10.0.7
[INFO] Resolving MavenDependencyRoots = [GroupId = org.eclipse.jetty, ArtifactId = apache-jsp, Version = 10.0.7, ArtifactType = jar, IncludeDependencyScope = ], IncludeDependencyScope = [compile], MissingManifestStrategy = GENERATE, IncludeSource = true...
whereas for failure :
[INFO] Resolving MavenDependencyRoots = [GroupId = org.eclipse.jetty, ArtifactId = jetty-servlets, Version = 10.0.7, ArtifactType = jar, IncludeDependencyScope = ], IncludeDependencyScope = [compile], MissingManifestStrategy = GENERATE, IncludeSource = true...
[INFO] Downloading from Central:
http://central.maven.org/maven2/org/eclipse/jetty/tests/jetty-http-tools/10.0.7/jetty-http-tools-10.0.7.pom[INFO] Downloading from jenkins:
http://repo.jenkins-ci.org/releases/org/eclipse/jetty/tests/jetty-http-tools/10.0.7/jetty-http-tools-10.0.7.pom[INFO] Failure detected.
There must be a difference between the 2 plugins but I can't find it.
Any hint where to look?
Thanks
Nicolas