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> #?:
... <properties> <confluence.version>5.8.8</confluence.version> <confluence.data.version>5.8.8</confluence.data.version> <create-content.version>4.0.23</create-content.version> <confluence-space-ia.version>9.5.6</confluence-space-ia.version> <amps.version>5.0.13</amps.version> <plugin.testrunner.version>1.2.0</plugin.testrunner.version> </properties> ...
Any pointers, insight on how to troubleshoot / correct would be most welcome!
EDIT Attached
Many thanks!
Community moderators have prevented the ability to post new answers.
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
Many thanks Volodymyr - following your instructions addressed the issue. great stuff! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My pleasure :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yep, worked for me too. Thanks! wwwoodall.com
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.