Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

"atlas-update" fails, missing dependency com.oracle:ojdbc6:jar:11.2.0.2.0

Gavin Fowler
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.
August 12, 2015

Can anyone help me, I'm trying to extend a confluence blueprint I created ~12 months ago. Opening up my project from the command line, I ran:

$ atlas-clean
$ atlas-update

The 2nd command, fails reporting issue with dependency: com.oracle:ojdbc6:jar:11.2.0.2.0. I suspect I need to update pom.xml amps-version and/ or (?) remove references to this dependency (somehow?). Although I'm not a complete newbe - It's far for a core competency of mine, I use this so infrequently I'm struggling to find a resolve.

Here's the output of "atlas-update" (FYI - I'm using UBuntu 14.04 and Atlassian SDK: atlassian-plugin-sdk-5.1.1):

$ atlas-update
Executing: /usr/share/atlassian-plugin-sdk-5.1.1/apache-maven-3.2.1/bin/mvn com.atlassian.maven.plugins:maven-amps-plugin:5.1.11:update -gs /usr/share/atlassian-plugin-sdk-5.1.1/apache-maven-3.2.1/conf/settings.xml
[INFO] Scanning for projects...
...
WARNING] The POM for com.oracle:ojdbc6:jar:11.2.0.2.0 is missing, no dependency information available
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.102 s
[INFO] Finished at: 2015-08-13T08:05:06+00:00
[INFO] Final Memory: 10M/151M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-amps-plugin:5.1.11:update (default-cli) on project sage-it: Execution default-cli of goal com.atlassian.maven.plugins:maven-amps-plugin:5.1.11:update failed: Plugin com.atlassian.maven.plugins:maven-amps-plugin:5.1.11 or one of its dependencies could not be resolved: Failure to find com.oracle:ojdbc6:jar:11.2.0.2.0 in https://maven.atlassian.com/repository/public was cached in the local repository, resolution will not be reattempted until the update interval of atlassian-public has elapsed or updates are forced -> [Help 1]
[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/PluginResolutionException
...

My pom.xml <properties> section looks like this, do I simply need to change <amps.version> #?:

...
  &lt;properties&gt;
   &lt;confluence.version&gt;5.8.8&lt;/confluence.version&gt;
   &lt;confluence.data.version&gt;5.8.8&lt;/confluence.data.version&gt;
   &lt;create-content.version&gt;4.0.23&lt;/create-content.version&gt;
   &lt;confluence-space-ia.version&gt;9.5.6&lt;/confluence-space-ia.version&gt;
   &lt;amps.version&gt;5.0.13&lt;/amps.version&gt;
   &lt;plugin.testrunner.version&gt;1.2.0&lt;/plugin.testrunner.version&gt;
  &lt;/properties&gt;
...

Any pointers, insight on how to troubleshoot / correct would be most welcome!

 

EDIT Attached

  • (my full pom.xml file for the blueprint I'm developing)
  • (output of "atlas-update -X" run from the command line)

Many thanks!

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

30 votes
Answer accepted
Volodymyr Krupach
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.
August 12, 2015

It happened to me today after upgrade to 5.1.1 SDK. Looks like it's known problem connected with proprietary rights:

https://ecosystem.atlassian.net/browse/AMPS-1240

Resolved it by downloading ojdbc6.jar from http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html

and installing it to local repo:

atlas-mvn install:install-file -Dfile=ojdbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.2.0 -Dpackaging=jar
Gavin Fowler
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.
August 13, 2015

Many thanks Volodymyr - following your instructions addressed the issue. great stuff! :)

Volodymyr Krupach
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.
August 13, 2015

My pleasure :)

wwwoodall.com August 24, 2015

Yep, worked for me too. Thanks! wwwoodall.com

Grzegorz Korba October 9, 2015

Brilliant! Thanks :-)

0 votes
Kul August 12, 2015

Hi,

Re run the Maven with -X and post the results here. Also Can you confirm that your pom.xml contains the below mentioned dependency if not replace your existing one with this one.

<dependency>

            <groupId>com.oracle</groupId>

            <artifactId>ojdbc6</artifactId>

            <version>11.2.0</version>

        </dependency>

You may need to clean your m2 if you already played with pom.xml with multiple version dependency. In Windows the directory would be C:\Users\user name\.m2\repository

 

Gavin Fowler
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.
August 12, 2015

Hi Kul Thanks for the feedback. I purged the m2/repository folder on my local drive (there were lots of version directories there), and re-ran: atlas-clean, followed by atlas-update. Unfortunately the same dependency issue. I've attached two file into the original question (pom.xml & atlas-update-X.txt) which should give you the detail you asked for. FYI - i do *not* have any references ojdbc6 - my assumption is this is coming from maven / atlassian (which is why I thought I'd need to change <amps.version> in pom.xml or similar). Annoying, i don't even use ojdbc for development, so ideally I'd like to override the dependency and build without it (during dev i use Hypersonic DB). Thanks again for for support / assistance / insight

TAGS
AUG Leaders

Atlassian Community Events