Skip to content

Commit

Permalink
Merge branch 'release/3.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed May 24, 2016
2 parents cbbf524 + b39da5f commit dd7d6a3
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 5 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,30 @@ few instructions here: [Codenvy setup to demo applications using Docker: Java EE

### Deploy in Wildfly 8 ###

* Copy the file javaee7-angular-3.4.war from target directory to your Wildfly installation folder
* Copy the file javaee7-angular.war from target directory to your Wildfly installation folder
`standalone/deployments`

* You can also deploy the app, using Maven Wildfly Plugin with the following command: `mvn wildfly:deploy`.
You need to have Wildfly running.

* Start Wildfly 8 and go to http://localhost:8080/javaee7-angular-3.6/ (http://localhost:8080/javaee7-angular-3.6/)
* Start Wildfly 8 and go to http://localhost:8080/javaee7-angular/ (http://localhost:8080/javaee7-angular/)

### Deploy in Glassfish 4.1 ###

* Open Admin Console (http://localhost:8484/)

* Go to menu "Application"

* In the button "Deploy..." select the file javaee7-angular-3.6.war
* In the button "Deploy..." select the file javaee7-angular.war

* Go to http://localhost:8080/javaee7-angular-3.6/ (http://localhost:8080/javaee7-angular-3.6/)
* Go to http://localhost:8080/javaee7-angular/ (http://localhost:8080/javaee7-angular/)

### Deploy in Embedded-Glassfish 3.1 ###

* You can also deploy the app, using Maven Embedded-Glassfish Plugin with the following command: `mvn embedded-glassfish:run`

* Go to http://localhost:8080/javaee7-angular/ (http://localhost:8080/javaee7-angular/)

## Javascript Package Management (optional) ##

The required JS libraries are included in the project, but it also possible to manage them following the next steps:
Expand Down
30 changes: 29 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>com.cortez.samples</groupId>
<artifactId>javaee7-angular</artifactId>
<version>3.6</version>
<version>3.7</version>
<packaging>war</packaging>

<name>javaee7-angular</name>
Expand All @@ -24,6 +24,7 @@
<version.plugin.jgitflow>1.0-m3</version.plugin.jgitflow>
<version.plugin.jrebel>1.1.5</version.plugin.jrebel>
<version.plugin.wildfly>1.1.0.Alpha1</version.plugin.wildfly>
<version.plugin.glassfish>4.1.1</version.plugin.glassfish>

<!-- Dependencies -->
<version.dependency.javaee>7.0</version.dependency.javaee>
Expand Down Expand Up @@ -70,6 +71,7 @@
<version>${version.plugin.war}</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<warName>javaee7-angular</warName>
</configuration>
</plugin>

Expand Down Expand Up @@ -101,6 +103,32 @@
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${version.plugin.wildfly}</version>
<configuration>
<filename>javaee7-angular.war</filename>
</configuration>
</plugin>

<plugin>
<groupId>org.glassfish.embedded</groupId>
<artifactId>maven-embedded-glassfish-plugin</artifactId>
<version>${version.plugin.glassfish}</version>
<configuration>
<port>8080</port>
</configuration>
<executions>
<execution>
<id>deploy</id>
<!-- Workaround to force the deploy goal to not execute on pre-integrations-tests -->
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
<configuration>
<app>target/javaee7-angular.war</app>
<contextRoot>javaee7-angular</contextRoot>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit dd7d6a3

Please sign in to comment.