Forum Stats

  • 3,726,668 Users
  • 2,245,237 Discussions
  • 7,852,344 Comments

Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Maven isnt deploying composites to correct SOA FOLDER, going to default SOA folder.

Hari Selva
Hari Selva Member Posts: 281 Blue Ribbon

Maven isnt deploying composites to the correct SOA FOLDER, going to "default" SOA folder. eventhough I mentioned the partition name in the pom.xml file. please advise.

This is my pom.xml

<?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">

  <modelVersion>4.0.0</modelVersion>

  <groupId>org.my.test</groupId>

  <artifactId>BpmProject</artifactId>

  <version>1.0-SNAPSHOT</version>

  <packaging>sar</packaging>

   

  <!--

      This POM was generated from the SOA Maven Archetype.

      Comments in this POM guide you how to use it with your project.

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

      There is another POM in the SOA Application directory (up one) which handles 

      the whold SOA Application, which may contain additional projects.


      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-3-0</version>

    <relativePath></relativePath>

  </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>${project.basedir}/BpmProject_cfgplan.xml</configplan>


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

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

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

    <composite.partition>Development</composite.partition>

        <serverUrl>serverurl</serverUrl>

    <user>username</user>

    <password>password</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>${basedir}/jndi.properties</jndi.properties.input>-->

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

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

    <input>BpmProject</input>

    <oracleHome>C:\Oracle\Middleware\Oracle_Home_12c\</oracleHome>

  </properties>


  <!--

      These refer to the properties defined above. You should probably not need to make 

      any changes beflow this point - these just point to the properties above.

  -->

  <build>

    <plugins>

      <plugin>

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

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

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

        <configuration>

          <compositeName>BpmProject</compositeName>

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

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

          <serverUrl>${serverUrl}</serverUrl>

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

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

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

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

          <!-- Uncomment the appHome property if your composite 

             depends on MDS. -->

          <appHome>${project.basedir}/..</appHome>

          <!-- If you have a composite which contains a component that 

             depends on MDS (eg. Human Task, Business Rule) AND you 

             want to use a file-based MDS repository, then you 

             need to do either:

             1. update the .adf/META-INF/adf-config.xml to point to

               the correct location of the file based repository, i.e.

               remove the reference to ${soa.oracle.home} in that file, or

             2. define oracleHome and soaOracleHome here and leave the adf-config.xml file

               as is. Note that the correct value for soaOracleHome is the path to 

               your SOA Quickstart or JDeveloper install directory, 

               with "/soa" appended to it.

          -->

          <!--<oracleHome>JDEV_HOME</oracleHome>-->

          <!--<soaOracleHome>JDEV_HOME/soa</soaOracleHome>-->

          <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-3-0</version>

        <configuration>

          <ojdeploy>

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

          </ojdeploy>

          <workspace>

            ${basedir}/../test-soa-application.jws

          </workspace>

          <project>

            BpmProject

          </project>

          <profile>

            BpmProject

          </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>

</project>


Thanks

Tagged:
Sign In or Register to comment.