Hi,
I am trying to have the Confluence SDK instaled by following the instructions and i seemed to have got stuck at the most error prone location i.e. running the command.
atlas-mvn eclipse:add-maven-repo -Declipse.workspace="C:\Pluginsdk"
I have seached a lot and still the command or a work around for the same does not yield a Build success.
I am using windows 7.
This is the error when i use the above written atlas-mvn line in CMD
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\vishnu.soman>cd C:\Pluginsdk C:\Pluginsdk>atlas-mvn eclipse:add-maven-repo -Declipse.workspace="C:\Pluginsdk" Executing: "C:\Atlassian\atlassian-plugin-sdk-3.9.2\apache-maven\bin\mvn.bat" eclipse:add-maven-repo -Declipse.workspace "C:\Pluginsdk" [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'eclipse'. [INFO] com.atlassian.maven.plugins: checking for updates from atlassian-public [INFO] org.apache.maven.plugins: checking for updates from atlassian-public [INFO] org.codehaus.mojo: checking for updates from atlassian-public [INFO] artifact org.apache.maven.plugins:maven-eclipse-plugin: checking for upda tes from atlassian-public [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: 12 seconds [INFO] Finished at: Wed Apr 11 16:19:20 IST 2012 [INFO] Final Memory: 3M/7M [INFO] ------------------------------------------------------------------------ C:\Pluginsdk>
When i used the workaround i.e. running the mvn batch file from apache-maven\bin\mvn.bat
I got this
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] You must specify at least one goal or lifecycle phase to perform build steps. The following list illustrates some commonly used build commands: mvn clean Deletes any build output (e.g. class files or JARs). mvn test Runs the unit tests for the project. mvn install Copies the project artifacts into your local repository. mvn deploy Copies the project artifacts into the remote repository. mvn site Creates project documentation (e.g. reports or Javadoc). Please see http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html for a complete description of available lifecycle phases. Use "mvn --help" to show general usage information about Maven's command line. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Wed Apr 11 16:25:52 IST 2012 [INFO] Final Memory: 1M/4M [INFO] ------------------------------------------------------------------------ Press any key to continue . . .
I want to create my own plugin. I am using Eclipse . But i have stumbled at the very first step.
Would really like to have your guidance.
Thanks
Vishnu
Community moderators have prevented the ability to post new answers.
I guess there is a need to be extremely intuitive here :)
the answer is running the command
mvn eclipse:add-maven-repo -Declipse.workspace="C:\Pluginsdk"
from the directory structure...C:\Atlassian\atlassian-plugin-sdk-3.9.2\apache-maven\bin
SOLVED
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.