[gatein-commits] gatein SVN: r4633 - in exo/portal/branches/3.1.x/packaging: pkg and 1 other directories.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Oct 12 03:48:53 EDT 2010
Author: trong.tran
Date: 2010-10-12 03:48:52 -0400 (Tue, 12 Oct 2010)
New Revision: 4633
Added:
exo/portal/branches/3.1.x/packaging/pkg/src/main/assembly/gatein-ear.xml
Removed:
exo/portal/branches/3.1.x/packaging/ear/
Modified:
exo/portal/branches/3.1.x/packaging/pkg/pom.xml
exo/portal/branches/3.1.x/packaging/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-12 06:35:02 UTC (rev 4632)
+++ exo/portal/branches/3.1.x/packaging/pkg/pom.xml 2010-10-12 07:48:52 UTC (rev 4633)
@@ -534,5 +534,112 @@
</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.exoplatform.org/rest/maven2,http://repository.jboss.org/maven2</argument>
+ <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>
Added: exo/portal/branches/3.1.x/packaging/pkg/src/main/assembly/gatein-ear.xml
===================================================================
--- exo/portal/branches/3.1.x/packaging/pkg/src/main/assembly/gatein-ear.xml (rev 0)
+++ exo/portal/branches/3.1.x/packaging/pkg/src/main/assembly/gatein-ear.xml 2010-10-12 07:48:52 UTC (rev 4633)
@@ -0,0 +1,49 @@
+<!--
+
+ Copyright (C) 2009 eXo Platform SAS.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+
+-->
+
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1 http://maven.apache.org/xsd/assembly-1.1.1.xsd">
+ <id>jboss-ear</id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <!--baseDirectory>gatein.ear</baseDirectory ${project.build.finalName} -->
+ <fileSets>
+ <fileSet>
+ <directory>target/jboss/server/default/deploy/gatein.ear</directory>
+ <outputDirectory>gatein.ear</outputDirectory>
+ <useDefaultExcludes>true</useDefaultExcludes>
+ <!--excludes>
+ <exclude>**/*.sh</exclude>
+ </excludes-->
+ </fileSet>
+ <!--fileSet>
+ <directory>target/jboss</directory>
+ <outputDirectory>${project.build.finalName}</outputDirectory>
+ <useDefaultExcludes>true</useDefaultExcludes>
+ <includes>
+ <include>**/*.sh</include>
+ </includes>
+ <fileMode>755</fileMode>
+ </fileSet-->
+ </fileSets>
+</assembly>
Modified: exo/portal/branches/3.1.x/packaging/pom.xml
===================================================================
--- exo/portal/branches/3.1.x/packaging/pom.xml 2010-10-12 06:35:02 UTC (rev 4632)
+++ exo/portal/branches/3.1.x/packaging/pom.xml 2010-10-12 07:48:52 UTC (rev 4633)
@@ -32,7 +32,6 @@
<name>GateIn Portal Packaging</name>
<modules>
- <module>ear</module>
<module>module</module>
<module>product</module>
<module>pkg</module>
More information about the gatein-commits
mailing list