question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Maven 3.6.1 does not build PP] Build Fehler: javax.annotation Dependency nicht gefunden

See original GitHub issue

Hi,

auf meinem System bekomme ich leider folgenden Fehler beim Bauen:

[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: name.abuchen.portfolio:name.abuchen.portfolio:0.39.2-SNAPSHOT @ /home/jb/git/portfolio/name.abuchen.portfolio/pom.xml
[INFO] Resolving dependencies of MavenProject: name.abuchen.portfolio:name.abuchen.portfolio:0.39.2-SNAPSHOT @ /home/jb/git/portfolio/name.abuchen.portfolio/pom.xml
[INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86_64}
[ERROR] Cannot resolve project dependencies:
[ERROR]   You requested to install 'osgi.bundle; javax.annotation 0.0.0' but it could not be found
[ERROR]
[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
[ERROR] Cannot resolve dependencies of MavenProject: name.abuchen.portfolio:name.abuchen.portfolio:0.39.2-SNAPSHOT @ /home/jb/git/portfolio/name.abuchen.portfolio/pom.xml: See log for details -> [Help 1]

Wie im Readme beschrieben, habe ich versucht das Projekt mit

export MAVEN_OPTS="-Xmx1g"
mvn clean verify -Dtycho.disableP2Mirrors

zu bauen.

Ein paar Detail zu meinem System:

OS: Arch Linux
Java: OpenJDK 8
Maven: 3.6.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
michaellasscommented, Jun 9, 2019

Mir ist nicht klar, warum das bei Dir nicht gezogen wird.

Ich habe mal Maven 3.6.0 statt 3.6.1 installiert. Und 🎉 es funktioniert wieder! Das erklärt wohl auch, warum plötzlich alle Arch-Nutzer betroffen sind, denn da wurde das Paket am 22.05. aktualisiert.

Bevor wir zu schnell Schlüsse ziehen, werde ich noch einmal testen, dass es nichts mit der Änderung an MAVEN_OPTS zu tun hat. Mit der Änderung an MAVEN_OPTS hat es scheinbar nichts zu tun. Das habe ich zum Testen noch einmal manuell genau so gesetzt wie es vorher war. Es ist also ziemlich sicher eine Regression in Maven 3.6.1.

1reaction
ghostcommented, Jun 9, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to execute goal org.apache.maven.plugins:maven ...
1. As we all know, class file not found error is when compiler is not able to find the class itself. So when...
Read more >
[#ARROW-4298] [Java] Building Flight fails with OpenJDK 11
Building flight fails with [INFO] --- maven-compiler-plugin:3.6.2:compile ... class Generated location: package javax.annotation [INFO] 1 error To fix this, ...
Read more >
Plugin faild to load when jsoup version updraded in pom.xml
Hi Experts,. When I update my jsoup dependency from 1.13.1 to 1.15.1 then my plugin is getting failed to load.
Read more >
Cannot perform mvn clean install - OpenMRS Talk
I tried the quick fix suggested for 1 from the manual - installing “Maven Integration for Eclipse” from eclipse marketplace. I don't understand...
Read more >
Solved: Re: Unable to install the new Java helper class in...
That might be because of one(or few) of the dependencies are not resolved new to bundle versions. ... <artifactId>build-helper-maven-plugin</artifactId>
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found