Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fails with dependency problem on project aws-ion-protocol #1155

Closed
ronsmith opened this issue Mar 21, 2019 · 7 comments
Closed

build fails with dependency problem on project aws-ion-protocol #1155

ronsmith opened this issue Mar 21, 2019 · 7 comments
Labels
investigating This issue is being investigated and/or work is in progress to resolve the issue.

Comments

@ronsmith
Copy link

I cloned the master branch and ran mvn clean install and I get the following error. I added -e and -X to get more information but it wasn't useful to me.

I am using openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.16.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
Running on Ubuntu 16.04

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.1:analyze-only (default) on project aws-ion-protocol: Dependency problems found -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.1:analyze-only (default) on project aws-ion-protocol: Dependency problems found
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Dependency problems found
at org.apache.maven.plugins.dependency.analyze.AbstractAnalyzeMojo.execute(AbstractAnalyzeMojo.java:253)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 20 more

@ronsmith
Copy link
Author

I commented out the aws-ion-protocol module in core/protocols/pom.xml then I got a similar dependency issue on transcribestreaming service so I removed the transcribestreaming module from services/pom.xml.
Finally got a successful build.

@varunnvs92
Copy link
Contributor

Interesting we run mvn clean install on every PR and we are not seeing that issue.
Is that the exact command you ran?
Does the logs have any other specific error messages?
Did you try cloning the repo in another directory and running the same command?

@varunnvs92 varunnvs92 added the investigating This issue is being investigated and/or work is in progress to resolve the issue. label Mar 22, 2019
@zoewangg
Copy link
Contributor

zoewangg commented Apr 2, 2019

Closing this due to inactivity. Please feel free to reopen if you're still experiencing this issue.

@zoewangg zoewangg closed this as completed Apr 2, 2019
@laloyd
Copy link

laloyd commented May 8, 2019

btw I am aslo having the same issue and my error looks like:
[INFO] AWS Java SDK :: Core :: Protocols :: AWS Cbor Protocol 2.5.40-SNAPSHOT SUCCESS [ 3.465 s]
[INFO] AWS Java SDK :: Core :: Protocols :: AWS Ion Protocol 2.5.40-SNAPSHOT FAILURE [ 5.122 s]

...
..
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.1:analyze-only (default) on project aws-ion-protocol: Dependency problems found -> [Help 1]

@laloyd
Copy link

laloyd commented May 8, 2019

actually when I ran
mvn clean install -Dmaven.test.skip=true
it fails, but when I run
mvn clean install
it worked fine /shrug

@sworisbreathing
Copy link
Contributor

sworisbreathing commented Oct 18, 2019

I get the error as well, using maven 3.6.1 with amazon corretto jdk 1.8u222 on Windows 10, against sdk version 2.9.24-SNAPSHOT (current master branch).

For Ion Protocol it's reporting:

[INFO] --- maven-dependency-plugin:3.1.1:analyze-only (default) @ aws-ion-protocol ---
[WARNING] Unused declared dependencies found:
[WARNING]    software.amazon.awssdk:aws-core:jar:2.9.24-SNAPSHOT:compile

For transcribestreaming it's:

[INFO] --- maven-dependency-plugin:3.1.1:analyze-only (default) @ transcribestreaming ---
[WARNING] Unused declared dependencies found:
[WARNING]    software.amazon.awssdk:regions:jar:2.9.24-SNAPSHOT:compile

What's even weirder about the second one is, it's complaining that transcribestreaming is declaring a dependency on regions but not using it. However, there is no such dependency declaration in the transcribestreaming pom.

My workaround is to comment out the analyze-only goal section in the parent pom. No clue why it works for the project maintainers but not for the rest of us.

@mirraj2
Copy link

mirraj2 commented Jun 16, 2020

I'm getting this exact problem. This is the pom.xml: https://search.maven.org/artifact/software.amazon.awssdk/ec2/2.13.37/jar

And this is the command I'm running: mvn install dependency:copy-dependencies

aws-sdk-java-automation added a commit that referenced this issue Jan 15, 2021
…0d0efcbac

Pull request: release <- staging/b49037de-e814-4715-8058-4240d0efcbac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating This issue is being investigated and/or work is in progress to resolve the issue.
Projects
None yet
Development

No branches or pull requests

6 participants