maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gopalakrishnan, Gopal (CORP)" <Gopal.Gopalakrish...@ADP.com>
Subject maven build broken with jdk1.8
Date Mon, 17 Oct 2016 15:16:50 GMT
Hi:

I am not an expert at maven. Here's the scenario.

My entire project compiles without any errors under jdk1.7 ....

I use artifactory to store common libraries. Under jdk 1.7, they got resolved without any
problems. All I did was to change the jdk from 1.7 to 1.8. I am using intellij 2016. I change
the jdk version using
Run --> Edit Configuration -- > select the maven configuration --> Runner tab -->
1.8

However, if change the jdk to jdk 1.8

I get errors on dependency resolution ...

[ERROR] Failed to execute goal on project modulecore: Could not resolve dependencies for project
com.adp.sass:modulecore:jar:1.0.0-SNAPSHOT: Failed to collect dependencies at com.adp.sass:sasscommon:jar:1.0.0-SNAPSHOT:
Failed to read artifact descriptor for com.adp.sass:sasscommon:jar:1.0.0-SNAPSHOT: Failure
to find com.adp.sass:sassbuild:pom:1.0.0 in http://avsf-depsvr01:8082/artifactory/Proper-Resolution
was cached in the local repository, resolution will not be reattempted until the update interval
of Proper-Resolution has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project
modulecore: Could not resolve dependencies for project com.adp.sass:modulecore:jar:1.0.0-SNAPSHOT:
Failed to collect dependencies at com.adp.sass:sasscommon:jar:1.0.0-SNAPSHOT
                at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221)
                at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
                at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:245)
                at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
                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:116)
                at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
                at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
                at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
                at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
                at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
                at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
                at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
                at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
                at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:498)
                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)
                at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies
for project com.adp.sass:modulecore:jar:1.0.0-SNAPSHOT: Failed to collect dependencies at
com.adp.sass:sasscommon:jar:1.0.0-SNAPSHOT
                at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:180)
                at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
                ... 24 more
Caused by: org.eclipse.aether.collection.DependencyCollectionException: Failed to collect
dependencies at com.adp.sass:sasscommon:jar:1.0.0-SNAPSHOT
                at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:291)
                at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:316)
                at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:172)
                ... 25 more
Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact
descriptor for com.adp.sass:sasscommon:jar:1.0.0-SNAPSHOT
                at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:329)
                at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:198)
                at org.eclipse.aether.internal.impl.DefaultDependencyCollector.resolveCachedArtifactDescriptor(DefaultDependencyCollector.java:535)
                at org.eclipse.aether.internal.impl.DefaultDependencyCollector.getArtifactDescriptorResult(DefaultDependencyCollector.java:519)
                at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:409)
                at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:363)
                at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:351)
                at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:254)
                ... 27 more
Caused by: org.apache.maven.model.resolution.UnresolvableModelException: Failure to find com.adp.sass:sassbuild:pom:1.0.0
in http://avsf-depsvr01:8082/artifactory/Proper-Resolution was cached in the local repository,
resolution will not be reattempted until the update interval of Proper-Resolution has elapsed
or updates are forced
                at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:177)
                at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:226)
                at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:1000)
                at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:800)
                at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:329)
                at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:320)
                ... 34 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to find com.adp.sass:sassbuild:pom:1.0.0
in http://avsf-depsvr01:8082/artifactory/Proper-Resolution was cached in the local repository,
resolution will not be reattempted until the update interval of Proper-Resolution has elapsed
or updates are forced
                at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
                at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
                at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
                at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:173)
                ... 39 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to find com.adp.sass:sassbuild:pom:1.0.0
in http://avsf-depsvr01:8082/artifactory/Proper-Resolution was cached in the local repository,
resolution will not be reattempted until the update interval of Proper-Resolution has elapsed
or updates are forced
                at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:231)
                at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:206)
                at org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:585)
                at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:503)
                at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
                ... 42 more
[ERROR]
[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/DependencyResolutionException
Disconnected from the target VM, address: '127.0.0.1:55785', transport: 'socket'

Process finished with exit code 1

Here's my maven configuration.

C:\Users\gopalag>mvn -version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 06:51:
28-0700)
Maven home: D:\Software\Maven\apache-maven-3.0.5\bin\..
Java version: 1.8.0_102, vendor: Oracle Corporation
Java home: D:\Software\Java\jdk1.8.0_102\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"

We are wanting to move to jdk 1.8 ...
I have been searching the archives to find an answer, but the problem baffles me ...

Can anyone help me, please?


Thanks,
Gopal

----------------------------------------------------------------------
This message and any attachments are intended only for the use of the addressee and may contain
information that is privileged and confidential. If the reader of the message is not the intended
recipient or an authorized representative of the intended recipient, you are hereby notified
that any dissemination of this communication is strictly prohibited. If you have received
this communication in error, notify the sender immediately by return email and delete the
message and any attachments from your system.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message