All,
I have been working to Automate OSB build with Jenkins Pipeline and Maven. I have worked with the Application team as well as brief oracle support. I have tried over 100 builds, working from google and some support tries without success. I will list the details of the steps I am doing. The error in configjar.log is "System cannot find the path specified" twice.
Prebuild Steps:
1) groovy script (hense the \\): mvn install:install-file -DpomFile=D:\\apps\\oracle-fusion-mw-12.2.1.2.0\\oracle_common\\plugins\\maven\\com\\oracle\\maven\\oracle-maven-sync\\12.2.1\\oracle-maven-sync-12.2.1.pom -Dfile=D:\\apps\\oracle-fusion-mw-12.2.1.2.0\\oracle_common\\plugins\\maven\\com\\oracle\\maven\\oracle-maven-sync\\12.2.1\\oracle-maven-sync-12.2.1.jar -DoracleHome=D:\\apps\\oracle-fusion-mw-12.2.1.2.0
2) mvn com.oracle.maven:oracle-maven-sync:push -DoracleHome=D:\\apps\\oracle-fusion-mw-12.2.1.2.0 -DpushDuplicates=true
3) env.setProperty('oracle_Home', 'D:\\apps\\oracle-fusion-mw-12.2.1.2.0')
4) env.setProperty('JAVA_HOME', 'D:\\apps\\java\\jdk_x64-1.8.0.121')
5) env.setProperty('MAVEN_HOME', 'D:\\apps\\oracle-fusion-mw-12.2.1.2.0\\oracle_common\\modules\\org.apache.maven_3.2.5')
6) env.setProperty('PATH', "D:\\apps\\oracle-fusion-mw-12.2.1.2.0\\oracle_common\\modules\\org.apache.maven_3.2.5\\bin;$env.JAVA_HOME\\bin;C:\\Windows\\System32")
Build:
1) mvn package -X
Note: We clean out the local .m2 from time to time on the build farm servers, so I need to run the install/push every build
pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.oracle.servicebus</groupId>
<artifactId>sbar-project-common</artifactId>
<version>12.2.1-0-0</version>
</parent>
<groupId>org.my.test</groupId>
<artifactId>OSBMavenPrj</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>sbar</packaging>
<description/>
<dependencies>
<dependency>
<groupId>com.oracle.coherence</groupId>
<artifactId>coherence</artifactId>
<version>12.2.1.2.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.3.2</version>
</dependency>
</dependencies>
</project>
We also use artifactory (Nexus-cache or libs-release-local) to pull down the dependencies for the build (which I believe pulls down everything).
Diffing the log from the app team local build versus the build farm shows the following missing from my log:
[DEBUG] Using mirror nexus-mirror (https://wts-nexus.wellsfargo.com/nexus/content/groups/public/) for central (https://repo.maven.apache.org/maven2).
[DEBUG] Extension realms for project com.oracle.servicebus:sbar-project-common:pom:12.2.1-0-0: [ClassRealm[extension>com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.2.1-0-0, parent: sun.misc.Launcher$AppClassLoader@55f96302]]
[DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[project>org.my.test:OSBMavenPrj:1.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]
[DEBUG] Using mirror nexus-mirror (https://wts-nexus.wellsfargo.com/nexus/content/groups/public/) for central (https://repo.maven.apache.org/maven2).
[DEBUG] Extension realms for project com.oracle.maven:oracle-common:pom:12.2.1-0-0: (none)
[DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.core, parent: null]
The bottom part of the failed log:
[DEBUG] Configuring mojo com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.2.1-0-0:package from plugin realm ClassRealm[plugin>com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.2.1-0-0, parent: sun.misc.Launcher$AppClassLoader@55f96302]
[DEBUG] Configuring mojo 'com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.2.1-0-0:package' with basic configurator -->
[DEBUG] (f) oracleHome = D:\apps\oracle-fusion-mw-12.2.1.2.0
[DEBUG] (f) project = MavenProject: org.my.test:OSBMavenPrj:1.0-SNAPSHOT @ D:\apps\jenkins\workspace\CCSB-OSB_MAVEN_TEST\OSBMavenPrj\pom.xml
[DEBUG] (f) system = false
[DEBUG] -- end configuration --
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.874s
[INFO] Finished at: Fri May 12 16:10:47 EDT 2017
[INFO] Final Memory: 38M/695M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.2.1-0-0:package (default-package) on project OSBMavenPrj: Creation of the Service Bus Configuration Archive failed. See the log in the build directory for more information. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.2.1-0-0:package (default-package) on project OSBMavenPrj: Creation of the Service Bus Configuration Archive failed. See the log in the build directory for more information.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoFailureException: Creation of the Service Bus Configuration Archive failed. See the log in the build directory for more information.
at oracle.sb.maven.plugin.PackageMojo.execute(PackageMojo.java:97)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
[ERROR]
[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/MojoFailureException
Anyone, please help me track down where this "system cannot find the path specified" times 2 error could be coming from here? It fails almost instantaneously when kicking off configjar/oracle-servicebus-plugin.
I am in dire need of assistance in fairly short order if possible. I have pushed the PROD deploy dates enough as it is and getting tons of management pressure to move forward on this project.
Many thanks ahead of time