Skip to content

Commit

Permalink
updated pom to use cargo instead of unsupported glassfish-maven-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
reiner_jung committed Apr 29, 2016
1 parent f0cd21f commit a0d92bb
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 75 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,43 +49,56 @@
<artifactId>maven-ear-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.glassfish.maven.plugin</groupId>
<artifactId>maven-glassfish-plugin</artifactId>

<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.9</version>
<configuration>
<glassfishDirectory>${local.glassfish.home}</glassfishDirectory>
<user>${logic.enterprise.user}</user>
<!-- <adminPassword>${logic.enterprise.password}</adminPassword> -->
<passwordFile>${logic.enterprise.passwordFile}</passwordFile>
<domain>
<name>${logic.enterprise.domain}</name>
<host>${logic.enterprise.host}</host>
<httpPort>${logic.enterprise.httpPort}</httpPort>
<adminPort>${logic.enterprise.adminPort}</adminPort>
</domain>
<components>
<component>
<name>${project.artifactId}</name>
<artifact>target/${project.artifactId}-${project.version}.${project.packaging}</artifact>
</component>
</components>
<debug>true</debug>
<echo>true</echo>
<wait>true</wait>
<container>
<containerId>glassfish4x</containerId>
<type>remote</type>
</container>
<configuration>
<type>runtime</type>
<properties>
<cargo.hostname>${logic.enterprise.host}</cargo.hostname>
<cargo.remote.username>${logic.enterprise.user}</cargo.remote.username>
<cargo.remote.password>${logic.enterprise.password}</cargo.remote.password>
<cargo.glassfish.admin.port>${logic.enterprise.adminPort}</cargo.glassfish.admin.port>
<cargo.glassfish.domain.name>${logic.enterprise.domain}</cargo.glassfish.domain.name>
</properties>
</configuration>
<deployables>
<deployable>
<location>${project.build.directory}/${project.build.finalName}.${project.packaging}</location>
<properties>
<name>${project.artifactId}</name>
</properties>
<type>ear</type>
</deployable>
</deployables>
</configuration>
<dependencies>
<dependency>
<groupId>org.glassfish.deployment</groupId>
<artifactId>deployment-client</artifactId>
<version>3.2-b06</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>gf-undeploy</id>
<goals>
<goal>undeploy</goal>
</goals>
<phase>clean</phase>
<phase>undeploy</phase>
</execution>
<execution>
<id>gf-deploy</id>
<goals>
<goal>deploy</goal>
</goals>
<phase>package</phase>
<phase>install</phase>
</execution>
</executions>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,44 +82,56 @@
</plugin>

<plugin>
<groupId>org.glassfish.maven.plugin</groupId>
<artifactId>maven-glassfish-plugin</artifactId>

<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.9</version>
<configuration>
<glassfishDirectory>${local.glassfish.home}</glassfishDirectory>
<user>${logic.registry.user}</user>
<!-- <adminPassword>${logic.registry.password}</adminPassword> -->
<passwordFile>${logic.registry.passwordFile}</passwordFile>
<domain>
<name>${logic.registry.domain}</name>
<host>${logic.registry.host}</host>
<httpPort>${logic.registry.httpPort}</httpPort>
<adminPort>${logic.registry.adminPort}</adminPort>
</domain>
<components>
<component>
<name>${project.artifactId}</name>
<artifact>target/${project.artifactId}-${project.version}.${project.packaging}</artifact>
</component>
</components>
<debug>true</debug>
<echo>true</echo>
<wait>true</wait>
<container>
<containerId>glassfish4x</containerId>
<type>remote</type>
</container>
<configuration>
<type>runtime</type>
<properties>
<cargo.hostname>${logic.registry.host}</cargo.hostname>
<cargo.remote.username>${logic.registry.user}</cargo.remote.username>
<cargo.remote.password>${logic.registry.password}</cargo.remote.password>
<cargo.glassfish.admin.port>${logic.registry.adminPort}</cargo.glassfish.admin.port>
<cargo.glassfish.domain.name>${logic.registry.domain}</cargo.glassfish.domain.name>
</properties>
</configuration>
<deployables>
<deployable>
<location>${project.build.directory}/${project.build.finalName}.${project.packaging}</location>
<properties>

