OSDN Git Service

00306777e11be2373eeed38d91315ade2123bc92
[spiga-app/vaadin.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3         <modelVersion>4.0.0</modelVersion>
4
5         <groupId>net.korabo.app</groupId>
6         <artifactId>vaadin01</artifactId>
7         <packaging>war</packaging>
8         <version>1.0-SNAPSHOT</version>
9         <name>vaadin01</name>
10
11         <properties>
12                 <vaadin.version>7.6.3</vaadin.version>
13                 <vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>
14                 <jetty.plugin.version>9.2.3.v20140905</jetty.plugin.version>
15                 <project.encoding>UTF-8</project.encoding>
16         </properties>
17
18         <repositories>
19                 <repository>
20                         <id>vaadin-addons</id>
21                         <url>http://maven.vaadin.com/vaadin-addons</url>
22                 </repository>
23                 <repository>
24                         <id>vaadin-snapshots</id>
25                         <url>https://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
26                         <releases>
27                                 <enabled>false</enabled>
28                         </releases>
29                         <snapshots>
30                                 <enabled>true</enabled>
31                         </snapshots>
32                 </repository>
33         </repositories>
34
35         <dependencyManagement>
36                 <dependencies>
37                         <dependency>
38                                 <groupId>com.vaadin</groupId>
39                                 <artifactId>vaadin-bom</artifactId>
40                                 <version>${vaadin.version}</version>
41                                 <type>pom</type>
42                                 <scope>import</scope>
43                         </dependency>
44                 </dependencies>
45         </dependencyManagement>
46
47         <dependencies>
48       <!--<dependency org="javax.servlet.jsp" name="jsp-api" rev="2.2" />-->
49                 <dependency>
50                         <groupId>javax.servlet</groupId>
51                         <artifactId>javax.servlet-api</artifactId>
52                         <version>3.0.1</version>
53                         <scope>provided</scope>
54                 </dependency>
55          <dependency>
56           <groupId>javax.servlet.jsp</groupId>
57           <artifactId>jsp-api</artifactId>
58           <version>2.2</version>
59          </dependency>
60         
61                 <dependency>
62                         <groupId>com.vaadin</groupId>
63                         <artifactId>vaadin-server</artifactId>
64                 </dependency>
65                 <dependency>
66                         <groupId>com.vaadin</groupId>
67                         <artifactId>vaadin-push</artifactId>
68                 </dependency>
69                 <dependency>
70                         <groupId>com.vaadin</groupId>
71                         <artifactId>vaadin-client</artifactId>
72                         <scope>provided</scope>
73                 </dependency>
74                 <!--
75                   Needed when using the widgetset optimizer (custom ConnectorBundleLoaderFactory).
76                   
77                   For widgetset compilation, vaadin-client-compiler is automatically added on the
78                   compilation classpath by vaadin-maven-plugin so normally there is no need for an
79                   explicit dependency.
80                 -->
81                 <!--
82                 <dependency>
83                         <groupId>com.vaadin</groupId>
84                         <artifactId>vaadin-client-compiler</artifactId>
85                         <scope>provided</scope>
86                 </dependency>
87                 -->
88                 <dependency>
89                         <groupId>com.vaadin</groupId>
90                         <artifactId>vaadin-themes</artifactId>
91                 </dependency>
92          <dependency>
93           <groupId>com.orientechnologies</groupId>
94           <artifactId>orientdb-server</artifactId>
95           <version>2.1.7</version>
96          </dependency>
97          <dependency>
98           <groupId>com.orientechnologies</groupId>
99           <artifactId>orientdb-enterprise</artifactId>
100           <version>2.1.7</version>
101          </dependency>
102          <dependency>
103           <groupId>com.orientechnologies</groupId>
104           <artifactId>orientdb-graphdb</artifactId>
105           <version>2.1.7</version>
106          </dependency>
107          <dependency>
108           <groupId>com.orientechnologies</groupId>
109           <artifactId>orientdb-object</artifactId>
110           <version>2.1.7</version>
111          </dependency>
112          <dependency>
113           <groupId>net.korabo.lib</groupId>
114           <artifactId>korabolib</artifactId>
115           <version>1.2.4</version>
116          </dependency>
117          <dependency>
118           <groupId>org.vaadin.addons</groupId>
119           <artifactId>dcharts-widget</artifactId>
120           <version>1.7.0</version>
121           <scope>compile</scope>
122          </dependency>
123       <dependency>
124          <groupId>org.vaadin.addons.lazyquerycontainer</groupId>
125          <artifactId>vaadin-lazyquerycontainer</artifactId>
126          <version>7.6.1.3</version>
127       </dependency>
128         </dependencies>
129
130         <build>
131                 <plugins>
132                         <plugin>
133                                 <groupId>org.apache.maven.plugins</groupId>
134                                 <artifactId>maven-compiler-plugin</artifactId>
135                                 <version>3.3</version>
136                                 <configuration>
137                                         <encoding>${project.encoding}</encoding>
138                                         <source>1.8</source>
139                                         <target>1.8</target>
140                                 </configuration>
141                         </plugin>
142                         <plugin>
143                                 <groupId>org.apache.maven.plugins</groupId>
144                                 <artifactId>maven-resources-plugin</artifactId>
145                                 <version>2.6</version>
146                                 <configuration>
147                                         <encoding>${project.encoding}</encoding>
148                                 </configuration>
149                         </plugin>
150                         <plugin>
151                                 <groupId>org.apache.maven.plugins</groupId>
152                                 <artifactId>maven-war-plugin</artifactId>
153                                 <version>2.3</version>
154                                 <configuration>
155                                         <failOnMissingWebXml>false</failOnMissingWebXml>
156                                         <!-- Exclude some unnecessary files generated by the GWT compiler. -->
157                                         <packagingExcludes>WEB-INF/classes/VAADIN/gwt-unitCache/**,
158                                                 WEB-INF/classes/VAADIN/widgetsets/WEB-INF/**</packagingExcludes>
159                                 </configuration>
160                         </plugin>
161                         <plugin>
162                                 <groupId>com.vaadin</groupId>
163                                 <artifactId>vaadin-maven-plugin</artifactId>
164                                 <version>${vaadin.plugin.version}</version>
165                                 <configuration>
166                                         <extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
167                                         <webappDirectory>${basedir}/target/classes/VAADIN/widgetsets</webappDirectory>
168                                         <draftCompile>false</draftCompile>
169                                         <compileReport>false</compileReport>
170                                         <style>OBF</style>
171                                         <strict>true</strict>
172                                  <runTarget>http://localhost:8888/vaadin01</runTarget>
173                                 </configuration>
174                                 <executions>
175                                         <execution>
176                                                 <goals>
177                                                         <goal>update-theme</goal>
178                                                         <goal>update-widgetset</goal>
179                                                         <goal>compile</goal>
180                                                         <!-- disabled by default to use on-the-fly theme compilation -->
181                                                         <!-- <goal>compile-theme</goal> -->
182                                                 </goals>
183                                         </execution>
184                                 </executions>
185                         </plugin>
186                         <plugin>
187                                 <groupId>org.apache.maven.plugins</groupId>
188                                 <artifactId>maven-source-plugin</artifactId>
189                                 <version>2.4</version>
190                         </plugin>
191                         <plugin>
192                                 <groupId>org.apache.maven.plugins</groupId>
193                                 <artifactId>maven-clean-plugin</artifactId>
194                                 <version>2.6.1</version>
195                                 <!-- Clean up also any pre-compiled themes -->
196                                 <configuration>
197                                         <filesets>
198                                                 <fileset>
199                                                         <directory>src/main/webapp/VAADIN/themes</directory>
200                                                         <includes>
201                                                                 <include>**/styles.css</include>
202                                                                 <include>**/styles.scss.cache</include>
203                                                         </includes>
204                                                 </fileset>
205                                         </filesets>
206                                 </configuration>
207                         </plugin>
208
209                         <!-- The Jetty plugin allows us to easily test the development build by
210                                 running jetty:run on the command line. -->
211                         <plugin>
212                                 <groupId>org.eclipse.jetty</groupId>
213                                 <artifactId>jetty-maven-plugin</artifactId>
214                                 <version>${jetty.plugin.version}</version>
215                                 <configuration>
216                                     <scanIntervalSeconds>2</scanIntervalSeconds>
217                                 </configuration>
218                         </plugin>
219                 </plugins>
220
221                 <pluginManagement>
222                         <plugins>
223                                 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
224                                 <!-- TODO Remove when http://dev.vaadin.com/ticket/14924 is resolved -->
225                                 <plugin>
226                                         <groupId>org.eclipse.m2e</groupId>
227                                         <artifactId>lifecycle-mapping</artifactId>
228                                         <version>1.0.0</version>
229                                         <configuration>
230                                                 <lifecycleMappingMetadata>
231                                                         <pluginExecutions>
232                                                                 <pluginExecution>
233                                                                         <pluginExecutionFilter>
234                                                                                 <groupId>com.vaadin</groupId>
235                                                                                 <artifactId>
236                                                                                         vaadin-maven-plugin
237                                                                                 </artifactId>
238                                                                                 <versionRange>[7.1.11,)</versionRange>
239                                                                                 <goals>
240                                                                                         <goal>resources</goal>
241                                                                                         <goal>update-widgetset</goal>
242                                                                                         <goal>compile</goal>
243                                                                                         <goal>compile-theme</goal>
244                                                                                         <goal>update-theme</goal>
245                                                                                 </goals>
246                                                                         </pluginExecutionFilter>
247                                                                         <action>
248                                                                                 <ignore></ignore>
249                                                                         </action>
250                                                                 </pluginExecution>
251                                                         </pluginExecutions>
252                                                 </lifecycleMappingMetadata>
253                                         </configuration>
254                                 </plugin>
255                         </plugins>
256                 </pluginManagement>
257
258         </build>
259
260         <profiles>
261                 <profile>
262                         <!-- Vaadin pre-release repositories -->
263                         <id>vaadin-prerelease</id>
264                         <activation>
265                                 <activeByDefault>false</activeByDefault>
266                         </activation>
267                         
268                         <repositories>
269                                 <repository>
270                                         <id>vaadin-prereleases</id>
271                                         <url>http://maven.vaadin.com/vaadin-prereleases</url>
272                                 </repository>
273                 <repository>
274                    <id>vaadin-addons</id>
275                    <url>http://maven.vaadin.com/vaadin-addons</url>
276                 </repository>
277                         </repositories>
278                         <pluginRepositories>
279                                 <pluginRepository>
280                                         <id>vaadin-prereleases</id>
281                                         <url>http://maven.vaadin.com/vaadin-prereleases</url>
282                                 </pluginRepository>
283                         </pluginRepositories>
284                 </profile>
285         </profiles>
286
287 </project>