9 Replies Latest reply on Nov 14, 2017 8:33 PM by Tarak

    Unable to build SOA maven project in SOA 12C (Version 12.2.1.1.0)

    vikas.singh

      Hello,

       

      I have created a SOA maven project through JDeveloper 12C (version 12.2.1.1.0) and later created pom file through option File->New->From Gallery->General->Maven POM for Project. But while taking a build either through command line or Jenkins, i am getting below errors. So could you please provide your suggestions. Your help will be much appreciated.

       

      I have highlighted 2 errors with red color.

       

      mvn pre-integration-test

       

      [INFO] Scanning for projects...

      [WARNING] The POM for com.oracle.weblogic:org.glassfish.jersey.core.jersey-server:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:soa-infra-mgmt:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:fabric-runtime:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:share:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:tracking-core:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:tracking-fabric:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:commons-cli-1.1:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.coherence:coherence:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.weblogic:com.bea.core.xml.xmlbeans:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:oracle.bpm.project.catalog:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:oracle.bpm.project.compile:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:oracle.bpm.project.io:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:oracle.bpm.project:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:oracle.bpm.common.model:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:oracle.bpm.project.model:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:oracle.bpm.bpm-services.interface:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:oracle.bpm.web-resources:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:orabpel:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:orabpel-validator:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:orabpel-common:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:orabpel-thirdparty:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:soa-infra-tools:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:bpm-infra:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:testfwk-xbeans:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:bpm-services:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:mediator_client:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:rl:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.soa:rulesdk2:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:com.oracle.webservices.orawsdl-api:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.jrf.infra.common:jrf-api:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:com.oracle.classloader.pcl:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.weblogic:javax.management.j2ee:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:adfbcsvc-share:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:adfm:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:adf-share-base:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:adf-share-ca:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:adflogginghandler:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:adf-share-support:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:jsp-el-api:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:dms:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:jmxframework:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:jmxspi:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:jps-internal:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:jps-unsupported-api:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:oracle.logging-utils:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:mdsrt:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:oramds:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:ojdl:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.toplink:eclipselink:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.wsm.common:wsm-policy-core:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.wsm.common:wsm-secpol:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:xml:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:xmlparserv2:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:xmlef:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:org.apache.commons.digester_1.8:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.fmwshare:org.springframework_3.1.0:jar:12.2.1-0-0 is missing, no dependency information available

      [WARNING] The POM for com.oracle.pki:oraclepki:jar:12.2.1-0-0 is missing, no dependency information available

      [ERROR] The build could not read 1 project -> [Help 1]

      [ERROR]

      [ERROR]   The project com.ul.soa:MavenProj:1.0-SNAPSHOT (C:\JDeveloper12C\mywork\SOA\MavenApp\MavenProj\pom.xml) has 2 errors

      [ERROR]     Unresolveable build extension: Plugin com.oracle.soa.plugin:oracle-soa-plugin:12.2.1-0-0 or one of its dependencies could not be resolved: The following artifacts could not be resolved: com.oracle.weblogic:org.glassfish.jersey.core.jersey-server:jar:12.2.1-0-0, com.oracle.soa:soa-infra-mgmt:jar:12.2.1-0-0, com.oracle.soa:fabric-runtime:jar:12.2.1-0-0, com.oracle.fmwshare:share:jar:12.2.1-0-0, com.oracle.soa:tracking-core:jar:12.2.1-0-0, com.oracle.soa:tracking-fabric:jar:12.2.1-0-0, com.oracle.soa:commons-cli-1.1:jar:12.2.1-0-0, com.oracle.coherence:coherence:jar:12.2.1-0-0, com.oracle.weblogic:com.bea.core.xml.xmlbeans:jar:12.2.1-0-0, com.oracle.soa:oracle.bpm.project.catalog:jar:12.2.1-0-0, com.oracle.soa:oracle.bpm.project.compile:jar:12.2.1-0-0, com.oracle.soa:oracle.bpm.project.io:jar:12.2.1-0-0, com.oracle.soa:oracle.bpm.project:jar:12.2.1-0-0, com.oracle.soa:oracle.bpm.common.model:jar:12.2.1-0-0, com.oracle.soa:oracle.bpm.project.model:jar:12.2.1-0-0, com.oracle.soa:oracle.bpm.bpm-services.interface:jar:12.2.1-0-0, com.oracle.soa:oracle.bpm.web-resources:jar:12.2.1-0-0, com.oracle.soa:orabpel:jar:12.2.1-0-0, com.oracle.soa:orabpel-validator:jar:12.2.1-0-0, com.oracle.soa:orabpel-common:jar:12.2.1-0-0, com.oracle.soa:orabpel-thirdparty:jar:12.2.1-0-0, com.oracle.soa:soa-infra-tools:jar:12.2.1-0-0, com.oracle.soa:bpm-infra:jar:12.2.1-0-0, com.oracle.soa:testfwk-xbeans:jar:12.2.1-0-0, com.oracle.soa:bpm-services:jar:12.2.1-0-0, com.oracle.soa:mediator_client:jar:12.2.1-0-0, com.oracle.soa:rl:jar:12.2.1-0-0, com.oracle.soa:rulesdk2:jar:12.2.1-0-0, com.oracle.fmwshare:com.oracle.webservices.orawsdl-api:jar:12.2.1-0-0, com.oracle.jrf.infra.common:jrf-api:jar:12.2.1-0-0, com.oracle.fmwshare:com.oracle.classloader.pcl:jar:12.2.1-0-0, com.oracle.weblogic:javax.management.j2ee:jar:12.2.1-0-0, com.oracle.fmwshare:adfbcsvc-share:jar:12.2.1-0-0, com.oracle.fmwshare:adfm:jar:12.2.1-0-0, com.oracle.fmwshare:adf-share-base:jar:12.2.1-0-0, com.oracle.fmwshare:adf-share-ca:jar:12.2.1-0-0, com.oracle.fmwshare:adflogginghandler:jar:12.2.1-0-0, com.oracle.fmwshare:adf-share-support:jar:12.2.1-0-0, com.oracle.fmwshare:jsp-el-api:jar:12.2.1-0-0, com.oracle.fmwshare:dms:jar:12.2.1-0-0, com.oracle.fmwshare:jmxframework:jar:12.2.1-0-0, com.oracle.fmwshare:jmxspi:jar:12.2.1-0-0, com.oracle.fmwshare:jps-internal:jar:12.2.1-0-0, com.oracle.fmwshare:jps-unsupported-api:jar:12.2.1-0-0, com.oracle.fmwshare:oracle.logging-utils:jar:12.2.1-0-0, com.oracle.fmwshare:mdsrt:jar:12.2.1-0-0, com.oracle.fmwshare:oramds:jar:12.2.1-0-0, com.oracle.fmwshare:ojdl:jar:12.2.1-0-0, com.oracle.toplink:eclipselink:jar:12.2.1-0-0, com.oracle.wsm.common:wsm-policy-core:jar:12.2.1-0-0, com.oracle.wsm.common:wsm-secpol:jar:12.2.1-0-0, com.oracle.fmwshare:xml:jar:12.2.1-0-0, com.oracle.fmwshare:xmlparserv2:jar:12.2.1-0-0, com.oracle.fmwshare:xmlef:jar:12.2.1-0-0, com.oracle.fmwshare:org.apache.commons.digester_1.8:jar:12.2.1-0-0, com.oracle.fmwshare:org.springframework_3.1.0:jar:12.2.1-0-0, com.oracle.pki:oraclepki:jar:12.2.1-0-0: Failure to find com.oracle.weblogic:org.glassfish.jersey.core.jersey-server:jar:12.2.1-0-0 in https://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 2]

      [ERROR]     Unknown packaging: sar @ line 7, 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/PluginResolutionException

       

       

      POM.xml file which i have used to build SOA project is as follows:

       

      <?xml version="1.0" encoding="UTF-8" ?>

      <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"

               xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

        <!--

                 This POM was automatically generated during SOA project creation.        

                 This POM relates to this SOA Composite, i.e. the one in this same directory.

                 There is another POM in the SOA Application directory which handles

                 the whole SOA Application, which may contain additional projects.

              -->

        <modelVersion>4.0.0</modelVersion>

        <groupId>com.abc.soa</groupId>

        <artifactId>MavenProj</artifactId>

        <version>1.0-SNAPSHOT</version>

        <packaging>sar</packaging>

        <!--

                 The parent points to the common SOA parent POM.  That is a special POM that is

                 shipped by Oracle as a point of customization (only). You can add default values

                 for properties like serverUrl, etc. to the SOA common parent POM, so that you

                 do not have to specify them over and over in every project POM.

          -->

        <parent>

          <groupId>com.oracle.soa</groupId>

          <artifactId>sar-common</artifactId>

          <version>12.2.1-0-0</version>

        </parent>

        <properties>

          <!-- These parameters are used by the compile goal -->

          <scac.input.dir>${project.basedir}/SOA/</scac.input.dir>

          <scac.output.dir>${project.basedir}/target</scac.output.dir>

          <scac.input>${scac.input.dir}/composite.xml</scac.input>

          <scac.output>${scac.output.dir}/out.xml</scac.output>

          <scac.error>${scac.output.dir}/error.txt</scac.error>

          <scac.displayLevel>1</scac.displayLevel>

          <!-- if you are using a config plan, uncomment the following line and update to point

                   to your config plan -->

          <!--<configplan>${scac.input.dir}/configplan.xml</configplan>-->

          <!-- These parameters are used by the deploy and undeploy goals -->

          <composite.name>${project.artifactId}</composite.name>

          <composite.revision>1.0</composite.revision>

          <composite.partition>default</composite.partition>

          <serverUrl>${oracleServerUrl}</serverUrl>

          <user>${oracleUsername}</user>

          <password>${oraclePassword}</password>

          <overwrite>true</overwrite>

          <forceDefault>true</forceDefault>

          <regenerateRulebase>false</regenerateRulebase>

          <keepInstancesOnRedeploy>false</keepInstancesOnRedeploy>

          <!-- These parameters are used by the test goal

               if you are using the sca-test (test) goal, you need to uncomment the following

                   line and point it to your jndi.properties file. -->

          <!--<jndi.properties.input>UNDEFINED</jndi.properties.input>-->

          <scatest.result>${scac.output.dir}/testResult</scatest.result>

          <!--  input is the name of the composite to run test suties against -->

          <input>${project.artifactId}</input>

          <!--<scac.ant.buildfile>${env.MW_HOME}/soa/bin/ant-sca-compile.xml</scac.ant.buildfile>

              <sca.ant.testfile>${env.MW_HOME}/soa/bin/ant-sca-test.xml</sca.ant.testfile>

              -->

          <oracleHome>${env.ORACLE_HOME}</oracleHome>

        </properties>

        <build>

          <plugins>

            <plugin>

              <groupId>com.oracle.soa.plugin</groupId>

              <artifactId>oracle-soa-plugin</artifactId>

              <version>12.2.1-0-0</version>

              <configuration>

                <compositeName>${project.artifactId}</compositeName>

                <composite>${scac.input}</composite>

                <sarLocation>${scac.output.dir}/sca_${project.artifactId}_rev${project.version}.jar</sarLocation>

                <serverUrl>${serverUrl}</serverUrl>

                <user>${user}</user>

                <password>${password}</password>

                <!-- Note: compositeRevision is needed to package, revision is needed to undeploy -->

                <compositeRevision>${composite.revision}</compositeRevision>

                <revision>${composite.revision}</revision>

                <scacInputDir>${scac.input.dir}</scacInputDir>

                <input>${input}</input>

              </configuration>

              <!-- extensions=true is needed to use the custom sar packaging type -->

              <extensions>true</extensions>

            </plugin>

            <plugin>

              <groupId>com.oracle.adf.plugin</groupId>

              <artifactId>ojdeploy</artifactId>

              <version>12.2.1-1-0</version>

              <configuration>

                <ojdeploy>${oracleHome}/jdeveloper/jdev/bin/ojdeploy.exe</ojdeploy>

                <workspace>${basedir}/../MavenApp.jws</workspace>

                <project>MavenProj</project>

                <profile>MavenProj</profile>

                <outputfile>${project.build.directory}/${project.build.finalName}.jar</outputfile>

              </configuration>

              <executions>

                <execution>

                  <phase>package</phase>

                  <goals>

                    <goal>deploy</goal>

                  </goals>

                </execution>

              </executions>

            </plugin>

          </plugins>

        </build>

        <dependencies>

          <dependency>

            <groupId>com.oracle.adf.library</groupId>

            <artifactId>SOA-Designtime</artifactId>

            <version>12.2.1-1-0</version>

            <type>pom</type>

            <scope>provided</scope>

          </dependency>

          <dependency>

            <groupId>com.oracle.adf.library</groupId>

            <artifactId>SOA-Runtime</artifactId>

            <version>12.2.1-1-0</version>

            <type>pom</type>

            <scope>provided</scope>

          </dependency>

          <dependency>

            <groupId>com.oracle.adf.library</groupId>

            <artifactId>BPEL-Runtime</artifactId>

            <version>12.2.1-1-0</version>

            <type>pom</type>

            <scope>provided</scope>

          </dependency>

          <dependency>

            <groupId>com.oracle.adf.library</groupId>

            <artifactId>Mediator-Runtime</artifactId>

            <version>12.2.1-1-0</version>

            <type>pom</type>

            <scope>provided</scope>

          </dependency>

          <dependency>

            <groupId>com.oracle.adf.library</groupId>

            <artifactId>MDS-Runtime</artifactId>

            <version>12.2.1-1-0</version>

            <type>pom</type>

            <scope>provided</scope>

          </dependency>

          <dependency>

            <groupId>com.oracle.adf.library</groupId>

            <artifactId>BC4J-Service-Runtime</artifactId>

            <version>12.2.1-1-0</version>

            <type>pom</type>

            <scope>provided</scope>

          </dependency>

        </dependencies>

      </project>

       

      Regards,

      Vikas