Getting Maven missing dependency errors when compiling Confluence 3.5.13 source

Richard Yale
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 6, 2012
[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

12 votes
Answer accepted
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 7, 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>

Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 13, 2018

Hi @Joe Clark

Actually i could not found settings.xml file in my local maven repository ...whenever i ran the build im getting below error...

build 14-Dec-2018 10:21:31 [ERROR] Failed to execute goal on project edellibrary: Could not resolve dependencies for project com.edel.library:edellibrary:jar:0.0.1: Could not find artifact com.microsoft.sqlserver:sqljdbc4:jar:4.0 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
build 14-Dec-2018 10:21:31 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project edellibrary: Could not resolve dependencies for project com.edel.library:edellibrary:jar:0.0.1: Could not find artifact com.microsoft.sqlserver:sqljdbc4:jar:4.0 in central (https://repo.maven.apache.org/maven2)
build 14-Dec-2018 10:21:31     at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:269)
build 14-Dec-2018 10:21:31     at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)
build 14-Dec-2018 10:21:31     at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:248)
build 14-Dec-2018 10:21:31     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:202)
build 14-Dec-2018 10:21:31     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
build 14-Dec-2018 10:21:31     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
build 14-Dec-2018 10:21:31     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
build 14-Dec-2018 10:21:31     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
build 14-Dec-2018 10:21:31     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
build 14-Dec-2018 10:21:31     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
build 14-Dec-2018 10:21:31     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
build 14-Dec-2018 10:21:31     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
build 14-Dec-2018 10:21:31     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
build 14-Dec-2018 10:21:31     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
build 14-Dec-2018 10:21:31     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
build 14-Dec-2018 10:21:31     at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
build 14-Dec-2018 10:21:31     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
build 14-Dec-2018 10:21:31     at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
build 14-Dec-2018 10:21:31     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
build 14-Dec-2018 10:21:31     at java.lang.reflect.Method.invoke (Method.java:498)
build 14-Dec-2018 10:21:31     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
build 14-Dec-2018 10:21:31     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
build 14-Dec-2018 10:21:31     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 17, 2018

Hi, this question and answer is from 2012, so I imagine a lot has changed in the Confluence source since then.

I would recommend asking a new question to try and get help.

It does look like the error indicates that your maven project cannot resolve dependencies from maven central, which probably means you have a client misconfiguration (usually via a settings.xml file).

Like # people like this
0 votes
Jim Bethancourt
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 6, 2012

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).

Richard Yale
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 7, 2012

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

Jim Bethancourt
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 7, 2012

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

Sudhanshu Dogra
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 30, 2016

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events