Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Configuring Eclipse to use the Atlassian Plugin SDK: atlas-mvn eclipse:eclipse

Robert Lauriston
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.
November 10, 2011

Following the instructions here: https://developer.atlassian.com/display/DOCS/Configuring+Eclipse+to+use+the+Atlassian+Plugin+SDK

I did the add-maven-repo bit and the classpath variable shows up in my Eclipse preferences. When I do the next bit, I get the following error:

C:\plugins>atlas-mvn eclipse:eclipse
Executing: "C:\Atlassian\atlassian-plugin-sdk\apache-maven\bin\mvn.bat"   eclips
e:eclipse
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'eclipse'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot execute mojo: eclipse. It requires a project with an existing pom.
xml, but the build is not using one.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Nov 11 10:56:20 PST 2011
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Stefan Kohler
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.
November 10, 2011

The plugin guide let's first configure your IDE before setting up a plugin. Best thing you could do is skip step 4. and continue with creating a plugin skeleton (https://developer.atlassian.com/display/DOCS/Create+a+Plugin+Skeleton). After you created the plugin then go back to configuring your IDE.

atlas-mvn eclipse:eclipse should be run in the plugin directory, where the pom.xml should be ;-)

Robert Lauriston
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.
November 10, 2011

Ah. I took "Change to your plugin directory" to mean the user directory where I'm planning to create my plugin. Does it mean ~\eclipse\plugins? Or one of the several plugins directories in the atlassian-plugin-sdk tree?

Stefan Kohler
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.
November 10, 2011

It is the directory where you are planning to create your plugin. But to succesfully run eclipse:eclipse you have to create your plugin first. eclipse:eclipse uses the settings in your plugin to create the right settings.

Robert Lauriston
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.
November 10, 2011

When I run atlas-create-confluence-plugin I get:

... Failed to resolve artifact.

Missing:
----------
1) com.sun:tools:jar:1.5.0

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
  	1) com.atlassian.maven.plugins:maven-confluence-plugin:maven-plugin:3.7
  	2) org.jfrog.maven.annomojo:maven-plugin-tools-anno:jar:1.3.3
  	3) com.sun:tools:jar:1.5.0

----------
1 required artifact is missing.

for artifact: 
  com.atlassian.maven.plugins:maven-confluence-plugin:maven-plugin:3.7

from the specified remote repositories:
  atlassian-plugin-sdk (file://C:\Atlassian\atlassian-plugin-sdk/repository),
  central (http://repo1.maven.org/maven2),
  atlassian-public (https://m2proxy.atlassian.com/repository/public) ...

TAGS
AUG Leaders

Atlassian Community Events