Integration of the Grunt-Frontend- with the Maven-Backend-Project
[examples/maven-grunt-integration] / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
4   <modelVersion>4.0.0</modelVersion>
5
6
7   <groupId>de.juplo</groupId>
8   <artifactId>maven-grunt-integration</artifactId>
9   <name>Juplo - Example Integration of Maven and Grunt</name>
10   <version>2.0.0</version>
11   <packaging>war</packaging>
12   <url>http://www.juplo.de/maven-grunt-integration</url>
13
14
15   <prerequisites>
16     <maven>3.0.0</maven>
17   </prerequisites>
18
19
20   <scm>
21     <connection>scm:git:http://juplo.de/git/maven-grunt-integration</connection>
22     <developerConnection>scm:git:ssh://juplo.de:/var/lib/git/juplo/maven-grunt-integration</developerConnection>
23     <url>http://juplo.de/gitweb/?p=maven-grunt-integration;a=summary</url>
24   </scm>
25
26
27   <developers>
28     <developer>
29       <id>kai</id>
30       <name>Kai Moritz</name>
31       <email>kai@juplo.de</email>
32     </developer>
33   </developers>
34
35
36   <properties>
37
38     <!-- Zeichensatz -->
39     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40
41     <!-- Verwendete Versionen -->
42     <servlet-api.version>3.1.0</servlet-api.version>
43     <slf4j.version>1.7.12</slf4j.version>
44     <springframework.version>4.2.0.RELEASE</springframework.version>
45     <thymeleaf.version>2.1.4.RELEASE</thymeleaf.version>
46     <thymeleaf-layout-dialect.version>1.2.9</thymeleaf-layout-dialect.version>
47
48   </properties>
49
50
51   <dependencies>
52
53     <!-- Spring -->
54     <dependency>
55       <groupId>org.springframework</groupId>
56       <artifactId>spring-webmvc</artifactId>
57       <version>${springframework.version}</version>
58     </dependency>
59
60     <!-- Thymeleaf -->
61     <dependency>
62       <groupId>org.thymeleaf</groupId>
63       <artifactId>thymeleaf</artifactId>
64       <version>${thymeleaf.version}</version>
65       <scope>runtime</scope>
66     </dependency>
67     <dependency>
68       <groupId>org.thymeleaf</groupId>
69       <artifactId>thymeleaf-spring4</artifactId>
70       <version>${thymeleaf.version}</version>
71       <scope>runtime</scope>
72     </dependency>
73     <dependency>
74       <groupId>nz.net.ultraq.thymeleaf</groupId>
75       <artifactId>thymeleaf-layout-dialect</artifactId>
76       <version>${thymeleaf-layout-dialect.version}</version>
77       <scope>runtime</scope>
78     </dependency>
79
80     <!-- Servlet -->
81     <dependency>
82       <groupId>javax.servlet</groupId>
83       <artifactId>javax.servlet-api</artifactId>
84       <version>${servlet-api.version}</version>
85       <scope>provided</scope>
86     </dependency>
87
88     <!-- Logging -->
89     <dependency>
90       <groupId>org.slf4j</groupId>
91       <artifactId>slf4j-api</artifactId>
92       <version>${slf4j.version}</version>
93     </dependency>
94     <dependency>
95       <groupId>org.slf4j</groupId>
96       <artifactId>slf4j-log4j12</artifactId>
97       <version>${slf4j.version}</version>
98       <scope>runtime</scope>
99     </dependency>
100     <dependency>
101       <groupId>org.slf4j</groupId>
102       <artifactId>jcl-over-slf4j</artifactId>
103       <version>${slf4j.version}</version>
104       <scope>runtime</scope>
105     </dependency>
106
107   </dependencies>
108
109
110   <distributionManagement>
111     <repository>
112       <id>juplo.internal</id>
113       <name>Internal Release Repository</name>
114       <url>http://juplo.de/archiva/repository/internal/</url>
115     </repository>
116     <snapshotRepository>
117       <id>juplo.snapshots</id>
118       <name>Internal Snapshot Repository</name>
119       <url>http://juplo.de/archiva/repository/snapshots/</url>
120     </snapshotRepository>
121   </distributionManagement>
122
123
124   <build>
125     <plugins>
126       <plugin>
127         <groupId>org.apache.maven.plugins</groupId>
128         <artifactId>maven-compiler-plugin</artifactId>
129         <version>3.3</version>
130         <configuration>
131           <source>1.7</source>
132           <target>1.7</target>
133           <encoding>utf8</encoding>
134           <showWarnings>true</showWarnings>
135         </configuration>
136       </plugin>
137       <plugin>
138         <groupId>org.apache.maven.plugins</groupId>
139         <artifactId>maven-war-plugin</artifactId>
140         <version>2.6</version>
141         <configuration>
142           <webResources>
143             <resource>
144               <directory>src/main/frontend/dist</directory>
145             </resource>
146           </webResources>
147         </configuration>
148       </plugin>
149       <plugin>
150         <groupId>org.apache.maven.plugins</groupId>
151         <artifactId>maven-source-plugin</artifactId>
152         <version>2.4</version>
153         <executions>
154           <execution>
155             <id>attach-sources</id>
156             <phase>verify</phase>
157             <goals>
158               <goal>jar</goal>
159             </goals>
160           </execution>
161         </executions>
162       </plugin>
163       <plugin>
164         <groupId>org.eclipse.jetty</groupId>
165         <artifactId>jetty-maven-plugin</artifactId>
166         <version>9.2.13.v20150730</version>
167         <configuration>
168           <webApp>
169             <resourceBases>
170               <resourceBase>src/main/frontend/dist</resourceBase>
171               <resourceBase>src/main/webapp</resourceBase>
172             </resourceBases>
173           </webApp>
174           <useTestScope>true</useTestScope>
175         </configuration>
176       </plugin>
177       <plugin>
178         <groupId>com.github.eirslett</groupId>
179         <artifactId>frontend-maven-plugin</artifactId>
180         <version>0.0.24</version>
181         <executions>
182           <execution>
183             <id>install node and npm</id>
184             <goals>
185               <goal>install-node-and-npm</goal>
186             </goals>
187             <configuration>
188               <nodeVersion>v0.10.18</nodeVersion>
189               <npmVersion>1.3.8</npmVersion>
190             </configuration>
191           </execution>
192           <execution>
193             <id>npm install</id>
194             <goals>
195               <goal>npm</goal>
196             </goals>
197           </execution>
198           <execution>
199             <id>grunt build</id>
200             <goals>
201               <goal>grunt</goal>
202             </goals>
203           </execution>
204         </executions>
205       </plugin>
206     </plugins>
207   </build>
208
209
210   <reporting>
211     <plugins>
212       <plugin>
213         <groupId>org.apache.maven.plugins</groupId>
214         <artifactId>maven-changes-plugin</artifactId>
215         <version>2.11</version>
216       </plugin>
217       <plugin>
218         <groupId>org.apache.maven.plugins</groupId>
219         <artifactId>maven-javadoc-plugin</artifactId>
220         <version>2.10.3</version>
221       </plugin>
222       <plugin>
223         <groupId>org.apache.maven.plugins</groupId>
224         <artifactId>maven-jxr-plugin</artifactId>
225         <version>2.5</version>
226       </plugin>
227       <plugin>
228         <groupId>org.apache.maven.plugins</groupId>
229         <artifactId>maven-surefire-report-plugin</artifactId>
230         <version>2.18.1</version>
231       </plugin>
232       <plugin>
233         <groupId>org.apache.maven.plugins</groupId>
234         <artifactId>maven-scm-plugin</artifactId>
235         <version>1.9.4</version>
236         <configuration>
237           <goals>install</goals>
238         </configuration>
239       </plugin>
240     </plugins>
241   </reporting>
242
243 </project>