|
15 | 15 | See the License for the specific language governing permissions and |
16 | 16 | limitations under the License. |
17 | 17 | --> |
18 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 18 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
19 | 19 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
20 | 20 | <modelVersion>4.0.0</modelVersion> |
| 21 | + <parent> |
| 22 | + <groupId>org.wildfly.quickstarts</groupId> |
| 23 | + <artifactId>wildfly-quickstarts-parent</artifactId> |
| 24 | + <version>8.0.0-SNAPSHOT</version> |
| 25 | + <relativePath>../pom.xml</relativePath> |
| 26 | + </parent> |
21 | 27 |
|
22 | | - <groupId>org.wildfly.quickstarts</groupId> |
23 | 28 | <artifactId>wildfly-greeter</artifactId> |
24 | | - <version>8.0.0-SNAPSHOT</version> |
25 | 29 | <packaging>war</packaging> |
26 | 30 | <name>WildFly Quickstarts: Greeter</name> |
27 | 31 | <description>WildFly Quickstarts: Greeter</description> |
|
35 | 39 | </license> |
36 | 40 | </licenses> |
37 | 41 |
|
38 | | - <properties> |
39 | | - <!-- Explicitly declaring the source encoding eliminates the following |
40 | | - message: --> |
41 | | - <!-- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered |
42 | | - resources, i.e. build is platform dependent! --> |
43 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
44 | | - |
45 | | - <!-- JBoss dependency versions --> |
46 | | - |
47 | | - <version.wildfly.maven.plugin>1.0.0.Final</version.wildfly.maven.plugin> |
48 | | - |
49 | | - <version.jboss.spec.javaee.7.0>1.0.0.Final</version.jboss.spec.javaee.7.0> |
50 | | - |
51 | | - |
52 | | - <!-- other plugin versions --> |
53 | | - <version.compiler.plugin>2.3.1</version.compiler.plugin> |
54 | | - <version.war.plugin>2.1.1</version.war.plugin> |
55 | | - |
56 | | - <!-- maven-compiler-plugin --> |
57 | | - <maven.compiler.target>1.6</maven.compiler.target> |
58 | | - <maven.compiler.source>1.6</maven.compiler.source> |
59 | | - </properties> |
60 | 42 |
|
61 | 43 | <dependencyManagement> |
62 | 44 | <dependencies> |
63 | | - <!-- Define the version of JBoss' Java EE 7 APIs we want to import. |
64 | | - Any dependencies from org.jboss.spec will have their version defined by this |
65 | | - BOM --> |
66 | | - <!-- JBoss distributes a complete set of Java EE 7 APIs including |
67 | | - a Bill of Materials (BOM). A BOM specifies the versions of a "stack" (or |
68 | | - a collection) of artifacts. We use this here so that we always get the correct |
69 | | - versions of artifacts. Here we use the jboss-javaee-7.0 stack (you can |
70 | | - read this as the JBoss stack of the Java EE 7 APIs). You can actually |
71 | | - use this stack with any version of WildFly that implements Java EE 7, not |
72 | | - just WildFly 8! --> |
73 | | - <dependency> |
74 | | - <groupId>org.jboss.spec</groupId> |
75 | | - <artifactId>jboss-javaee-7.0</artifactId> |
76 | | - <version>${version.jboss.spec.javaee.7.0}</version> |
77 | | - <type>pom</type> |
78 | | - <scope>import</scope> |
79 | | - </dependency> |
| 45 | + <!-- Define the version of JBoss' Java EE 7 APIs we want to import. |
| 46 | + Any dependencies from org.jboss.spec will have their version defined by this |
| 47 | + BOM --> |
| 48 | + <!-- JBoss distributes a complete set of Java EE 7 APIs including |
| 49 | + a Bill of Materials (BOM). A BOM specifies the versions of a "stack" (or |
| 50 | + a collection) of artifacts. We use this here so that we always get the correct |
| 51 | + versions of artifacts. Here we use the jboss-javaee-7.0 stack (you can |
| 52 | + read this as the JBoss stack of the Java EE 7 APIs). You can actually |
| 53 | + use this stack with any version of WildFly that implements Java EE 7, not |
| 54 | + just WildFly 8! --> |
| 55 | + <dependency> |
| 56 | + <groupId>org.jboss.spec</groupId> |
| 57 | + <artifactId>jboss-javaee-7.0</artifactId> |
| 58 | + <version>${version.jboss.spec.javaee.7.0}</version> |
| 59 | + <type>pom</type> |
| 60 | + <scope>import</scope> |
| 61 | + </dependency> |
80 | 62 | </dependencies> |
81 | 63 | </dependencyManagement> |
82 | 64 |
|
83 | 65 | <dependencies> |
84 | 66 |
|
85 | 67 | <!-- Import the CDI API, we use provided scope as the API is included in JBoss WildFly --> |
86 | 68 | <dependency> |
87 | | - <groupId>javax.enterprise</groupId> |
88 | | - <artifactId>cdi-api</artifactId> |
89 | | - <scope>provided</scope> |
| 69 | + <groupId>javax.enterprise</groupId> |
| 70 | + <artifactId>cdi-api</artifactId> |
| 71 | + <scope>provided</scope> |
90 | 72 | </dependency> |
91 | 73 |
|
92 | 74 | <!-- Import the Common Annotations API (JSR-250), we use provided scope |
93 | 75 | as the API is included in JBoss WildFly --> |
94 | 76 | <dependency> |
95 | | - <groupId>org.jboss.spec.javax.annotation</groupId> |
96 | | - <artifactId>jboss-annotations-api_1.2_spec</artifactId> |
97 | | - <scope>provided</scope> |
| 77 | + <groupId>org.jboss.spec.javax.annotation</groupId> |
| 78 | + <artifactId>jboss-annotations-api_1.2_spec</artifactId> |
| 79 | + <scope>provided</scope> |
98 | 80 | </dependency> |
99 | 81 |
|
100 | 82 | <!-- Import the JSF API, we use provided scope as the API is included in JBoss WildFly --> |
101 | 83 | <dependency> |
102 | | - <groupId>org.jboss.spec.javax.faces</groupId> |
103 | | - <artifactId>jboss-jsf-api_2.2_spec</artifactId> |
104 | | - <scope>provided</scope> |
| 84 | + <groupId>org.jboss.spec.javax.faces</groupId> |
| 85 | + <artifactId>jboss-jsf-api_2.2_spec</artifactId> |
| 86 | + <scope>provided</scope> |
105 | 87 | </dependency> |
106 | 88 |
|
107 | 89 | <!-- Import the JPA API, we use provided scope as the API is included in JBoss WildFly --> |
108 | 90 | <dependency> |
109 | | - <groupId>org.hibernate.javax.persistence</groupId> |
110 | | - <artifactId>hibernate-jpa-2.1-api</artifactId> |
111 | | - <scope>provided</scope> |
| 91 | + <groupId>org.hibernate.javax.persistence</groupId> |
| 92 | + <artifactId>hibernate-jpa-2.1-api</artifactId> |
| 93 | + <scope>provided</scope> |
112 | 94 | </dependency> |
113 | 95 |
|
114 | 96 | <!-- Import the JPA API, we use provided scope as the API is included in JBoss WildFly --> |
115 | 97 | <dependency> |
116 | | - <groupId>org.jboss.spec.javax.transaction</groupId> |
117 | | - <artifactId>jboss-transaction-api_1.2_spec</artifactId> |
118 | | - <scope>provided</scope> |
| 98 | + <groupId>org.jboss.spec.javax.transaction</groupId> |
| 99 | + <artifactId>jboss-transaction-api_1.2_spec</artifactId> |
| 100 | + <scope>provided</scope> |
119 | 101 | </dependency> |
120 | 102 |
|
121 | 103 | <!-- Import the EJB API, we use provided scope as the API is included in JBoss WildFly --> |
122 | 104 | <dependency> |
123 | | - <groupId>org.jboss.spec.javax.ejb</groupId> |
124 | | - <artifactId>jboss-ejb-api_3.2_spec</artifactId> |
125 | | - <scope>provided</scope> |
| 105 | + <groupId>org.jboss.spec.javax.ejb</groupId> |
| 106 | + <artifactId>jboss-ejb-api_3.2_spec</artifactId> |
| 107 | + <scope>provided</scope> |
126 | 108 | </dependency> |
127 | 109 |
|
128 | 110 | </dependencies> |
|
132 | 114 | is deployed --> |
133 | 115 | <finalName>${project.artifactId}</finalName> |
134 | 116 | <plugins> |
135 | | - <plugin> |
136 | | - <artifactId>maven-war-plugin</artifactId> |
137 | | - <version>${version.war.plugin}</version> |
138 | | - <configuration> |
139 | | - <!-- Java EE 7 doesn't require web.xml, Maven needs to catch |
140 | | - up! --> |
141 | | - <failOnMissingWebXml>false</failOnMissingWebXml> |
142 | | - </configuration> |
143 | | - </plugin> |
144 | 117 | <!-- WildFly plugin to deploy war --> |
145 | 118 | <plugin> |
146 | 119 | <groupId>org.wildfly.plugins</groupId> |
147 | 120 | <artifactId>wildfly-maven-plugin</artifactId> |
148 | 121 | <version>${version.wildfly.maven.plugin}</version> |
149 | | - </plugin> |
150 | | - <!-- Compiler plugin enforces Java 1.6 compatibility and activates |
151 | | - annotation processors --> |
152 | | - <plugin> |
153 | | - <artifactId>maven-compiler-plugin</artifactId> |
154 | | - <version>${version.compiler.plugin}</version> |
155 | 122 | <configuration> |
156 | | - <source>${maven.compiler.source}</source> |
157 | | - <target>${maven.compiler.target}</target> |
| 123 | + <skip>false</skip> |
158 | 124 | </configuration> |
159 | 125 | </plugin> |
| 126 | + |
160 | 127 | </plugins> |
161 | 128 | </build> |
162 | 129 |
|
|
0 commit comments