Hello Team,
We have configured a bamboo plan referencing to bitbucket project. While doing maven build we are facing Oracle dependency issues. We configured Oracle Maven repository as suggested Oracle Maven Setting.
But still getting below error :
build 14-Jul-2018 03:49:58 [INFO] Scanning for projects...
build 14-Jul-2018 03:49:59 [INFO]
build 14-Jul-2018 03:49:59 [INFO] ------------------------------------------------------------------------
build 14-Jul-2018 03:49:59 [INFO] Building Mule cs-monitor-p Application 1.0.0-SNAPSHOT
build 14-Jul-2018 03:49:59 [INFO] ------------------------------------------------------------------------
build 14-Jul-2018 03:50:00 [WARNING] The POM for com.oracle:ojdbc6:jar:12.1.0.2 is missing, no dependency information available
build 14-Jul-2018 03:50:00 [WARNING] The POM for com.mulesoft.weave:core:jar:1.2.1-SNAPSHOTS is missing, no dependency information available
build 14-Jul-2018 03:50:00 [WARNING] The POM for com.mulesoft.weave:flatfile:jar:1.2.1-SNAPSHOTS is missing, no dependency information available
build 14-Jul-2018 03:50:00 [WARNING] The POM for com.mulesoft.weave:excel:jar:1.2.1-SNAPSHOTS is missing, no dependency information available
build 14-Jul-2018 03:50:00 [INFO] ------------------------------------------------------------------------
build 14-Jul-2018 03:50:00 [INFO] BUILD FAILURE
build 14-Jul-2018 03:50:00 [INFO] ------------------------------------------------------------------------
build 14-Jul-2018 03:50:00 [INFO] Total time: 1.455 s
build 14-Jul-2018 03:50:00 [INFO] Finished at: 2018-07-14T03:50:00Z
build 14-Jul-2018 03:50:00 [INFO] Final Memory: 19M/217M
build 14-Jul-2018 03:50:00 [INFO] ------------------------------------------------------------------------
build 14-Jul-2018 03:50:00 [ERROR] Failed to execute goal on project cs-monitor-p: Could not resolve dependencies for project com.mycompany:cs-monitor-p:mule:1.0.0-SNAPSHOT: The following artifacts could not be resolved: com.oracle:ojdbc6:jar:12.1.0.2, com.mulesoft.weave:core:jar:1.2.1-SNAPSHOTS, com.mulesoft.weave:flatfile:jar:1.2.1-SNAPSHOTS, com.mulesoft.weave:excel:jar:1.2.1-SNAPSHOTS: Failure to find com.oracle:ojdbc6:jar:12.1.0.2 in http://repo1.maven.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 1]
build 14-Jul-2018 03:50:00 [ERROR]
build 14-Jul-2018 03:50:00 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
build 14-Jul-2018 03:50:00 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
build 14-Jul-2018 03:50:00 [ERROR]
build 14-Jul-2018 03:50:00 [ERROR] For more information about the errors and possible solutions, please read the following articles:
build 14-Jul-2018 03:50:00 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
build 14-Jul-2018 03:50:01 [INFO] Scanning for projects...
build 14-Jul-2018 03:50:02 [INFO]
build 14-Jul-2018 03:50:02 [INFO] ------------------------------------------------------------------------
build 14-Jul-2018 03:50:02 [INFO] Building Mule cs-monitor-p Application 1.0.0-SNAPSHOT
build 14-Jul-2018 03:50:02 [INFO] ------------------------------------------------------------------------
build 14-Jul-2018 03:50:03 [WARNING] The POM for com.oracle:ojdbc6:jar:12.1.0.2 is missing, no dependency information available
build 14-Jul-2018 03:50:03 [WARNING] The POM for com.mulesoft.weave:core:jar:1.2.1-SNAPSHOTS is missing, no dependency information available
build 14-Jul-2018 03:50:03 [WARNING] The POM for com.mulesoft.weave:flatfile:jar:1.2.1-SNAPSHOTS is missing, no dependency information available
build 14-Jul-2018 03:50:03 [WARNING] The POM for com.mulesoft.weave:excel:jar:1.2.1-SNAPSHOTS is missing, no dependency information available
build 14-Jul-2018 03:50:03 [INFO] ------------------------------------------------------------------------
build 14-Jul-2018 03:50:03 [INFO] BUILD FAILURE
build 14-Jul-2018 03:50:03 [INFO] ------------------------------------------------------------------------
build 14-Jul-2018 03:50:03 [INFO] Total time: 1.715 s
build 14-Jul-2018 03:50:03 [INFO] Finished at: 2018-07-14T03:50:03Z
build 14-Jul-2018 03:50:03 [INFO] Final Memory: 21M/217M
build 14-Jul-2018 03:50:03 [INFO] ------------------------------------------------------------------------
build 14-Jul-2018 03:50:03 [ERROR] Failed to execute goal on project cs-monitor-p: Could not resolve dependencies for project com.mycompany:cs-monitor-p:mule:1.0.0-SNAPSHOT: The following artifacts could not be resolved: com.oracle:ojdbc6:jar:12.1.0.2, com.mulesoft.weave:core:jar:1.2.1-SNAPSHOTS, com.mulesoft.weave:flatfile:jar:1.2.1-SNAPSHOTS, com.mulesoft.weave:excel:jar:1.2.1-SNAPSHOTS: Failure to find com.oracle:ojdbc6:jar:12.1.0.2 in http://repo1.maven.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 1]
build 14-Jul-2018 03:50:03 [ERROR]
build 14-Jul-2018 03:50:03 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
build 14-Jul-2018 03:50:03 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
build 14-Jul-2018 03:50:03 [ERROR]
build 14-Jul-2018 03:50:03 [ERROR] For more information about the errors and possible solutions, please read the following articles:
build 14-Jul-2018 03:50:03 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
simple 14-Jul-2018 03:50:03 Failing task since return code of [/efs/bamboo/temp/IM-CSMON-JOB1-98-ScriptBuildTask-3780693728276670896.sh] was 1 while expected 0
simple 14-Jul-2018 03:50:03 Finished task 'settings' with result: Failed
simple 14-Jul-2018 03:50:03 Running post build plugin 'NCover Results Collector'
simple 14-Jul-2018 03:50:03 Running post build plugin 'Artifact Copier'
simple 14-Jul-2018 03:50:03 Publishing an artifact: cs-monitor-p-1.0.0-SNAPSHOT
Below is Script configuration Task defined for Maven build :
cat <<EOF > muleSettings.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>maven.oracle.com</id>
<username>${bamboo.oracleMavenRepoUser}</username>
<password>${bamboo.oracleMavenRepoPassword}</password>
<configuration>
<basicAuthScope>
<host>ANY</host>
<port>ANY</port>
<realm>OAM 11g</realm>
</basicAuthScope>
<httpConfiguration>
<all>
<params>
<property>
<name>http.protocol.allow-circular-redirects</name>
<value>%b,true</value>
</property>
</params>
</all>
</httpConfiguration>
</configuration>
</server>
<server>
<id>mule-ee-releases</id>
<username>${bamboo.nexusUser}</username>
<password>${bamboo.nexusPassword}</password>
</server>
</servers>
</settings>
EOF
echo "==== muleSettings.xml ===="
cat muleSettings.xml
echo "========"
echo "==== Maven Version ===="
mvn -version
echo "========"
mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dpackaging=jar -Dversion=12.1.0.2 -Dfile=ojdbc.jar -DgeneratePom=true
mvn -Dmaven.wagon.provider.http=http.protocol.allow-circular-redirect clean install
mvn clean package -s muleSettings.xml
We are blocked at this movement and couldn't proceed with Continuous Integration.