1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | |
---|
3 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
---|
4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|
5 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" |
---|
6 | > |
---|
7 | |
---|
8 | <modelVersion>4.0.0</modelVersion> |
---|
9 | |
---|
10 | <groupId>eu.clarin.cmdi</groupId> |
---|
11 | |
---|
12 | <artifactId>vlo_web_app</artifactId> |
---|
13 | |
---|
14 | <version>2.18</version> |
---|
15 | |
---|
16 | <packaging>war</packaging> |
---|
17 | |
---|
18 | <name>vlo_web_app</name> |
---|
19 | |
---|
20 | <properties> |
---|
21 | <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir> |
---|
22 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
---|
23 | <netbeans.hint.deploy.server>Tomcat</netbeans.hint.deploy.server> |
---|
24 | </properties> |
---|
25 | |
---|
26 | <dependencies> |
---|
27 | <dependency> |
---|
28 | <groupId>org.apache.wicket</groupId> |
---|
29 | <artifactId>wicket-core</artifactId> |
---|
30 | <version>6.12.0</version> |
---|
31 | </dependency> |
---|
32 | <dependency> |
---|
33 | <groupId>org.apache.wicket</groupId> |
---|
34 | <artifactId>wicket-extensions</artifactId> |
---|
35 | <version>6.8.0</version> |
---|
36 | <type>jar</type> |
---|
37 | </dependency> |
---|
38 | <dependency> |
---|
39 | <groupId>org.mortbay.jetty</groupId> |
---|
40 | <artifactId>jetty</artifactId> |
---|
41 | <version>6.1.4</version> |
---|
42 | <scope>test</scope> |
---|
43 | </dependency> |
---|
44 | <dependency> |
---|
45 | <groupId>eu.clarin.cmdi</groupId> |
---|
46 | <artifactId>vlo_importer</artifactId> |
---|
47 | <version>2.18</version> |
---|
48 | <type>jar</type> |
---|
49 | </dependency> |
---|
50 | <dependency> |
---|
51 | <groupId>javax</groupId> |
---|
52 | <artifactId>javaee-web-api</artifactId> |
---|
53 | <version>6.0</version> |
---|
54 | <scope>provided</scope> |
---|
55 | </dependency> |
---|
56 | <dependency> |
---|
57 | <groupId>junit</groupId> |
---|
58 | <artifactId>junit</artifactId> |
---|
59 | <version>4.10</version> |
---|
60 | <scope>test</scope> |
---|
61 | <type>jar</type> |
---|
62 | </dependency> |
---|
63 | |
---|
64 | </dependencies> |
---|
65 | |
---|
66 | <build> |
---|
67 | <resources> |
---|
68 | <resource> |
---|
69 | <directory>src/main/java</directory> |
---|
70 | <excludes> |
---|
71 | <!-- Exclude java source files because they are not needed |
---|
72 | in the archive. --> |
---|
73 | <exclude>**/*.java</exclude> |
---|
74 | </excludes> |
---|
75 | </resource> |
---|
76 | <resource> |
---|
77 | <!-- Include vlo importer resources in the WEB-INF/classes |
---|
78 | directory. Including a source is not the same thing as |
---|
79 | depending on it. When you depend on a source, it only needs |
---|
80 | to be in the location specified, it |
---|
81 | will not be included however. |
---|
82 | --> |
---|
83 | <directory>../vlo_importer/src/main/resources</directory> |
---|
84 | <includes> |
---|
85 | <include>cmdi2xhtml.xsl</include> |
---|
86 | </includes> |
---|
87 | </resource> |
---|
88 | </resources> |
---|
89 | |
---|
90 | <plugins> |
---|
91 | <plugin> |
---|
92 | <groupId>org.apache.maven.plugins</groupId> |
---|
93 | <artifactId>maven-compiler-plugin</artifactId> |
---|
94 | <version>2.3.2</version> |
---|
95 | <configuration> |
---|
96 | <source>1.6</source> |
---|
97 | <target>1.6</target> |
---|
98 | <compilerArguments> |
---|
99 | <endorseddirs>${endorsed.dir}</endorseddirs> |
---|
100 | </compilerArguments> |
---|
101 | </configuration> |
---|
102 | </plugin> |
---|
103 | |
---|
104 | <plugin> |
---|
105 | <!-- Add the remote resources plugin to let de web application |
---|
106 | depend on the cmdi2xhtml.xml file from the vlo_importer |
---|
107 | module. For more information on this plugin, please refer |
---|
108 | the Apache Maven Project website |
---|
109 | --> |
---|
110 | <groupId>org.apache.maven.plugins</groupId> |
---|
111 | <artifactId>maven-remote-resources-plugin</artifactId> |
---|
112 | <version>1.4</version> |
---|
113 | <configuration> |
---|
114 | <resourceBundles> |
---|
115 | <resourceBundle>eu.clarin.cmdi:vlo_importer:${project.version}</resourceBundle> |
---|
116 | </resourceBundles> |
---|
117 | </configuration> |
---|
118 | <executions> |
---|
119 | <execution> |
---|
120 | <goals> |
---|
121 | <goal>process</goal> |
---|
122 | </goals> |
---|
123 | </execution> |
---|
124 | </executions> |
---|
125 | </plugin> |
---|
126 | |
---|
127 | <plugin> |
---|
128 | <groupId>org.apache.maven.plugins</groupId> |
---|
129 | <artifactId>maven-war-plugin</artifactId> |
---|
130 | <version>2.1.1</version> |
---|
131 | <configuration> |
---|
132 | <failOnMissingWebXml>false</failOnMissingWebXml> |
---|
133 | |
---|
134 | <!-- Add the cmdi2xhtml file from the vlo_importer module |
---|
135 | to the web application archive file. Please note that |
---|
136 | because of this the archive the file it is in will be |
---|
137 | included in its entirety. Please note that the file |
---|
138 | will not show up in the web application module in the |
---|
139 | Netbeans IDE. |
---|
140 | --> |
---|
141 | |
---|
142 | <srcFiles> |
---|
143 | <srcFile>${project.build.directory}/src/main/resources/cmdi2xhtml.xsl</srcFile> |
---|
144 | </srcFiles> |
---|
145 | </configuration> |
---|
146 | </plugin> |
---|
147 | |
---|
148 | <plugin> |
---|
149 | <groupId>org.apache.maven.plugins</groupId> |
---|
150 | <artifactId>maven-dependency-plugin</artifactId> |
---|
151 | <version>2.1</version> |
---|
152 | <executions> |
---|
153 | <execution> |
---|
154 | <phase>validate</phase> |
---|
155 | <goals> |
---|
156 | <goal>copy</goal> |
---|
157 | </goals> |
---|
158 | <configuration> |
---|
159 | <outputDirectory>${endorsed.dir}</outputDirectory> |
---|
160 | <silent>true</silent> |
---|
161 | <artifactItems> |
---|
162 | <artifactItem> |
---|
163 | <groupId>javax</groupId> |
---|
164 | <artifactId>javaee-endorsed-api</artifactId> |
---|
165 | <version>6.0</version> |
---|
166 | <type>jar</type> |
---|
167 | </artifactItem> |
---|
168 | </artifactItems> |
---|
169 | </configuration> |
---|
170 | </execution> |
---|
171 | </executions> |
---|
172 | </plugin> |
---|
173 | |
---|
174 | <plugin> |
---|
175 | <artifactId>maven-assembly-plugin</artifactId> |
---|
176 | <version>2.3</version> |
---|
177 | <configuration> |
---|
178 | <descriptors> |
---|
179 | <descriptor>src/main/assembly/buildwar.xml</descriptor> |
---|
180 | </descriptors> |
---|
181 | </configuration> |
---|
182 | <executions> |
---|
183 | <execution> |
---|
184 | <id>make-assemblyJ</id> |
---|
185 | <phase>package</phase> |
---|
186 | <goals> |
---|
187 | <goal>single</goal> |
---|
188 | </goals> |
---|
189 | </execution> |
---|
190 | </executions> |
---|
191 | </plugin> |
---|
192 | </plugins> |
---|
193 | |
---|
194 | </build> |
---|
195 | </project> |
---|