Getting Maven missing dependency errors when compiling Confluence 3.5.13 source

[INFO] Scanning for projects...
[WARNING] The POM for com.atlassian.maven.plugins:maven-amps-plugin:jar:3.3-m5 i
s missing, no dependency information available
[WARNING] The POM for com.atlassian.maven.plugins:atlassian-bundled-plugins-mave
n-plugin:jar:2.0 is missing, no dependency information available
[WARNING] The POM for com.atlassian.maven.plugins:maven-refapp-plugin:jar:3.2.4
is missing, no dependency information available
[WARNING] The POM for com.atlassian.maven.plugins:maven-amps-plugin:jar:3.2.4 is
missing, no dependency information available
[ERROR] The build could not read 14 projects -> [Help 1]
[ERROR]
[ERROR] The project com.atlassian.sal:sal-api:2.4.1 (C:\Atlassian\confluence-3
.5.13-source\confluence-3.5.13-source\sal-api\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find com.atlassian.sal:sal-par
ent:pom:2.4.1 in http://repo.maven.apache.org/maven2 was cached in the local rep
ository, resolution will not be reattempted until the update interval of central
has elapsed or updates are forced and 'parent.relativePath' points at wrong loc
al POM @ line 3, column 13 -> [Help 2]
[ERROR]
[ERROR] The project com.atlassian.spring:atlassian-spring:2.0-rc6 (C:\Atlassia
n\confluence-3.5.13-source\confluence-3.5.13-source\atlassian-spring\pom.xml) ha
s 1 error
[ERROR] Non-resolvable parent POM: Failure to find com.atlassian.spring:atla
ssian-spring-parent:pom:2.0-rc6 in http://repo.maven.apache.org/maven2 was cache
d in the local repository, resolution will not be reattempted until the update i
nterval of central has elapsed or updates are forced and 'parent.relativePath' p
oints at wrong local POM @ line 3, column 13 -> [Help 2]
[ERROR]
[ERROR] The project com.atlassian.applinks:applinks-api:3.3 (C:\Atlassian\conf
luence-3.5.13-source\confluence-3.5.13-source\applinks-api\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find com.atlassian.applinks:ap
plinks-parent:pom:3.3 in http://repo.maven.apache.org/maven2 was cached in the l
ocal repository, resolution will not be reattempted until the update interval of
central has elapsed or updates are forced and 'parent.relativePath' points at w
rong local POM @ line 4, column 13 -> [Help 2]
[ERROR]
[ERROR] The project com.atlassian.applinks:applinks-spi:3.3 (C:\Atlassian\conf
luence-3.5.13-source\confluence-3.5.13-source\applinks-spi\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find com.atlassian.applinks:ap
plinks-parent:pom:3.3 in http://repo.maven.apache.org/maven2 was cached in the l
ocal repository, resolution will not be reattempted until the update interval of
central has elapsed or updates are forced and 'parent.relativePath' points at w
rong local POM @ line 4, column 13 -> [Help 2]
[ERROR]
[ERROR] The project com.atlassian.spring:atlassian-spring-hibernate2:2.0-rc6 (
C:\Atlassian\confluence-3.5.13-source\confluence-3.5.13-source\atlassian-spring-
hibernate2\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find com.atlassian.spring:atla
ssian-spring-parent:pom:2.0-rc6 in http://repo.maven.apache.org/maven2 was cache
d in the local repository, resolution will not be reattempted until the update i
nterval of central has elapsed or updates are forced and 'parent.relativePath' p
oints at wrong local POM @ line 3, column 13 -> [Help 2]
[ERROR]
[ERROR] The project com.atlassian.confluence.rest:confluence-rest-plugin:3.5.1
3 (C:\Atlassian\confluence-3.5.13-source\confluence-3.5.13-source\confluence-pro
ject\confluence-rest\confluence-rest-plugin\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find com.atlassian.confluence:
confluence-project:pom:3.5.13 in http://repo.maven.apache.org/maven2 was cached
in the local repository, resolution will not be reattempted until the update int
erval of central has elapsed or updates are forced and 'parent.relativePath' poi
nts at wrong local POM @ line 3, column 13 -> [Help 2]
[ERROR]
[ERROR] The project com.atlassian.confluence.plugins:fixedwidth-theme:3.5.13 (
C:\Atlassian\confluence-3.5.13-source\confluence-3.5.13-source\confluence-projec
t\confluence-themes\confluence-fixedwidth-theme\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find com.atlassian.confluence:
confluence-project:pom:3.5.13 in http://repo.maven.apache.org/maven2 was cached
in the local repository, resolution will not be reattempted until the update int
erval of central has elapsed or updates are forced and 'parent.relativePath' poi
nts at wrong local POM @ line 3, column 13 -> [Help 2]
[ERROR]
[ERROR] The project com.atlassian.sal:sal-spi:2.4.1 (C:\Atlassian\confluence-3
.5.13-source\confluence-3.5.13-source\sal-spi\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find com.atlassian.sal:sal-par
ent:pom:2.4.1 in http://repo.maven.apache.org/maven2 was cached in the local rep
ository, resolution will not be reattempted until the update interval of central
has elapsed or updates are forced and 'parent.relativePath' points at wrong loc
al POM @ line 3, column 13 -> [Help 2]
[ERROR]
[ERROR] The project com.atlassian.sal:sal-spring:2.4.1 (C:\Atlassian\confluenc
e-3.5.13-source\confluence-3.5.13-source\sal-spring\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find com.atlassian.sal:sal-par
ent:pom:2.4.1 in http://repo.maven.apache.org/maven2 was cached in the local rep
ository, resolution will not be reattempted until the update interval of central
has elapsed or updates are forced and 'parent.relativePath' points at wrong loc
al POM @ line 3, column 13 -> [Help 2]
[ERROR]
[ERROR] The project com.atlassian.applinks:applinks-host:3.3 (C:\Atlassian\con
fluence-3.5.13-source\confluence-3.5.13-source\applinks-host\pom.xml) has 1 erro
r
[ERROR] Non-resolvable parent POM: Failure to find com.atlassian.applinks:ap
plinks-parent:pom:3.3 in http://repo.maven.apache.org/maven2 was cached in the l
ocal repository, resolution will not be reattempted until the update interval of
central has elapsed or updates are forced and 'parent.relativePath' points at w
rong local POM @ line 4, column 13 -> [Help 2]
[ERROR]
[ERROR] The project com.atlassian.security:atlassian-cookie-tools:2.0 (C:\Atla
ssian\confluence-3.5.13-source\confluence-3.5.13-source\atlassian-cookie-tools\p
om.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin com.atlassian.maven.plugins:ma
ven-amps-plugin:3.3-m5 or one of its dependencies could not be resolved: Failure
to find com.atlassian.maven.plugins:maven-amps-plugin:jar:3.3-m5 in http://repo
.maven.apache.org/maven2 was cached in the local repository, resolution will not
be reattempted until the update interval of central has elapsed or updates are
forced -> [Help 3]
[ERROR] Unknown packaging: atlassian-plugin @ line 11, column 16
[ERROR]
[ERROR] The project com.atlassian.confluence:confluence-bundled-plugins-librar
y:3.5.13 (C:\Atlassian\confluence-3.5.13-source\confluence-3.5.13-source\conflue
nce-project\confluence-bundled-plugins-library\pom.xml) has 1 error
[ERROR] Unresolveable build extension: Plugin com.atlassian.maven.plugins:at
lassian-bundled-plugins-maven-plugin:2.0 or one of its dependencies could not be
resolved: Failure to find com.atlassian.maven.plugins:atlassian-bundled-plugins
-maven-plugin:jar:2.0 in http://repo.maven.apache.org/maven2 was cached in the l
ocal repository, resolution will not be reattempted until the update interval of
central has elapsed or updates are forced -> [Help 3]
[ERROR]
[ERROR] The project com.atlassian.crowd:embedded-crowd-refapp-plugin:1.3.3 (C:
\Atlassian\confluence-3.5.13-source\confluence-3.5.13-source\atlassian-embedded-
crowd\embedded-crowd-refapp-plugin\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin com.atlassian.maven.plugins:ma
ven-refapp-plugin:3.2.4 or one of its dependencies could not be resolved: Failur
e to find com.atlassian.maven.plugins:maven-refapp-plugin:jar:3.2.4 in http://re
po.maven.apache.org/maven2 was cached in the local repository, resolution will n
ot be reattempted until the update interval of central has elapsed or updates ar
e forced -> [Help 3]
[ERROR] Unknown packaging: atlassian-plugin @ line 13, column 16
[ERROR]
[ERROR] The project com.atlassian.crowd:embedded-crowd-test-runner:1.3.3 (C:\A
tlassian\confluence-3.5.13-source\confluence-3.5.13-source\atlassian-embedded-cr
owd\embedded-crowd-test-runner\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin com.atlassian.maven.plugins:ma
ven-amps-plugin:3.2.4 or one of its dependencies could not be resolved: Failure
to find com.atlassian.maven.plugins:maven-amps-plugin:jar:3.2.4 in http://repo.m
aven.apache.org/maven2 was cached in the local repository, resolution will not b
e reattempted until the update interval of central has elapsed or updates are fo
rced -> [Help 3]
[ERROR] Unknown packaging: atlassian-plugin @ line 13, column 16
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableMo
delException
[ERROR] [Help 3] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException
C:\Atlassian\confluence-3.5.13-source\confluence-3.5.13-source>

Any help would be appreciated.

2 answers

1 accepted

8 votes
Accepted answer
Joe Clark Atlassian Team Mar 07, 2012

Do you have the Atlassian Maven repository in your local ~/.m2/settings.xml ? You need to configure it both as an artifact repository and as a maven plugin repository. Should like something like this:

<repositories>
         <repository>
           <id>atlassian-public</id>
           <url>https://m2proxy.atlassian.com/repository/public</url>
           <snapshots>
             <enabled>true</enabled>
             <updatePolicy>daily</updatePolicy>
             <checksumPolicy>warn</checksumPolicy>
           </snapshots>
           <releases>
             <enabled>true</enabled>
             <checksumPolicy>warn</checksumPolicy>
           </releases>
         </repository>
</repositories>

       <pluginRepositories>
         <pluginRepository>
           <id>atlassian-public</id>
           <url>https://m2proxy.atlassian.com/repository/public</url>
           <releases>
             <enabled>true</enabled>
             <checksumPolicy>warn</checksumPolicy>
           </releases>
           <snapshots>
             <checksumPolicy>warn</checksumPolicy>
           </snapshots>
         </pluginRepository>
       </pluginRepositories>

I've found that I need to have the Confluence source in its own IntelliJ project or I run into the same situation. Once it's loaded, you may need to reimport it (if you're using IntelliJ).

Hmm I'm using Eclipse, but the building shouldn't have anything to do with the project, that's all Maven isn't it?

I haven't used Eclipse lately. Any luck compiling from the command line?

Hi I am unable to find settings.xml in m2 folderplease help 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,578 views 26 14
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