使用Maven构建SOA组合应用程序

问题描述 投票:-1回答:1

使用SOA套件11,尝试使用maven将SOA组合应用程序中的源代码(带有配置文件的composite.xml)构建为一个jar文件。

任何人都可以帮助指导我将POM.xml制作成相同的。我在pom文件中使用“ Apache-ANT-Plugin”。

maven ant soa osb
1个回答
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“>该POM与该SOA组合相关,即在同一目录中。SOA应用程序目录中还有另一个POM可以处理整个SOA应用程序,其中可能包含其他项目。->4.0.0测试1你好1.0快照sar

<!--
       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.1.3-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>
    -->

</properties>
<build>
    <plugins>
        <plugin>
            <groupId>com.oracle.soa.plugin</groupId>
            <artifactId>oracle-soa-plugin</artifactId>
            <version>12.1.3-0-0</version>
            <configuration>
                <compositeName>${project.artifactId}</compositeName>
                <composite>${scac.input}</composite>
                <sarLocation>${scac.output.dir}/sca_${project.artifactId}_rev${composite.revision}.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>
    </plugins>
</build>

© www.soinside.com 2019 - 2024. All rights reserved.