Author: trong.tran
Date: 2010-10-13 08:17:07 -0400 (Wed, 13 Oct 2010)
New Revision: 4651
Modified:
exo/portal/branches/3.1.x/packaging/pkg/pom.xml
Log:
PLF-716 JBoss EAP distribution
Modified: exo/portal/branches/3.1.x/packaging/pkg/pom.xml
===================================================================
--- exo/portal/branches/3.1.x/packaging/pkg/pom.xml 2010-10-13 11:49:16 UTC (rev 4650)
+++ exo/portal/branches/3.1.x/packaging/pkg/pom.xml 2010-10-13 12:17:07 UTC (rev 4651)
@@ -76,6 +76,11 @@
<version>3.1.6-PLF-SNAPSHOT</version>
<type>js</type>
</dependency>
+ <dependency>
+ <groupId>org.exoplatform.portal</groupId>
+ <artifactId>exo.portal.server.jboss.patch-ear</artifactId>
+ <version>3.1.5-PLF-SNAPSHOT</version>
+ </dependency>
</dependencies>
<build>
@@ -126,6 +131,99 @@
</execution>
</executions>
</plugin>
+ <!-- JBoss-EAR packaging - not in a specific profile so hudson will generate the
zip and publish it on maven repo -->
+ <!-- Ensure your environment is correctly setup -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>jbossas-check-environment-ready</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireProperty>
+
<property>exo.projects.directory.dependencies</property>
+ <message>"You must define the property
exo.projects.directory.dependencies to give the path to the directory where you store your
applications servers"</message>
+ </requireProperty>
+ <requireProperty>
+ <property>exo.projects.app.jboss.version</property>
+ <message>"You must define the property
exo.projects.app.jboss.version to give the name of the directory where is stored
JBossAS"</message>
+ </requireProperty>
+ <requireFilesExist>
+ <files>
+
<file>${exo.projects.directory.dependencies}/${exo.projects.app.jboss.version}/</file>
+ </files>
+ <message>"The following JBossAS directory doesn't
exist :
${exo.projects.directory.dependencies}/${{exo.projects.app.jboss.version}"</message>
+ </requireFilesExist>
+ </rules>
+ <fail>true</fail>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- run exo buils -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>jbossas-packaging</id>
+ <phase>package</phase>
+ <configuration>
+ <executable>java</executable>
+ <workingDirectory>${basedir}</workingDirectory>
+ <arguments>
+
<argument>-Dexo.package.home=${basedir}/target/packager</argument>
+ <argument>-Dexo.current.dir=${basedir}</argument>
+
<argument>-Dexo.base.dir=${exo.projects.directory.base}</argument>
+
<argument>-Dexo.conf.dir=${basedir}/target/packager-conf</argument>
+
<argument>-Dexo.working.dir=${gatein.working.dir}</argument>
+ <!--argument>-Dexo.src.dir=NONE</argument-->
+
<argument>-Dexo.dep.dir=${exo.projects.directory.dependencies}</argument><!--
to get the server ref install -->
+
<
argument>-Dexo.m2.repos=file:${settings.localRepository},http://reposi...
+
<argument>-Dclean.server=${exo.projects.app.jboss.version}</argument>
+ <argument>-Dexo.m2.home=${maven.home}</argument>
+ <argument>-Xms128m</argument>
+ <argument>-Xmx512m</argument>
+ <argument>-classpath</argument>
+
<argument>${basedir}/target/packager/lib/js.jar</argument>
+
<argument>org.mozilla.javascript.tools.shell.Main</argument>
+
<argument>${basedir}/target/packager/javascript/eXo/eXo.js</argument>
+ <argument>exobuild</argument>
+ <argument>--product=portal</argument>
+ <argument>--deploy=jbossear</argument>
+ </arguments>
+ </configuration>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>jboss-ear-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <descriptors>
+
<descriptor>src/main/assembly/gatein-ear.xml</descriptor>
+ </descriptors>
+ <attach>true</attach>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- End of JBoss-EAR packaging -->
+
</plugins>
</build>
@@ -534,112 +632,5 @@
</plugins>
</build>
</profile>
-
-
-
-
-
-
-
- <profile>
- <id>pkg-jbossear</id>
- <build>
- <finalName>GateIn-${project.version}</finalName>
- <plugins>
- <!-- Ensure your environment is correctly setup -->
- <!--plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <executions>
- <execution>
- <id>jbossas-check-environment-ready</id>
- <goals>
- <goal>enforce</goal>
- </goals>
- <configuration>
- <rules>
- <requireProperty>
-
<property>exo.projects.directory.dependencies</property>
- <message>"You must define the property
exo.projects.directory.dependencies to give the path to the directory where you store your
applications servers"</message>
- </requireProperty>
- <requireProperty>
-
<property>exo.projects.app.jboss.version</property>
- <message>"You must define the property
exo.projects.app.jboss.version to give the name of the directory where is stored
JBossAS"</message>
- </requireProperty>
- <requireFilesExist>
- <files>
-
<file>${exo.projects.directory.dependencies}/${exo.projects.app.jboss.version}/</file>
- </files>
- <message>"The following JBossAS directory
doesn't exist :
${exo.projects.directory.dependencies}/${{exo.projects.app.jboss.version}"</message>
- </requireFilesExist>
- </rules>
- <fail>true</fail>
- </configuration>
- </execution>
- </executions>
- </plugin-->
- <!-- run exo buils -->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>jbossas-packaging</id>
- <phase>package</phase>
- <configuration>
- <executable>java</executable>
- <workingDirectory>${basedir}</workingDirectory>
- <arguments>
-
<argument>-Dexo.package.home=${basedir}/target/packager</argument>
-
<argument>-Dexo.current.dir=${basedir}</argument>
-
<argument>-Dexo.base.dir=${exo.projects.directory.base}</argument>
-
<argument>-Dexo.conf.dir=${basedir}/target/packager-conf</argument>
-
<argument>-Dexo.working.dir=${gatein.working.dir}</argument>
- <!--argument>-Dexo.src.dir=NONE</argument-->
-
<argument>-Dexo.dep.dir=${exo.projects.directory.dependencies}</argument><!--
to get the server ref install -->
-
<
argument>-Dexo.m2.repos=file:${settings.localRepository},http://maven2...
-
<argument>-Dclean.server=${exo.projects.app.jboss.version}</argument>
-
<argument>-Dexo.m2.home=${maven.home}</argument>
- <argument>-Xms128m</argument>
- <argument>-Xmx512m</argument>
- <argument>-classpath</argument>
-
<argument>${basedir}/target/packager/lib/js.jar</argument>
-
<argument>org.mozilla.javascript.tools.shell.Main</argument>
-
<argument>${basedir}/target/packager/javascript/eXo/eXo.js</argument>
- <argument>exobuild</argument>
- <argument>--product=portal</argument>
- <argument>--deploy=jbossear</argument>
- </arguments>
- </configuration>
- <goals>
- <goal>exec</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <executions>
- <execution>
- <id>jboss-ear-assembly</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <descriptors>
-
<descriptor>src/main/assembly/gatein-ear.xml</descriptor>
- </descriptors>
- <attach>true</attach>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
-
-
</profiles>
</project>