-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
80 lines (75 loc) · 3.45 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>au.id.michaeluren.assignment</groupId>
<artifactId>ass3</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<name>Unico Assignment 3 ear</name>
<artifactId>ass3-ear</artifactId>
<packaging>ear</packaging>
<dependencies>
<!-- Depend on the ejb module and war so that we can package them -->
<dependency>
<groupId>au.id.michaeluren.assignment</groupId>
<artifactId>numbers-webservices</artifactId>
<type>war</type>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>au.id.michaeluren.assignment</groupId>
<artifactId>numbers-ejb</artifactId>
<type>ejb</type>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>au.id.michaeluren.assignment</groupId>
<artifactId>util</artifactId>
<type>jar</type>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<finalName>${project.parent.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>${version.ear.plugin}</version>
<configuration>
<!-- Tell Maven we are using Java EE 6 -->
<version>6</version>
<!-- Use Java EE ear libraries as needed. Java EE ear libraries
are in easy way to package any libraries needed in the ear, and automatically
have any modules (EJB-JARs and WARs) use them -->
<defaultLibBundleDir>lib</defaultLibBundleDir>
<modules>
<!-- Default context root of the web app is /numbers-rs.
If a custom context root is needed, uncomment the following snippet to
register our War as a web module and set the contextRoot property -->
<!--
<webModule>
<groupId>au.id.michaeluren.assignment</groupId>
<artifactId>numbers-rs</artifactId>
<contextRoot>/numbers</contextRoot>
</webModule>
-->
</modules>
<fileNameMapping>no-version</fileNameMapping>
</configuration>
</plugin>
<!-- The JBoss AS plugin deploys your ear to a local JBoss EAP container -->
<!-- Due to Maven's lack of intelligence with EARs we need to configure
the jboss-as maven plugin to skip deployment for all modules. We then enable
it specifically in the ear module. -->
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>