I'm following the instructions in https://developer.atlassian.com/display/DOCS/Configuring+Eclipse+to+use+the+Atlassian+Plugin+SDK
The command to add the classpath variable is not working:
C:\plugins>atlas-mvn eclipse:add-maven-repo -Declipse.workspace=C:\Users\rlauris ton\Eclipse Executing: "C:\Atlassian\atlassian-plugin-sdk\apache-maven\bin\mvn.bat" eclips e:add-maven-repo -Declipse.workspace C:\Users\rlauriston\Eclipse [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'eclipse'. [INFO] com.atlassian.maven.plugins: checking for updates from atlassian-public [INFO] com.atlassian.maven.plugins: checking for updates from central [INFO] org.apache.maven.plugins: checking for updates from atlassian-public [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from atlassian-public [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-eclipse-plugin: checking for upda tes from atlassian-public [INFO] artifact org.apache.maven.plugins:maven-eclipse-plugin: checking for upda tes from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclips e-plugin/2.8/maven-eclipse-plugin-2.8.pom Downloading: https://m2proxy.atlassian.com/repository/public/org/apache/maven/pl ugins/maven-plugins/17/maven-plugins-17.pom 12K downloaded (maven-plugins-17.pom) Downloading: https://m2proxy.atlassian.com/repository/public/org/apache/maven/ma ven-parent/16/maven-parent-16.pom 22K downloaded (maven-parent-16.pom) Downloading: https://m2proxy.atlassian.com/repository/public/org/apache/maven/pl ugins/maven-eclipse-plugin/2.8/maven-eclipse-plugin-2.8.jar 201K downloaded (maven-eclipse-plugin-2.8.jar) [INFO] Searching repository for plugin with prefix: 'C'. [INFO] artifact org.apache.maven.plugins:maven-C-plugin: checking for updates fr om atlassian-public [INFO] artifact org.apache.maven.plugins:maven-C-plugin: checking for updates fr om central [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] The plugin 'org.apache.maven.plugins:maven-C-plugin' does not exist or no valid version could be found [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 20 seconds [INFO] Finished at: Thu Nov 10 17:05:21 PST 2011 [INFO] Final Memory: 3M/15M [INFO] ------------------------------------------------------------------------ C:\plugins>
Community moderators have prevented the ability to post new answers.
Unfortunately there's a bug in the Atlassian Plugin SDK that prevents the atlas-* batch files from correctly interpreting command-line parameters that contain an equals sign (see https://studio.atlassian.com/browse/AMPS-197).
The workaround is to call "%ATLAS_HOME%\apache-maven\bin\mvn" instead of "atlas-mvn".
Thanks, now I'm stuck on the next step:
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:53:50 PST 2011 [INFO] Final Memory: 2M/15M [INFO] ------------------------------------------------------------------------
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hallo Robert
That error usually happens if you are not in the directory where the plugin was created. Try changing to the directory that contains the "pom.xml" file for your plugin.
Cheers, Sarah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So i used the "note" by calling mvn from atlassian install, but i now get an error that the class org.codehaus.classworlds.Launcher couldn't be found.
EDIT: solved the problem.
Terry Müller had quite the same problem. See the blog entry for more information.
The solution for me was to rename the plexus-classworlds-2.4 in the M2_Home/boot/ directory to just classworlds-2.4.jar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've just found the correct link:
https://developer.atlassian.com/display/DOCS/Set+Up+the+Eclipse+IDE+for+Linux
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the link appears to be broken: https://developer.atlassian.com/display/DOCS/Configuring+Eclipse+to+use+the+Atlassian+Plugin+SDK
I'm having troubles importing the plugin generated by the SDK into Eclipse. It seems that the Build Path is not configured at all... Do I have to include the JARs by hand?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the link appears to be broken: https://developer.atlassian.com/display/DOCS/Configuring+Eclipse+to+use+the+Atlassian+Plugin+SDK
I'm having troubles importing the plugin generated by the SDK into Eclipse. It seems that the Build Path is not configured at all... Do I have to include the JARs by hand?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Robert and Joseph,
I have added a note to the documentation, to help other people who may run into the same problem:
https://developer.atlassian.com/display/DOCS/Configuring+Eclipse+to+use+the+Atlassian+Plugin+SDK
Cheers, Sarah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.