Eclipse Maven dependency error

AbrahamA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 10, 2013

Hi

I tried to import existing plugin project.

I did "mvn eclipse:clean eclipse:eclipse" build was successfull. However when I import the project into eclipse I get errors in pom file, attached is the image of errors.

Can you please let me know how to resolve.

Thanks

Abe

4 answers

0 votes
David Grierson June 5, 2014

This appears to be related to the JVM with which Eclipse is being started and a bug in the Maven eclipse integration.

See this stackoverflow answer: http://stackoverflow.com/a/23129154/265582

Try adding a -vm parameter (before the -vmargs parameter) in your eclipse.ini file pointing the VM explicitly to the javaw.exe binary - for example I have:

-vm
C:/Program Files/Java/jdk1.7.0_51/jre/bin/javaw.exe

In mine which now appears to be correctly compiling the code (although now there are different errors but this one is resolved at least).

0 votes
sébastien lachèvre April 23, 2014

Hi,

I have the same error as you, and really don't know why :

Project build error: Unresolveable build extension: Plugin com.atlassian.maven.plugins:maven-jira-plugin:4.2.20 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:1.6 at specified path C:\Program Files\Java\jre6/../lib/tools.jar

0 votes
AbrahamA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 11, 2013

It was pointing to Maven which is not in SDK, Had to change that. It resolved all errors except at first line, it still shows this:

Multiple annotations found at this line:
- Project build error: Unresolveable build extension: Plugin com.atlassian.maven.plugins:maven-jira-plugin:4.0 or one of its
dependencies could not be resolved: Could not find artifact com.sun:tools:jar:1.5 at specified path C:\Program Files\Java\jre6/../lib/tools.jar
- Project build error: Unknown packaging: atlassian-plugin

I am able to compile..

0 votes
AbrahamA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 10, 2013

I did not see how to attach a file.. just copy pasting

DescriptionResourcePathLocationType

Missing artifact com.atlassian.activeobjects:activeobjects-jira-spi:jar:0.19.7pom.xml/Subline 79Maven Dependency Problem

DescriptionResourcePathLocationType

Missing artifact com.atlassian.activeobjects:activeobjects-plugin:jar:0.19.7pom.xml/Subline 61Maven Dependency Problem

DescriptionResourcePathLocationType

Missing artifact com.atlassian.event:atlassian-event:jar:2.2.0-m1pom.xml/Subline 97Maven Dependency Problem

DescriptionResourcePathLocationType
Missing artifact com.atlassian.jira:jira-api:jar:5.1.4pom.xml/Subline 21Maven Dependency Problem
DescriptionResourcePathLocationType
Missing artifact com.atlassian.jira:jira-core:jar:5.1.4pom.xml/Subline 27Maven Dependency Problem
In pom.xml I see this error when I hover mouse on first line:
Project build error: Unresolveable build extension: Plugin com.atlassian.maven.plugins:maven-jira-plugin:4.0 or one of its
dependencies could not be resolved: Failure to find com.atlassian.maven.plugins:maven-jira-plugin:jar:4.0 in http://
repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval
of central has elapsed or updates are forced

Suggest an answer

Log in or Sign up to answer