</properties>
<type>war</type>
</deployable>
</deployables>
</configuration>
<dependencies>
<dependency>
<groupId>org.glassfish.deployment</groupId>
<artifactId>deployment-client</artifactId>
<version>3.2-b06</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>gf-undeploy</id>
<goals>
<goal>undeploy</goal>

</goals>
<phase>clean</phase>
<phase>post-clean</phase>
</execution>
<execution>
<id>gf-deploy</id>
<goals>
<goal>deploy</goal>
</goals>
<phase>package</phase>
<phase>install</phase>
</execution>
</executions>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,44 +54,56 @@
<artifactId>maven-ear-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.glassfish.maven.plugin</groupId>
<artifactId>maven-glassfish-plugin</artifactId>

<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.9</version>
<configuration>
<glassfishDirectory>${local.glassfish.home}</glassfishDirectory>
<user>${logic.store.user}</user>
<!-- <adminPassword>${logic.store.password}</adminPassword> -->
<passwordFile>${logic.store.passwordFile}</passwordFile>
<domain>
<name>${logic.store.domain}</name>
<host>${logic.store.host}</host>
<httpPort>${logic.store.httpPort}</httpPort>
<adminPort>${logic.store.adminPort}</adminPort>
</domain>
<components>
<component>
<name>${project.artifactId}</name>
<artifact>target/${project.artifactId}-${project.version}.${project.packaging}</artifact>
</component>
</components>
<debug>true</debug>
<echo>true</echo>
<wait>true</wait>
<container>
<containerId>glassfish4x</containerId>
<type>remote</type>
</container>
<configuration>
<type>runtime</type>
<properties>
<cargo.hostname>${logic.store.host}</cargo.hostname>
<cargo.remote.username>${logic.store.user}</cargo.remote.username>
<cargo.remote.password>${logic.store.password}</cargo.remote.password>
<cargo.glassfish.admin.port>${logic.store.adminPort}</cargo.glassfish.admin.port>
<cargo.glassfish.domain.name>${logic.store.domain}</cargo.glassfish.domain.name>
</properties>
</configuration>
<deployables>
<deployable>
<location>${project.build.directory}/${project.build.finalName}.${project.packaging}</location>
<properties>
<name>${project.artifactId}</name>
</properties>
<type>ear</type>
</deployable>
</deployables>
</configuration>
<dependencies>
<dependency>
<groupId>org.glassfish.deployment</groupId>
<artifactId>deployment-client</artifactId>
<version>3.2-b06</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>gf-undeploy</id>
<goals>
<goal>undeploy</goal>
<goal>stop-domain</goal>
</goals>
<phase>clean</phase>
<phase>undeploy</phase>
</execution>
<execution>
<id>gf-deploy</id>
<goals>
<goal>deploy</goal>
</goals>
<phase>package</phase>
<phase>install</phase>
</execution>
</executions>
</plugin>
Expand Down
5 changes: 2 additions & 3 deletions cocome-maven-project/cloud-web-frontend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,15 @@
<id>gf-undeploy</id>
<goals>
<goal>undeploy</goal>
<goal>stop-domain</goal>
</goals>
<phase>clean</phase>
<phase>post-clean</phase>
</execution>
<execution>
<id>gf-deploy</id>
<goals>
<goal>deploy</goal>
</goals>
<phase>package</phase>
<phase>install</phase>
</execution>
</executions>
</plugin>
Expand Down
10 changes: 9 additions & 1 deletion cocome-maven-project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@

</properties>


<repositories>
<repository>
<id>maven-central</id>
Expand Down Expand Up @@ -127,6 +126,15 @@

<dependencyManagement>
<dependencies>

<!-- cargo plug-in for glassfish deployment -->
<dependency>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-core-container-glassfish</artifactId>
<version>1.4.19</version>
</dependency>


<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-all-6.0</artifactId>
Expand Down

0 comments on commit a0d92bb

Please sign in to comment.