Error running latest plugin sdk

Hi

I am trying to use latest plugin sdk. Followed these steps:

1. Checked java version

2. Installed plugin SDK ( https://developer.atlassian.com/display/DOCS/Install+the+Atlassian+SDK+on+a+Windows+System )

3. Changed path and added C:\atlassian-plugin-sdk\apache-maven\bin; and C:\atlassian-plugin-sdk\bin to path

4. Ran the following command to make sure everything is fine

C:\Users\abe>atlas-version

ATLAS Version: 4.1.7

ATLAS Home: C:\atlassian-plugin-sdk

ATLAS Scripts: C:\atlassian-plugin-sdk\bin

ATLAS Maven Home: C:\atlassian-plugin-sdk\apache-maven

--------

Executing: "C:\atlassian-plugin-sdk\apache-maven\bin\mvn.bat" --version -gs C:\a

tlassian-plugin-sdk\apache-maven/conf/settings.xml

Apache Maven 2.1.0 (r755702; 2009-03-18 12:10:27-0700)

Java version: 1.6.0_30

Java home: C:\Program Files\Java\jdk1.6.0_30\jre

Default locale: en_US, platform encoding: Cp1252

OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"

=========================

C:\atlastutorial>atlas-run-standalone --product jira -e

Executing: "C:\atlassian-plugin-sdk\apache-maven\bin\mvn.bat" com.atlassian.mave

n.plugins:maven-amps-plugin:4.1.7:run-standalone -gs C:\atlassian-plugin-sdk\apa

che-maven/conf/settings.xml -Dproduct=jira -e

+ Error stacktraces are turned on.

[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------

[INFO] Building Maven Default Project

[INFO] task-segment: [com.atlassian.maven.plugins:maven-amps-plugin:4.1.7:run

-standalone] (aggregator-style)

[INFO] ------------------------------------------------------------------------

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO] ------------------------------------------------------------------------

[INFO] Error building POM (may not be this project's POM).

Project ID: null:maven-cli-plugin:maven-plugin:0.7

Reason: Cannot find parent: org.twdata.maven:maven-cli-plugin-parent for project

: null:maven-cli-plugin:maven-plugin:0.7 for project null:maven-cli-plugin:maven

-plugin:0.7

[INFO] ------------------------------------------------------------------------

[INFO] Trace

org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get dependency

information: Unable to read the metadata file for artifact 'org.twdata.maven:ma

ven-cli-plugin:jar': Cannot find parent: org.twdata.maven:maven-cli-plugin-paren

t for project: null:maven-cli-plugin:maven-plugin:0.7 for project null:maven-cli

-plugin:maven-plugin:0.7

org.twdata.maven:maven-cli-plugin:jar:0.7

from the specified remote repositories:

atlassian-plugin-sdk (file://C:\atlassian-plugin-sdk/repository),

central (http://repo1.maven.org/maven2),

atlassian-public (https://m2proxy.atlassian.com/repository/public)

Path to dependency:

1) com.atlassian.maven.plugins:maven-amps-plugin:maven-plugin:4.1.7

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:695)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone

Goal(DefaultLifecycleExecutor.java:553)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau

ltLifecycleExecutor.java:523)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan

dleFailures(DefaultLifecycleExecutor.java:371)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen

ts(DefaultLifecycleExecutor.java:268)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi

fecycleExecutor.java:181)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Unabl

e to get dependency information: Unable to read the metadata file for artifact '

org.twdata.maven:maven-cli-plugin:jar': Cannot find parent: org.twdata.maven:mav

en-cli-plugin-parent for project: null:maven-cli-plugin:maven-plugin:0.7 for pro

ject null:maven-cli-plugin:maven-plugin:0.7

org.twdata.maven:maven-cli-plugin:jar:0.7

from the specified remote repositories:

atlassian-plugin-sdk (file://C:\atlassian-plugin-sdk/repository),

central (http://repo1.maven.org/maven2),

atlassian-public (https://m2proxy.atlassian.com/repository/public)

Path to dependency:

1) com.atlassian.maven.plugins:maven-amps-plugin:maven-plugin:4.1.7

at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(D

efaultArtifactCollector.java:432)

at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(D

efaultArtifactCollector.java:74)

at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra

nsitively(DefaultArtifactResolver.java:316)

at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra

nsitively(DefaultArtifactResolver.java:304)

at org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsC

omplete(DefaultPluginManager.java:828)

at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul

tPluginManager.java:640)

at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi

nManager.java:461)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:678)

... 16 more

Caused by: org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException

: Unable to read the metadata file for artifact 'org.twdata.maven:maven-cli-plug

in:jar': Cannot find parent: org.twdata.maven:maven-cli-plugin-parent for projec

t: null:maven-cli-plugin:maven-plugin:0.7 for project null:maven-cli-plugin:mave

n-plugin:0.7

at org.apache.maven.project.artifact.MavenMetadataSource.retrieveRelocat

edProject(MavenMetadataSource.java:200)

at org.apache.maven.project.artifact.MavenMetadataSource.retrieveRelocat

edArtifact(MavenMetadataSource.java:94)

at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(D

efaultArtifactCollector.java:388)

... 23 more

Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent

: org.twdata.maven:maven-cli-plugin-parent for project: null:maven-cli-plugin:ma

ven-plugin:0.7 for project null:maven-cli-plugin:maven-plugin:0.7

at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D

efaultMavenProjectBuilder.java:1398)

at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def

aultMavenProjectBuilder.java:823)

at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito

ry(DefaultMavenProjectBuilder.java:255)

at org.apache.maven.project.artifact.MavenMetadataSource.retrieveRelocat

edProject(MavenMetadataSource.java:163)

... 25 more

Caused by: org.apache.maven.project.InvalidProjectModelException: Not a v4.0.0 P

OM. for project org.twdata.maven:maven-cli-plugin-parent at C:\Users\able\.m2\r

epository\org\twdata\maven\maven-cli-plugin-parent\0.7\maven-cli-plugin-parent-0

.7.pom

at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default

MavenProjectBuilder.java:1609)

at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default

MavenProjectBuilder.java:1581)

at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo

sitory(DefaultMavenProjectBuilder.java:562)

at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D

efaultMavenProjectBuilder.java:1394)

... 28 more

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 1 second

[INFO] Finished at: Sat May 11 10:50:29 MST 2013

[INFO] Final Memory: 22M/217M

[INFO] ------------------------------------------------------------------------

C:\atlastutorial>

1 answer

1 accepted

Thanks put this in settings.xml and it worked.

<settings>

<mirrors>

<mirror>

<id>laughing-panda-mirror</id>

<name>irror for laughing panda</name>

<url>https://m2proxy.atlassian.com/repository/public</url>

<mirrorOf>laughing panda</mirrorOf>

</mirror>

</mirrors>

</settings>

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Amir Kazemi
Posted 3 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

15 views 0 3
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