atlas-run-standalone can't find parent

atlas-run-standalone --product jira and atlas-create-jira-plugin both fail with the same error, parent can't be found. I have no clue how to move from there and hope any of you can give me some hints.

C:\atlastutorial>atlas-run-standalone --product jira
Executing: "C:\Development\atlassian-plugin-sdk\apache-maven\bin\mvn.bat" com.at
lassian.maven.plugins:maven-amps-plugin:3.11:run-standalone  -Dproduct=jira
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: com.atlassian.amps:atlassian-amps-parent:pom:3.11

Reason: Cannot find parent: com.atlassian.pom:atlassian-public-pom for project:
com.atlassian.amps:atlassian-amps-parent:pom:3.11 for project com.atlassian.amps
:atlassian-amps-parent:pom:3.11

C:\atlastutorial>atlas-version

ATLAS Version:    3.11
ATLAS Home:       C:\Development\atlassian-plugin-sdk
ATLAS Scripts:    C:\Development\atlassian-plugin-sdk\bin
ATLAS Maven Home: C:\Development\atlassian-plugin-sdk\apache-maven
--------
Executing: "C:\Development\atlassian-plugin-sdk\apache-maven\bin\mvn.bat" --vers
ion
Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
Java version: 1.6.0_33
Java home: C:\Program Files\Java\jdk1.6.0_33\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"

If I run the same comment but with the Maven -e switch, I get more information.

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project
for plugin 'com.atlassian.maven.plugins:maven-amps-plugin': Cannot find parent:
com.atlassian.pom:atlassian-public-pom for project: com.atlassian.amps:atlassian
-amps-parent:pom:3.11 for project com.atlassian.amps:atlassian-amps-parent:pom:3
.11
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1534)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1786)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:446)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:176)
        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.plugin.InvalidPluginException: Unable to build proje
ct for plugin 'com.atlassian.maven.plugins:maven-amps-plugin': Cannot find paren
t: com.atlassian.pom:atlassian-public-pom for project: com.atlassian.amps:atlass
ian-amps-parent:pom:3.11 for project com.atlassian.amps:atlassian-amps-parent:po
m:3.11
        at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersio
n(DefaultPluginManager.java:286)
        at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(De
faultPluginManager.java:198)
        at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:177)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1517)
        ... 14 more
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent
: com.atlassian.pom:atlassian-public-pom for project: com.atlassian.amps:atlassi
an-amps-parent:pom:3.11 for project com.atlassian.amps:atlassian-amps-parent:pom
:3.11
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1398)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1415)
        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.plugin.DefaultPluginManager.checkRequiredMavenVersio
n(DefaultPluginManager.java:270)
        ... 17 more
Caused by: org.apache.maven.project.InvalidProjectModelException: Not a v4.0.0 P
OM. for project com.atlassian.pom:atlassian-public-pom at C:\Users\sarap\AppData
\Local\Maven\Repository\com\atlassian\pom\atlassian-public-pom\27\atlassian-publ
ic-pom-27.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)
        ... 21 more

Best Regards,

Sara

1 answer

1 accepted

Although the shipped maven was used, my already existing settings.xml file was read, causing the troubles.

By fixing my settings.xml my problem was solved.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

134 views 0 4
Read article

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