dev@glassfish.java.net

Review:pom.xml changes and new pom.xml for new webTier Provider OHS.

From: Shamanth <shyamant.hegde_at_oracle.com>
Date: Wed, 10 Apr 2013 18:32:32 +0530

Hi,

I have added a new provider(OHS provider) support in webTier.
Below are the pom.xml changes to build this new webTier provider and
also the new pom.xml for OHS Provider SME and OHS Provider SDP.

shamanth_at_shamanth-Latitude-E6420:~/closedglassfish/all/closed/cloud/distributions$
svn diff pom.xml
Index: pom.xml
===================================================================
--- pom.xml (revision 10871)
+++ pom.xml (working copy)
@@ -34,6 +34,7 @@
          <module>idm-ldap-provider-sdp</module>
          <module>hybrid-native-gf-sdp</module>
          <module>hybrid-ovm-gf-sdp</module>
+ <module>ohs-provider-sdp</module>
      </modules>

      <build>

pom.xml changes in service-mgmt-plugins
shamanth_at_shamanth-Latitude-E6420:~/closedglassfish/all/closed/cloud/service-mgmt-plugins$
svn diff pom.xml
Index: pom.xml
===================================================================
--- pom.xml (revision 10871)
+++ pom.xml (working copy)
@@ -28,5 +28,6 @@
          <module>shell-plugin</module>
      <module>wls-shell-plugin</module>
          <module>vanilla-plugin</module>
+ <module>ohs-provider-sme</module>
     </modules>
  </project>


New pom.xml for building the new SDP ohs-provider-sdp

<?xml version="1.0"?>
<!--
     Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
     <groupId>com.oracle.paas.sdp</groupId>
     <artifactId>ohs-provider-sdp</artifactId>
     <version>4.0-SNAPSHOT</version>

     <name>OHS Provider SDP</name>
     <packaging>distribution-fragment</packaging>

     <properties>
<stage.dir>${project.build.outputDirectory}</stage.dir>
<sdp.dir>${project.build.outputDirectory}/sdp</sdp.dir>
         <findbugs.skip>true</findbugs.skip>
<packager.artifact.excludes>junit,</packager.artifact.excludes>
<cloudlogic.version>4.0-SNAPSHOT</cloudlogic.version>
     </properties>

     <repositories>
         <repository>
             <id>gf-internal-releases</id>
             <name>GlassFish Internal Release Repository</name>
<url>http://gf-maven.us.oracle.com/nexus/content/repositories/gf-internal-release/</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>false</enabled>
             </snapshots>
         </repository>
     </repositories>

     <build>
         <resources>
             <resource>
<directory>src/main/resources</directory>
                 <excludes>
                     <exclude>**/.ade_path/**</exclude>
                 </excludes>
                 <targetPath>${stage.dir}</targetPath>
             </resource>
         </resources>
         <plugins>
             <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
                 <version>2.7</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
             <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
                 <version>2.4</version>
                 <executions>
                     <execution>
                         <id>default-clean</id>
                         <phase>validate</phase>
                         <goals>
                             <goal>clean</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.glassfish.build</groupId>
<artifactId>glassfishbuild-maven-plugin</artifactId>
                 <extensions>true</extensions>
                 <version>3.2.3</version>
                 <executions>
                     <execution>
                         <id>copy-dependencies</id>
                         <phase>package</phase>
                         <goals>
                             <goal>zip</goal>
                         </goals>
                         <configuration>
<finalName>webtier-ohs-provider.sdp</finalName>
                             <dir>${stage.dir}</dir>
                         </configuration>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
                 <executions>
                     <execution>
                         <id>copy-dependencies</id>
                         <goals>
<goal>copy-dependencies</goal>
                         </goals>
                         <configuration>
<outputDirectory>${stage.dir}</outputDirectory>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
<includeScope>compile</includeScope>
<includeScope>runtime</includeScope>
<excludeTransitive>true</excludeTransitive>
<includeTypes>zip,jar</includeTypes>
<stripVersion>true</stripVersion>
                         </configuration>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
     </build>

     <dependencies>
         <dependency>
             <groupId>com.oracle.glassfish</groupId>
             <artifactId>paas.ohs-provider</artifactId>
             <version>${cloudlogic.version}</version>
         </dependency>
     </dependencies>

     <profiles>
         <profile>
             <id>copyright</id>
             <activation>
                 <activeByDefault>true</activeByDefault>
             </activation>
             <build>
                 <pluginManagement>
                     <plugins>
                         <plugin>
<groupId>org.glassfish.copyright</groupId>
<artifactId>glassfish-copyright-maven-plugin</artifactId>
                             <version>1.31</version>
                             <configuration>
                                 <excludeFile>
                                     copyright-exclude
                                 </excludeFile>
<templateFile>oracle.txt</templateFile>
<alternateTemplateFile>cddl+gpl+ce-copyright.txt</alternateTemplateFile>
                             </configuration>
                             <dependencies>
                                 <dependency>
<groupId>com.oracle.glassfish</groupId>
<artifactId>copyright</artifactId>
<version>4.0-SNAPSHOT</version>
                                 </dependency>
                             </dependencies>
                         </plugin>
                     </plugins>
                 </pluginManagement>
             </build>
         </profile>
     </profiles>
</project>


New pom.xml for building the OHS provider SME:-
<?xml version="1.0" encoding="UTF-8"?>
<!--
     Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
     <parent>
         <groupId>com.oracle.glassfish</groupId>
         <artifactId>paas.plugins</artifactId>
         <version>4.0-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <artifactId>paas.ohs-provider</artifactId>
     <packaging>glassfish-jar</packaging>

     <name>OHS Provider Service Plugin</name>

     <dependencies>
         <dependency>
             <groupId>com.oracle.glassfish</groupId>
             <artifactId>paas.sme-apis</artifactId>
             <version>${project.version}</version>
         </dependency>
     <dependency>
         <groupId>org.glassfish.main.cluster</groupId>
         <artifactId>cluster-ssh</artifactId>
         <version>${nucleus.version}</version>
     </dependency>
     <dependency>
         <groupId>org.glassfish.annotations</groupId>
<artifactId>logging-annotation-processor</artifactId>
             <optional>true</optional>
     </dependency>
     <dependency>
         <groupId>com.oracle.glassfish</groupId>
         <artifactId>paas.sme-base</artifactId>
         <version>${project.version}</version>
         </dependency>
     </dependencies>
</project>



Thanks,
Shyamant