Getting Maven missing dependency errors when compiling Confluence 3.5.13 source
Asked by Richard Yale:

```
[INFO] Scanning for projects...[WARNING] The POM for com.atlassian.maven.plugins:maven-amps-plugin:jar:3.3-m5 is missing, no dependency information available[WARNING] The POM for com.atlassian.maven.plugins:atlassian-bundled-plugins-maven-plugin:jar:2.0 is missing, no dependency information available[WARNING] The POM for com.atlassian.maven.plugins:maven-refapp-plugin:jar:3.2.4is missing, no dependency information available[WARNING] The POM for com.atlassian.maven.plugins:maven-amps-plugin:jar:3.2.4 ismissing, 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-parent:pom:2.4.1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of centralhas elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 3, column 13 -> [Help 2][ERROR][ERROR] The project com.atlassian.spring:atlassian-spring:2.0-rc6 (C:\Atlassian\confluence-3.5.13-source\confluence-3.5.13-source\atlassian-spring\pom.xml) has 1 error[ERROR] Non-resolvable parent POM: Failure to find com.atlassian.spring:atlassian-spring-parent:pom:2.0-rc6 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 and 'parent.relativePath' points at wrong local POM @ line 3, column 13 -> [Help 2][ERROR][ERROR] The project com.atlassian.applinks:applinks-api:3.3 (C:\Atlassian\confluence-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:applinks-parent:pom:3.3 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval ofcentral has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 4, column 13 -> [Help 2][ERROR][ERROR] The project com.atlassian.applinks:applinks-spi:3.3 (C:\Atlassian\confluence-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:applinks-parent:pom:3.3 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval ofcentral has elapsed or updates are forced and 'parent.relativePath' points at wrong 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:atlassian-spring-parent:pom:2.0-rc6 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 and 'parent.relativePath' points at wrong local POM @ line 3, column 13 -> [Help 2][ERROR][ERROR] The project com.atlassian.confluence.rest:confluence-rest-plugin:3.5.13 (C:\Atlassian\confluence-3.5.13-source\confluence-3.5.13-source\confluence-project\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 cachedin the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points 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-project\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 cachedin the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points 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-parent:pom:2.4.1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of centralhas elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 3, column 13 -> [Help 2][ERROR][ERROR] The project com.atlassian.sal:sal-spring:2.4.1 (C:\Atlassian\confluence-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-parent:pom:2.4.1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of centralhas elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 3, column 13 -> [Help 2][ERROR][ERROR] The project com.atlassian.applinks:applinks-host:3.3 (C:\Atlassian\confluence-3.5.13-source\confluence-3.5.13-source\applinks-host\pom.xml) has 1 error[ERROR] Non-resolvable parent POM: Failure to find com.atlassian.applinks:applinks-parent:pom:3.3 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval ofcentral has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 4, column 13 -> [Help 2][ERROR][ERROR] The project com.atlassian.security:atlassian-cookie-tools:2.0 (C:\Atlassian\confluence-3.5.13-source\confluence-3.5.13-source\atlassian-cookie-tools\pom.xml) has 2 errors[ERROR] Unresolveable build extension: Plugin com.atlassian.maven.plugins:maven-amps-plugin:3.3-m5 or one of its dependencies could not be resolved: Failureto 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 notbe reattempted until the update interval of central has elapsed or updates areforced -> [Help 3][ERROR] Unknown packaging: atlassian-plugin @ line 11, column 16[ERROR][ERROR] The project com.atlassian.confluence:confluence-bundled-plugins-library:3.5.13 (C:\Atlassian\confluence-3.5.13-source\confluence-3.5.13-source\confluence-project\confluence-bundled-plugins-library\pom.xml) has 1 error[ERROR] Unresolveable build extension: Plugin com.atlassian.maven.plugins:atlassian-bundled-plugins-maven-plugin:2.0 or one of its dependencies could not beresolved: 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 local repository, resolution will not be reattempted until the update interval ofcentral 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:maven-refapp-plugin:3.2.4 or one of its dependencies could not be resolved: Failure to find com.atlassian.maven.plugins:maven-refapp-plugin:jar:3.2.4 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 13, column 16[ERROR][ERROR] The project com.atlassian.crowd:embedded-crowd-test-runner:1.3.3 (C:\Atlassian\confluence-3.5.13-source\confluence-3.5.13-source\atlassian-embedded-crowd\embedded-crowd-test-runner\pom.xml) has 2 errors[ERROR] Unresolveable build extension: Plugin com.atlassian.maven.plugins:maven-amps-plugin:3.2.4 or one of its dependencies could not be resolved: Failureto find com.atlassian.maven.plugins:maven-amps-plugin:jar:3.2.4 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 13, column 16[ERROR][ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.[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 read the following articles:[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException[ERROR] [Help 3] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionExceptionC:\Atlassian\confluence-3.5.13-source\confluence-3.5.13-source>
```

Any help would be appreciated.


Answers:
author: Joe Clark
body: 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>
```

comments: author: Yogesh Mude
body: Hi [@Joe Clark](/t5/user/viewprofilepage/user-id/781460)

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


author: Joe Clark
body: 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).


author: Jim Bethancourt
body: 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).

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


author: Jim Bethancourt
body: I haven't used Eclipse lately. Any luck compiling from the command line?


author: Sudhanshu Dogra
body: Hi I am unable to find settings.xml in m2 folderplease help


Tags: confluence-development