Eclipse Maven dependency error

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

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

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..

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

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).

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

80 views 0 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you