Website-Inhalt und -Styling in ein Frontend-Projekt ausgelagert
[website] / 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>branding</artifactId>
9   <name>Juplo - branding</name>
10   <version>1.0-SNAPSHOT</version>
11   <packaging>war</packaging>
12   <url>http://www.juplo.de/branding</url>
13
14
15   <prerequisites>
16     <maven>2.0.6</maven>
17   </prerequisites>
18
19
20   <scm>
21     <connection>scm:git:http://juplo.de/git/branding</connection>
22     <developerConnection>scm:git:ssh://juplo.de:/var/lib/git/juplo/branding</developerConnection>
23     <url>http://juplo.de/gitweb/?p=branding;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     <jsp-api.version>2.2.1</jsp-api.version>
43     <jstl.version>1.2</jstl.version>
44     <servlet-api.version>3.0.1</servlet-api.version>
45     <slf4j.version>1.6.1</slf4j.version>
46     <springframework.version>4.0.6.RELEASE</springframework.version>
47     <thymeleaf.version>2.1.3.RELEASE</thymeleaf.version>
48     <thymeleaf-layout-dialect.version>1.2.5</thymeleaf-layout-dialect.version>
49     <thymeleaf-extras-conditionalcomments.version>2.1.1.RELEASE</thymeleaf-extras-conditionalcomments.version>
50
51   </properties>
52
53
54   <dependencies>
55
56     <!-- Spring -->
57     <dependency>
58       <groupId>org.springframework</groupId>
59       <artifactId>spring-webmvc</artifactId>
60       <version>${springframework.version}</version>
61       <exclusions>
62         <exclusion>
63             <groupId>commons-logging</groupId>
64             <artifactId>commons-logging</artifactId>
65         </exclusion>
66       </exclusions>
67     </dependency>
68
69     <!-- Thymeleaf -->
70     <dependency>
71       <groupId>org.thymeleaf</groupId>
72       <artifactId>thymeleaf</artifactId>
73       <version>${thymeleaf.version}</version>
74       <scope>runtime</scope>
75     </dependency>
76     <dependency>
77       <groupId>org.thymeleaf</groupId>
78       <artifactId>thymeleaf-spring4</artifactId>
79       <version>${thymeleaf.version}</version>
80       <scope>runtime</scope>
81     </dependency>
82     <dependency>
83       <groupId>nz.net.ultraq.thymeleaf</groupId>
84       <artifactId>thymeleaf-layout-dialect</artifactId>
85       <version>${thymeleaf-layout-dialect.version}</version>
86       <scope>runtime</scope>
87     </dependency>
88     <dependency>
89       <groupId>org.thymeleaf.extras</groupId>
90       <artifactId>thymeleaf-extras-conditionalcomments</artifactId>
91       <version>${thymeleaf-extras-conditionalcomments.version}</version>
92       <scope>runtime</scope>
93     </dependency>
94
95     <!-- Servlet -->
96     <dependency>
97       <groupId>javax.servlet</groupId>
98       <artifactId>javax.servlet-api</artifactId>
99       <version>${servlet-api.version}</version>
100       <scope>provided</scope>
101     </dependency>
102     <dependency>
103       <groupId>javax.servlet.jsp</groupId>
104       <artifactId>javax.servlet.jsp-api</artifactId>
105       <version>${jsp-api.version}</version>
106       <scope>provided</scope>
107     </dependency>
108     <dependency>
109       <groupId>javax.servlet</groupId>
110       <artifactId>jstl</artifactId>
111       <version>${jstl.version}</version>
112       <scope>runtime</scope>
113     </dependency>
114
115     <!-- Logging -->
116     <dependency>
117       <groupId>org.slf4j</groupId>
118       <artifactId>slf4j-api</artifactId>
119       <version>${slf4j.version}</version>
120     </dependency>
121     <dependency>
122       <groupId>org.slf4j</groupId>
123       <artifactId>slf4j-log4j12</artifactId>
124       <version>${slf4j.version}</version>
125       <scope>runtime</scope>
126     </dependency>
127     <dependency>
128       <groupId>org.slf4j</groupId>
129       <artifactId>jcl-over-slf4j</artifactId>
130       <version>${slf4j.version}</version>
131       <scope>runtime</scope>
132     </dependency>
133
134   </dependencies>
135
136
137   <distributionManagement>
138     <repository>
139       <id>juplo.internal</id>
140       <name>Internal Release Repository</name>
141       <url>http://juplo.de/archiva/repository/internal/</url>
142     </repository>
143     <snapshotRepository>
144       <id>juplo.snapshots</id>
145       <name>Internal Snapshot Repository</name>
146       <url>http://juplo.de/archiva/repository/snapshots/</url>
147     </snapshotRepository>
148   </distributionManagement>
149
150
151   <build>
152     <finalName>branding</finalName>
153     <plugins>
154       <plugin>
155         <groupId>org.apache.maven.plugins</groupId>
156         <artifactId>maven-compiler-plugin</artifactId>
157         <configuration>
158           <source>1.6</source>
159           <target>1.6</target>
160           <encoding>utf8</encoding>
161           <showWarnings>true</showWarnings>
162         </configuration>
163       </plugin>
164       <plugin>
165         <artifactId>maven-war-plugin</artifactId>
166         <configuration>
167           <webResources>
168             <resource>
169               <directory>src/main/frontend/dist</directory>
170             </resource>
171           </webResources>
172         </configuration>
173       </plugin>
174       <plugin>
175         <groupId>org.apache.maven.plugins</groupId>
176         <artifactId>maven-source-plugin</artifactId>
177         <executions>
178           <execution>
179             <id>attach-sources</id>
180             <phase>verify</phase>
181             <goals>
182               <goal>jar</goal>
183             </goals>
184           </execution>
185         </executions>
186       </plugin>
187       <plugin>
188         <groupId>org.eclipse.jetty</groupId>
189         <artifactId>jetty-maven-plugin</artifactId>
190         <configuration>
191           <webApp>
192             <resourceBases>
193               <resourceBase>src/main/frontend/dist</resourceBase>
194               <resourceBase>src/main/webapp</resourceBase>
195             </resourceBases>
196           </webApp>
197           <useTestScope>true</useTestScope>
198         </configuration>
199       </plugin>
200       <plugin>
201         <groupId>org.codehaus.mojo</groupId>
202         <artifactId>tomcat-maven-plugin</artifactId>
203         <version>1.1</version>
204         <configuration>
205           <path>/</path>
206           <uriEncoding>UTF-8</uriEncoding>
207         </configuration>
208       </plugin>
209       <plugin>
210         <groupId>com.google.appengine</groupId>
211         <artifactId>appengine-maven-plugin</artifactId>
212         <version>1.8.2</version>
213       </plugin>
214       <plugin>
215         <groupId>com.github.eirslett</groupId>
216         <artifactId>frontend-maven-plugin</artifactId>
217         <version>0.0.25</version>
218         <executions>
219           <execution>
220             <id>install node and npm</id>
221             <goals>
222               <goal>install-node-and-npm</goal>
223             </goals>
224             <configuration>
225               <nodeVersion>v0.10.18</nodeVersion>
226               <npmVersion>1.3.8</npmVersion>
227             </configuration>
228           </execution>
229           <execution>
230             <id>npm install</id>
231             <goals>
232               <goal>npm</goal>
233             </goals>
234           </execution>
235           <execution>
236             <id>grunt build</id>
237             <goals>
238               <goal>grunt</goal>
239             </goals>
240           </execution>
241         </executions>
242       </plugin>
243     </plugins>
244   </build>
245
246
247   <reporting>
248     <plugins>
249       <plugin>
250         <artifactId>maven-changes-plugin</artifactId>
251       </plugin>
252       <plugin>
253         <artifactId>maven-javadoc-plugin</artifactId>
254       </plugin>
255       <plugin>
256         <artifactId>maven-jxr-plugin</artifactId>
257       </plugin>
258       <plugin>
259         <artifactId>maven-surefire-report-plugin</artifactId>
260       </plugin>
261       <plugin>
262         <artifactId>maven-scm-plugin</artifactId>
263         <configuration>
264           <goals>install</goals>
265         </configuration>
266       </plugin>
267     </plugins>
268   </reporting>
269
270 </project>