Android roboquice transient dependency - java

I got that error from jenkins running mvn clean install on Parent pom. But I can not reproduce it on my local env because when I run it on local everything works fine. Maybye someone had such problem. Thanks in advance for your advices.
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.2:apk (default-apk) on project RondoAndroid: Error while processing transient dependencies: Failed to collect dependencies at org.roboguice:roboguice:jar:3.0b-experimental -> android.support:compatibility-v4:jar:11: Failed to read artifact descriptor for android.support:compatibility-v4:jar:11: Could not transfer artifact android.support:compatibility-v4:pom:11 from/to third.party.closed.source.repo (file://${basedir}/../maven_repo_3rd_party): Repository path /../maven_repo_3rd_party does not exist, and cannot be created.

I wrote email to the author of RoboGuice. He said that 3.0b-experimental should be replaced by 2.0 version. This is stable version valid for use. After I apply that solution everythink works fine. I hope that might help somebody.

Related

Failed to execute goal on project.. Failed to read artifact descriptor for error in IntellJ

I imported my project and when did a maven clean build was successful, but when maven install is done this Build Failure occurs.
I have my maven in C\maven\maven 3.6 and I have given the settings and repo location of that location to this project.
My Env variables are correctly set up with reference to Java and Maven as well. Please help me on this to get it solved.
it may be because of the proxy ! Check you proxy and test if it's working.

Maven: Ignore a specific artifact without failing the build

I am trying to build Apache CXF locally. It does not work behind a maven proxy (e.g. JFrog Artifactory), because CXF's transitives dependencies contain a dependency with an invalid pom.xml file:
[ERROR] Failed to execute goal on project cxf-rt-transports-jms: Could not resolve dependencies for project org.apache.cxf:cxf-rt-transports-jms:bundle:3.4.0-SNAPSHOT: Failed to collect dependencies at org.apache.activemq:activemq-pool:jar:5.15.9 -> org.apache.activemq:activemq-jms-pool:jar:5.15.9 -> org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0.1: Failed to read artifact descriptor for org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0.1: Could not transfer artifact org.apache.geronimo.specs:specs:pom:1.1 from/to nexus-central (https://myrepo.local/maven-central/): Failed to transfer file https://myrepo.local/maven-central/org/apache/geronimo/specs/specs/1.1/specs-1.1.pom with status code 409 -> [Help 1]
Artifactory will deliver a 409 if it cannot parse the XML file. In this case, the artifact is apache.geronimo.specs:specs:pom:1.1. If you take a look at the XML file, you'll find it is invalid indeed: https://repo1.maven.org/maven2/org/apache/geronimo/specs/specs/1.1/specs-1.1.pom
After line 89 (closing </developers>), there is an extra `.
I opened an issue at apache to fix their build: https://issues.apache.org/jira/browse/CXF-8101
In the mean time, I'd like to work with CXF to create a patch an contribute.
Things I tried:
Install the dependency manually => failed because mvn still looks for updates
No proxy => not an option for me :(
Add some excludes locally on the parent/pom.xml => didn't help, I will never be able to catch them all (transitive dependencies…).
Forcing the offending artifacts' version to 1.2. Did not help either, because some projects wil still rely on a specific version.
That said, what are my options?
Thanks in advance,
Ben
You can try:
Download org/apache/geronimo/specs/specs/1.1/specs-1.1.pom into your local .m2 path and fix the error.[You need to be sure all dependencies are available in your local repository]
Try to build with maven command: -o (offline)
If -o doesn't help, try with -nsu,--no-snapshot-updates (Suppress SNAPSHOT updates)
Hope it helps you.

How to run spring project offline mode?

I am trying to run a Spring Project, with several dependencies, that I have already downloaded into my local repository, and have also done followings :
Added local repository path in setting.xml in localRepository tag.
Running the project using mvn install -nsu -llr -o , for offline mode.
And I am getting following error :
[ERROR] Failed to execute goal on project file2Json: Could not resolve
dependencies for project
com.nse.file2Json:file2Json:jar:0.0.1-SNAPSHOT: Cannot access central
(http://repo1.maven.org/maven2) in offline mode and the artifact
com.fasterxml.jackson.dataformat:jackson-dataformat-csv:jar:2.8.4 has
not been downloaded from it before. -> [Help 1]
I have the dependency installed, take a look :(
I have following questions :
Why is the project is trying to look into http://repo1.maven.org/maven2 when I am using offline mode ?
How can I run the project offline, by providing the required dependencies at required paths ?
Please help !
thanks in advance.
It says it cannot access Maven Central because you are in offline mode. And it tries to look there, because ´jackson-dataformat-csv` is not in your local repository, so Maven needs to get it from somewhere (and Maven Central is the default repository).
What you need to do is to execute mvn dependency:go-offline before you switch to the offline mode. This will download everything that you need (dependencies, transitive dependencies as well as plugins).

Maven child dependency error with parent version

We have the next project structure:
parentPom.xml
java projects
streambase projects
streambaseParentPom.xml
project1
project2 (has dependency of project1)
So we have a parentPom with inherits to streambaseParentPom and last one inherit to all streambase projects.
So, we make attemp to have in parentPom a properti called cerebro.version which define the version for parent.
We're getting issues when we have project1 as dependency of other projects, we're getting next error message:
[ERROR] Failed to execute goal on project eFX-SB7-Pricing: Could not resolve dependencies for project com.santander.fx:eFX-SB7-Pricing:jar:3.14.10.0.4-SNAPSHOT:
Failed to collect dependencies at com.santander.fx:eFX-SB7-Common:jar:3.14.10.0.4-SNAPSHOT:
Failed to read artifact descriptor for com.santander.fx:eFX-SB7-Common:jar:3.14.10.0.4-SNAPSHOT:
Could not transfer artifact com.santander.fx:eFX-SB7-Parent:pom:${cerebro.version} from/to eFX-External-Repository (http://lnx-efxbuild2.ants.ad.anplc.co.uk:8081/artifactory/ext-release-local):
Illegal character in path at index 109: http://lnx-efxbuild2.ants.ad.anplc.co.uk:8081/artifactory/ext-release-local/com/santander/fx/eFX-SB7-Parent/${cerebro.version}/eFX-SB7-Parent-${cerebro.version}.pom -> [Help 1]
Thanks in advance.
I am afraid it doesn't work like that. It is a bad idea to parameterize the <version> value since even if you managed to deploy it to your remote repo, any project using that artifact later on wouldn't have a clue what ${cerebro.version} should resolve to.
Remember, Maven works hard to keep your builds reproducible. If the build is dependent on some variable that was known at deploy time, but unknown for dependents, your build will no longer be reproducible.

Issue with PlayN getting started tutorial

I am new to Java+Maven and PlayN. Please help me regarding following error.
Getting following error for playn-showcase project build:
Failed to execute goal on project playn-showcase-java: Could not resolve dependencies for project com.googlecode.playn:playn-showcase-java:jar:1.0-SNAPSHOT: Failure to find jlayer:mp3spi:jar:1.9.5 in https://ec2-ncisfb-build01.sng.ubi.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of Nexus has elapsed or updates are forced -> 1?
Also when I compile and Run playn-showcase-html project, and browse it, on clicking any demo link, getting errors:
(UnknownFileName?:-1) 2012-02-29 14:37:44,252 FATAL? Uncaught JavaScript? exception exception: java.lang.IllegalArgumentException? in , line 0
Ref : code.google.com/p/playn/wiki/GettingStarted
Please help.
Thanks
It happened to me also after I deleted some files. You should have used git to download samples. So you can undelete showcase files via git:
"git ls-files -d | xargs git checkout --"
I had similar problem but in my case it was the fact that I had a mirror defined in my settings.xml for maven configurations.
The forplay-legacy repository was not accessible, jlayer:mp3spi is there referenced from the playn-project.
Worked fine after I removed the mirror. In your case looks like you have a cached version or something like that in your repository but is not getting the one from forplay-legacy.
<!--
TEMP: obtain some artifacts from legacy forplay maven repository
-->
<repository>
<id>forplay-legacy</id>
<url>http://forplay.googlecode.com/svn/mavenrepo</url>
</repository>

Categories