Skip to content

Commit 305351c

Browse files
committed
Added TomEE Support.
1 parent 3f3e2db commit 305351c

2 files changed

Lines changed: 33 additions & 4 deletions

File tree

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ few instructions here: [Codenvy setup to demo applications using Docker: Java EE
3030
* Copy the file javaee7-angular.war from target directory to your Wildfly installation folder
3131
`standalone/deployments`
3232

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

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

@@ -51,9 +50,15 @@ few instructions here: [Codenvy setup to demo applications using Docker: Java EE
5150

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

54-
### Deploy in Embedded-Glassfish 3.1 ###
53+
### Deploy in Embedded-Glassfish 4.1 ###
5554

56-
* You can also deploy the app, using Maven Embedded-Glassfish Plugin with the following command: `mvn embedded-glassfish:run`
55+
* Just run `mvn embedded-glassfish:run`
56+
57+
* Go to http://localhost:8080/javaee7-angular/ (http://localhost:8080/javaee7-angular/)
58+
59+
### Run with TomEE ###
60+
61+
* Just run `mvn tomee:run`
5762

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

pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,30 @@
131131
</execution>
132132
</executions>
133133
</plugin>
134+
135+
<plugin>
136+
<groupId>org.apache.tomee.maven</groupId>
137+
<artifactId>tomee-maven-plugin</artifactId>
138+
<version>7.0.1</version>
139+
<configuration>
140+
<libs>
141+
<lib>remove:openjpa-</lib>
142+
<lib>org.hibernate:hibernate-core:5.2.0.Final</lib>
143+
<lib>org.hibernate.common:hibernate-commons-annotations:5.0.1.Final</lib>
144+
<lib>org.jboss.logging:jboss-logging:3.3.0.Final</lib>
145+
<lib>dom4j:dom4j:1.6.1</lib>
146+
<lib>org.javassist:javassist:3.18.1-GA</lib>
147+
<lib>com.fasterxml:classmate:1.1.0</lib>
148+
<lib>antlr:antlr:2.7.7</lib>
149+
</libs>
150+
<systemVariables>
151+
<javax.persistence.provider>
152+
org.hibernate.jpa.HibernatePersistenceProvider
153+
</javax.persistence.provider>
154+
</systemVariables>
155+
<warFile>target/javaee7-angular.war</warFile>
156+
</configuration>
157+
</plugin>
134158
</plugins>
135159
</build>
136160

0 commit comments

Comments
 (0)