| 1 | <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"> |
|---|
| 2 | <modelVersion>4.0.0</modelVersion> |
|---|
| 3 | <groupId>uk.ac.cardiff.raptor</groupId> |
|---|
| 4 | <artifactId>raptor-ica</artifactId> |
|---|
| 5 | <version>0.2.0-SNAPSHOT</version> |
|---|
| 6 | <name>Raptor Information Collector Agent</name> |
|---|
| 7 | <description> </description> |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | <licenses> |
|---|
| 12 | <license> |
|---|
| 13 | <name>Apache 2</name> |
|---|
| 14 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
|---|
| 15 | <distribution>repo</distribution> |
|---|
| 16 | </license> |
|---|
| 17 | </licenses> |
|---|
| 18 | |
|---|
| 19 | <!-- Adding extra repositories for any other libs, which is hosted on Iam --> |
|---|
| 20 | <repositories> |
|---|
| 21 | <repository> |
|---|
| 22 | <releases> |
|---|
| 23 | <enabled>true</enabled> |
|---|
| 24 | </releases> |
|---|
| 25 | <snapshots> |
|---|
| 26 | <enabled>true</enabled> |
|---|
| 27 | <updatePolicy>always</updatePolicy> |
|---|
| 28 | </snapshots> |
|---|
| 29 | <id>raptor-extras-repo</id> |
|---|
| 30 | <name>Iam Local Maven Repo</name> |
|---|
| 31 | <url>http://iam.cf.ac.uk/nexus-webapp-1.6.0/content/repositories/raptor-extra</url> |
|---|
| 32 | <layout>default</layout> |
|---|
| 33 | </repository> |
|---|
| 34 | <repository> |
|---|
| 35 | <releases> |
|---|
| 36 | <enabled>true</enabled> |
|---|
| 37 | </releases> |
|---|
| 38 | <snapshots> |
|---|
| 39 | <enabled>true</enabled> |
|---|
| 40 | <updatePolicy>always</updatePolicy> |
|---|
| 41 | </snapshots> |
|---|
| 42 | <id>raptor-snapshot-repo</id> |
|---|
| 43 | <name>Iam Local Maven Repo Snapshots</name> |
|---|
| 44 | <url>http://iam.cf.ac.uk/nexus-webapp-1.6.0/content/repositories/raptor-snapshot</url> |
|---|
| 45 | <layout>default</layout> |
|---|
| 46 | </repository> |
|---|
| 47 | <repository> |
|---|
| 48 | <releases> |
|---|
| 49 | <enabled>true</enabled> |
|---|
| 50 | </releases> |
|---|
| 51 | <snapshots> |
|---|
| 52 | <enabled>true</enabled> |
|---|
| 53 | <updatePolicy>always</updatePolicy> |
|---|
| 54 | </snapshots> |
|---|
| 55 | <id>raptor-release-repo</id> |
|---|
| 56 | <name>Iam Local Maven Repo Releases</name> |
|---|
| 57 | <url>http://iam.cf.ac.uk/nexus-webapp-1.6.0/content/repositories/raptor-release</url> |
|---|
| 58 | <layout>default</layout> |
|---|
| 59 | </repository> |
|---|
| 60 | </repositories> |
|---|
| 61 | <!-- done --> |
|---|
| 62 | |
|---|
| 63 | <scm> |
|---|
| 64 | <developerConnection>scm:svn:http://iam.cf.ac.uk/repos/RAPTOR/raptor-ica/trunk</developerConnection> |
|---|
| 65 | <url>http://iam.cf.ac.uk/repos/RAPTOR/raptor-ica</url> |
|---|
| 66 | </scm> |
|---|
| 67 | |
|---|
| 68 | <distributionManagement> |
|---|
| 69 | <repository> |
|---|
| 70 | <uniqueVersion>true</uniqueVersion> |
|---|
| 71 | <id>raptor-release</id> |
|---|
| 72 | <url>http://iam.cf.ac.uk/nexus-webapp-1.6.0/content/repositories/raptor-release</url> |
|---|
| 73 | </repository> |
|---|
| 74 | <snapshotRepository> |
|---|
| 75 | <uniqueVersion>true</uniqueVersion> |
|---|
| 76 | <id>raptor-snapshot</id> |
|---|
| 77 | <url>http://iam.cf.ac.uk/nexus-webapp-1.6.0/content/repositories/raptor-snapshot</url> |
|---|
| 78 | </snapshotRepository> |
|---|
| 79 | </distributionManagement> |
|---|
| 80 | |
|---|
| 81 | <properties> |
|---|
| 82 | <jetty.version>6.1.23</jetty.version> |
|---|
| 83 | <apache.cxf.version>2.2.8</apache.cxf.version> |
|---|
| 84 | <spring.version>3.0.2.RELEASE</spring.version> |
|---|
| 85 | </properties> |
|---|
| 86 | |
|---|
| 87 | |
|---|
| 88 | <dependencies> |
|---|
| 89 | <dependency> |
|---|
| 90 | <groupId>commons-dbcp</groupId> |
|---|
| 91 | <artifactId>commons-dbcp</artifactId> |
|---|
| 92 | <version>1.2.2</version> |
|---|
| 93 | </dependency> |
|---|
| 94 | |
|---|
| 95 | <dependency> |
|---|
| 96 | <groupId>uk.ac.cardiff.raptor</groupId> |
|---|
| 97 | <artifactId>raptor-client</artifactId> |
|---|
| 98 | <version>0.1.6-SNAPSHOT</version> |
|---|
| 99 | </dependency> |
|---|
| 100 | |
|---|
| 101 | <dependency> |
|---|
| 102 | <groupId>uk.ac.cardiff.raptor</groupId> |
|---|
| 103 | <artifactId>raptor-parse</artifactId> |
|---|
| 104 | <version>0.1.5-SNAPSHOT</version> |
|---|
| 105 | </dependency> |
|---|
| 106 | |
|---|
| 107 | |
|---|
| 108 | <!-- CXF --> |
|---|
| 109 | <dependency> |
|---|
| 110 | <groupId>org.apache.cxf</groupId> |
|---|
| 111 | <artifactId>cxf-rt-frontend-jaxws</artifactId> |
|---|
| 112 | <version>${apache.cxf.version}</version> |
|---|
| 113 | <exclusions> |
|---|
| 114 | <exclusion> |
|---|
| 115 | <groupId>asm</groupId> |
|---|
| 116 | <artifactId>asm</artifactId> |
|---|
| 117 | </exclusion> |
|---|
| 118 | </exclusions> |
|---|
| 119 | </dependency> |
|---|
| 120 | <dependency> |
|---|
| 121 | <groupId>org.apache.cxf</groupId> |
|---|
| 122 | <artifactId>cxf-rt-databinding-aegis</artifactId> |
|---|
| 123 | <version>${apache.cxf.version}</version> |
|---|
| 124 | </dependency> |
|---|
| 125 | <dependency> |
|---|
| 126 | <groupId>org.apache.cxf</groupId> |
|---|
| 127 | <artifactId>cxf-rt-transports-http</artifactId> |
|---|
| 128 | <version>${apache.cxf.version}</version> |
|---|
| 129 | </dependency> |
|---|
| 130 | |
|---|
| 131 | |
|---|
| 132 | <!-- SPRING --> |
|---|
| 133 | <dependency> |
|---|
| 134 | <groupId>org.springframework</groupId> |
|---|
| 135 | <artifactId>spring-webmvc</artifactId> |
|---|
| 136 | <version>${spring.version}</version> |
|---|
| 137 | </dependency> |
|---|
| 138 | |
|---|
| 139 | <dependency> |
|---|
| 140 | <groupId>org.springframework</groupId> |
|---|
| 141 | <artifactId>spring-web</artifactId> |
|---|
| 142 | <version>${spring.version}</version> |
|---|
| 143 | </dependency> |
|---|
| 144 | |
|---|
| 145 | |
|---|
| 146 | |
|---|
| 147 | <!-- Various Application Context utilities, including EhCache, JavaMail, |
|---|
| 148 | Quartz, and Freemarker integration Define this if you need any of these integrations --> |
|---|
| 149 | <dependency> |
|---|
| 150 | <groupId>org.springframework</groupId> |
|---|
| 151 | <artifactId>spring-context-support</artifactId> |
|---|
| 152 | <version>${spring.version}</version> |
|---|
| 153 | </dependency> |
|---|
| 154 | |
|---|
| 155 | <dependency> |
|---|
| 156 | <groupId>org.springframework</groupId> |
|---|
| 157 | <artifactId>spring-context</artifactId> |
|---|
| 158 | <version>${spring.version}</version> |
|---|
| 159 | </dependency> |
|---|
| 160 | |
|---|
| 161 | <dependency> |
|---|
| 162 | <groupId>org.springframework</groupId> |
|---|
| 163 | <artifactId>spring-core</artifactId> |
|---|
| 164 | <version>${spring.version}</version> |
|---|
| 165 | </dependency> |
|---|
| 166 | <!-- <dependency> <groupId>org.springframework</groupId> <artifactId>spring-expression</artifactId> |
|---|
| 167 | <version>${spring.version}</version> </dependency> --> |
|---|
| 168 | <dependency> |
|---|
| 169 | <groupId>org.springframework</groupId> |
|---|
| 170 | <artifactId>spring-beans</artifactId> |
|---|
| 171 | <version>${spring.version}</version> |
|---|
| 172 | </dependency> |
|---|
| 173 | |
|---|
| 174 | <dependency> |
|---|
| 175 | <groupId>org.springframework</groupId> |
|---|
| 176 | <artifactId>spring-jdbc</artifactId> |
|---|
| 177 | <version>${spring.version}</version> |
|---|
| 178 | </dependency> |
|---|
| 179 | |
|---|
| 180 | <dependency> |
|---|
| 181 | <groupId>org.springframework</groupId> |
|---|
| 182 | <artifactId>spring-tx</artifactId> |
|---|
| 183 | <version>${spring.version}</version> |
|---|
| 184 | </dependency> |
|---|
| 185 | |
|---|
| 186 | <dependency> |
|---|
| 187 | <groupId>org.springframework</groupId> |
|---|
| 188 | <artifactId>spring-aop</artifactId> |
|---|
| 189 | <version>${spring.version}</version> |
|---|
| 190 | </dependency> |
|---|
| 191 | |
|---|
| 192 | |
|---|
| 193 | <!-- DONE --> |
|---|
| 194 | |
|---|
| 195 | |
|---|
| 196 | <!-- OTHER --> |
|---|
| 197 | <dependency> |
|---|
| 198 | <groupId>junit</groupId> |
|---|
| 199 | <artifactId>junit</artifactId> |
|---|
| 200 | <version>4.8.1</version> |
|---|
| 201 | <scope>test</scope> |
|---|
| 202 | </dependency> |
|---|
| 203 | <dependency> |
|---|
| 204 | <groupId>org.apache.maven.shared</groupId> |
|---|
| 205 | <artifactId>maven-runtime</artifactId> |
|---|
| 206 | <version>1.0-alpha-2</version> |
|---|
| 207 | </dependency> |
|---|
| 208 | <dependency> |
|---|
| 209 | <groupId>org.quartz-scheduler</groupId> |
|---|
| 210 | <artifactId>quartz</artifactId> |
|---|
| 211 | <version>1.8.0</version> |
|---|
| 212 | <exclusions> |
|---|
| 213 | <exclusion> |
|---|
| 214 | <artifactId>slf4j-api</artifactId> |
|---|
| 215 | <groupId>org.slf4j</groupId> |
|---|
| 216 | </exclusion> |
|---|
| 217 | <exclusion> |
|---|
| 218 | <artifactId>slf4j-log4j12</artifactId> |
|---|
| 219 | <groupId>org.slf4j</groupId> |
|---|
| 220 | </exclusion> |
|---|
| 221 | </exclusions> |
|---|
| 222 | </dependency> |
|---|
| 223 | |
|---|
| 224 | |
|---|
| 225 | <dependency> |
|---|
| 226 | <groupId>xerces</groupId> |
|---|
| 227 | <artifactId>xercesImpl</artifactId> |
|---|
| 228 | <version>2.9.1</version> |
|---|
| 229 | </dependency> |
|---|
| 230 | |
|---|
| 231 | |
|---|
| 232 | |
|---|
| 233 | <!-- jetty runtime for standalone deployment --> |
|---|
| 234 | |
|---|
| 235 | <dependency> |
|---|
| 236 | <groupId>org.mortbay.jetty</groupId> |
|---|
| 237 | <artifactId>jetty</artifactId> |
|---|
| 238 | <version>${jetty.version}</version> |
|---|
| 239 | </dependency> |
|---|
| 240 | <dependency> |
|---|
| 241 | <groupId>org.mortbay.jetty</groupId> |
|---|
| 242 | <artifactId>start</artifactId> |
|---|
| 243 | <version>${jetty.version}</version> |
|---|
| 244 | </dependency> |
|---|
| 245 | <dependency> |
|---|
| 246 | <groupId>org.mortbay.jetty</groupId> |
|---|
| 247 | <artifactId>jetty-util</artifactId> |
|---|
| 248 | <version>${jetty.version}</version> |
|---|
| 249 | </dependency> |
|---|
| 250 | |
|---|
| 251 | <dependency> |
|---|
| 252 | <groupId>postgresql</groupId> |
|---|
| 253 | <artifactId>postgresql</artifactId> |
|---|
| 254 | <version>9.0-801.jdbc4</version> |
|---|
| 255 | </dependency> |
|---|
| 256 | |
|---|
| 257 | <dependency> |
|---|
| 258 | <groupId>commons-lang</groupId> |
|---|
| 259 | <artifactId>commons-lang</artifactId> |
|---|
| 260 | <version>2.6</version> |
|---|
| 261 | </dependency> |
|---|
| 262 | </dependencies> |
|---|
| 263 | |
|---|
| 264 | <build> |
|---|
| 265 | <pluginManagement> |
|---|
| 266 | <plugins> |
|---|
| 267 | |
|---|
| 268 | <plugin> |
|---|
| 269 | <groupId>org.apache.maven.plugins</groupId> |
|---|
| 270 | <artifactId>maven-compiler-plugin</artifactId> |
|---|
| 271 | <configuration> |
|---|
| 272 | <source>1.6</source> |
|---|
| 273 | <target>1.6</target> |
|---|
| 274 | </configuration> |
|---|
| 275 | </plugin> |
|---|
| 276 | <plugin> |
|---|
| 277 | <groupId>org.apache.maven.plugins</groupId> |
|---|
| 278 | <artifactId>maven-eclipse-plugin</artifactId> |
|---|
| 279 | <configuration> |
|---|
| 280 | <projectNameTemplate>[artifactId]-[version]</projectNameTemplate> |
|---|
| 281 | <wtpmanifest>true</wtpmanifest> |
|---|
| 282 | <wtpapplicationxml>true</wtpapplicationxml> |
|---|
| 283 | <wtpversion>2.0</wtpversion> |
|---|
| 284 | </configuration> |
|---|
| 285 | </plugin> |
|---|
| 286 | <plugin> |
|---|
| 287 | <groupId>com.google.code.maven-license-plugin</groupId> |
|---|
| 288 | <artifactId>maven-license-plugin</artifactId> |
|---|
| 289 | <version>1.4.0</version> |
|---|
| 290 | </plugin> |
|---|
| 291 | </plugins> |
|---|
| 292 | </pluginManagement> |
|---|
| 293 | <plugins> |
|---|
| 294 | <plugin> |
|---|
| 295 | <artifactId>maven-jar-plugin</artifactId> |
|---|
| 296 | <configuration> |
|---|
| 297 | <finalName>raptor-ica</finalName> <!-- removed -${project.version} --> |
|---|
| 298 | <useUniqueVersions>false</useUniqueVersions> |
|---|
| 299 | <archive> |
|---|
| 300 | <index>true</index> |
|---|
| 301 | <manifest> |
|---|
| 302 | <mainClass> |
|---|
| 303 | uk.ac.cardiff.raptorica.server.RunServer</mainClass> |
|---|
| 304 | <addClasspath>true</addClasspath> |
|---|
| 305 | <classpathPrefix>lib/</classpathPrefix> |
|---|
| 306 | <classpathLayoutType>custom</classpathLayoutType> |
|---|
| 307 | <customClasspathLayout>${artifact.artifactId}-${artifact.baseVersion}${dashClassifier?}.${artifact.extension}</customClasspathLayout> |
|---|
| 308 | </manifest> |
|---|
| 309 | </archive> |
|---|
| 310 | </configuration> |
|---|
| 311 | <dependencies> |
|---|
| 312 | <dependency> |
|---|
| 313 | <groupId>org.apache.maven</groupId> |
|---|
| 314 | <artifactId>maven-archiver</artifactId> |
|---|
| 315 | <version>2.4</version> |
|---|
| 316 | </dependency> |
|---|
| 317 | </dependencies> |
|---|
| 318 | </plugin> |
|---|
| 319 | <plugin> |
|---|
| 320 | <groupId>org.apache.maven.plugins</groupId> |
|---|
| 321 | <artifactId>maven-dependency-plugin</artifactId> |
|---|
| 322 | <executions> |
|---|
| 323 | <execution> |
|---|
| 324 | <id>copy-dependencies</id> |
|---|
| 325 | <phase>package</phase> |
|---|
| 326 | <goals> |
|---|
| 327 | <goal>copy-dependencies</goal> |
|---|
| 328 | </goals> |
|---|
| 329 | <configuration> |
|---|
| 330 | <outputDirectory>${project.build.directory}/lib</outputDirectory> |
|---|
| 331 | <overWriteReleases>false</overWriteReleases> |
|---|
| 332 | <overWriteSnapshots>false</overWriteSnapshots> |
|---|
| 333 | <overWriteIfNewer>true</overWriteIfNewer> |
|---|
| 334 | |
|---|
| 335 | </configuration> |
|---|
| 336 | </execution> |
|---|
| 337 | </executions> |
|---|
| 338 | </plugin> |
|---|
| 339 | <plugin> |
|---|
| 340 | <artifactId>maven-assembly-plugin</artifactId> |
|---|
| 341 | <executions> |
|---|
| 342 | <execution> |
|---|
| 343 | <id>assembly</id> |
|---|
| 344 | <phase>package</phase> |
|---|
| 345 | <goals> |
|---|
| 346 | <goal>assembly</goal> |
|---|
| 347 | </goals> |
|---|
| 348 | <configuration> |
|---|
| 349 | <appendAssemblyId>false</appendAssemblyId> |
|---|
| 350 | <finalName>raptor-ica-${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</finalName> |
|---|
| 351 | <descriptors> |
|---|
| 352 | <descriptor>src/main/resources/package.xml</descriptor> |
|---|
| 353 | </descriptors> |
|---|
| 354 | </configuration> |
|---|
| 355 | </execution> |
|---|
| 356 | </executions> |
|---|
| 357 | </plugin> |
|---|
| 358 | <plugin> |
|---|
| 359 | <groupId>org.codehaus.mojo</groupId> |
|---|
| 360 | <artifactId>appassembler-maven-plugin</artifactId> |
|---|
| 361 | <version>1.1.1</version> |
|---|
| 362 | <configuration> |
|---|
| 363 | <repositoryLayout>flat</repositoryLayout> |
|---|
| 364 | <includeConfigurationDirectoryInClasspath>true</includeConfigurationDirectoryInClasspath> |
|---|
| 365 | <assembleDirectory>${project.build.directory}/default-wrapper</assembleDirectory> |
|---|
| 366 | <configurationDirectory>conf</configurationDirectory> |
|---|
| 367 | <binPrefix>raptor</binPrefix> |
|---|
| 368 | <daemons> |
|---|
| 369 | <daemon> |
|---|
| 370 | <id>ICA</id> |
|---|
| 371 | <mainClass>uk.ac.cardiff.raptorica.server.RunServer</mainClass> |
|---|
| 372 | <commandLineArguments> |
|---|
| 373 | <commandLineArgument>start</commandLineArgument> |
|---|
| 374 | </commandLineArguments> |
|---|
| 375 | <platforms> |
|---|
| 376 | <platform>jsw</platform> |
|---|
| 377 | </platforms> |
|---|
| 378 | </daemon> |
|---|
| 379 | </daemons> |
|---|
| 380 | </configuration> |
|---|
| 381 | <executions> |
|---|
| 382 | <execution> |
|---|
| 383 | <id>generate-jsw-scripts</id> |
|---|
| 384 | <phase>package</phase> |
|---|
| 385 | <goals> |
|---|
| 386 | <goal>generate-daemons</goal> |
|---|
| 387 | </goals> |
|---|
| 388 | </execution> |
|---|
| 389 | </executions> |
|---|
| 390 | </plugin> |
|---|
| 391 | |
|---|
| 392 | <plugin> |
|---|
| 393 | <groupId>org.codehaus.mojo</groupId> |
|---|
| 394 | <artifactId>build-helper-maven-plugin</artifactId> |
|---|
| 395 | <version>1.5</version> |
|---|
| 396 | <executions> |
|---|
| 397 | <execution> |
|---|
| 398 | <id>parse-version</id> |
|---|
| 399 | <goals> |
|---|
| 400 | <goal>parse-version</goal> |
|---|
| 401 | </goals> |
|---|
| 402 | </execution> |
|---|
| 403 | </executions> |
|---|
| 404 | </plugin> |
|---|
| 405 | <plugin> |
|---|
| 406 | <artifactId>maven-release-plugin</artifactId> |
|---|
| 407 | <version>2.0</version> |
|---|
| 408 | <configuration> |
|---|
| 409 | <username>philsmart</username> |
|---|
| 410 | <password>nv75hh</password> |
|---|
| 411 | <tagBase> |
|---|
| 412 | http://iam.cf.ac.uk/repos/RAPTOR/raptor-ica/tags |
|---|
| 413 | </tagBase> |
|---|
| 414 | <providerImplementations> |
|---|
| 415 | <svn>javasvn</svn> |
|---|
| 416 | </providerImplementations> |
|---|
| 417 | </configuration> |
|---|
| 418 | <dependencies> |
|---|
| 419 | <dependency> |
|---|
| 420 | <groupId>com.google.code.maven-scm-provider-svnjava</groupId> |
|---|
| 421 | <artifactId>maven-scm-provider-svnjava</artifactId> |
|---|
| 422 | <version>1.10</version> |
|---|
| 423 | </dependency> |
|---|
| 424 | </dependencies> |
|---|
| 425 | </plugin> |
|---|
| 426 | <plugin> |
|---|
| 427 | <groupId>com.google.code.maven-license-plugin</groupId> |
|---|
| 428 | <artifactId>maven-license-plugin</artifactId> |
|---|
| 429 | <version>1.4.0</version> |
|---|
| 430 | <configuration> |
|---|
| 431 | <includes> |
|---|
| 432 | <include>src/**</include> |
|---|
| 433 | <include>**/test/**</include> |
|---|
| 434 | </includes> |
|---|
| 435 | <excludes> |
|---|
| 436 | <exclude>target/**</exclude> |
|---|
| 437 | <exclude>.clover/**</exclude> |
|---|
| 438 | </excludes> |
|---|
| 439 | <header>src/main/resources/license-apache</header> |
|---|
| 440 | <properties> |
|---|
| 441 | <year>2010</year> |
|---|
| 442 | <email>smartp@cf.ac.uk</email> |
|---|
| 443 | <name>Cardiff University, Wales</name> |
|---|
| 444 | </properties> |
|---|
| 445 | </configuration> |
|---|
| 446 | <executions> |
|---|
| 447 | <execution> |
|---|
| 448 | <goals> |
|---|
| 449 | <goal>check</goal> |
|---|
| 450 | </goals> |
|---|
| 451 | </execution> |
|---|
| 452 | </executions> |
|---|
| 453 | </plugin> |
|---|
| 454 | |
|---|
| 455 | <!-- PLUGIN to COPY correct directories into the target directory for |
|---|
| 456 | packaging --> |
|---|
| 457 | <plugin> |
|---|
| 458 | <artifactId>maven-resources-plugin</artifactId> |
|---|
| 459 | <version>2.5</version> |
|---|
| 460 | <executions> |
|---|
| 461 | <execution> |
|---|
| 462 | <id>copy-resources-conf-default</id> |
|---|
| 463 | <!-- here the phase you need --> |
|---|
| 464 | <phase>prepare-package</phase> |
|---|
| 465 | <goals> |
|---|
| 466 | <goal>copy-resources</goal> |
|---|
| 467 | </goals> |
|---|
| 468 | <configuration> |
|---|
| 469 | <outputDirectory>${basedir}/target/conf-default</outputDirectory> |
|---|
| 470 | <resources> |
|---|
| 471 | <resource> |
|---|
| 472 | <directory>src/main/conf-default</directory> |
|---|
| 473 | <filtering>true</filtering> |
|---|
| 474 | </resource> |
|---|
| 475 | </resources> |
|---|
| 476 | </configuration> |
|---|
| 477 | </execution> |
|---|
| 478 | </executions> |
|---|
| 479 | </plugin> |
|---|
| 480 | <plugin> |
|---|
| 481 | <artifactId>maven-resources-plugin</artifactId> |
|---|
| 482 | <version>2.5</version> |
|---|
| 483 | <executions> |
|---|
| 484 | <execution> |
|---|
| 485 | <id>copy-resources-bin</id> |
|---|
| 486 | <!-- here the phase you need --> |
|---|
| 487 | <phase>prepare-package</phase> |
|---|
| 488 | <goals> |
|---|
| 489 | <goal>copy-resources</goal> |
|---|
| 490 | </goals> |
|---|
| 491 | <configuration> |
|---|
| 492 | <outputDirectory>${basedir}/target/bin</outputDirectory> |
|---|
| 493 | <resources> |
|---|
| 494 | <resource> |
|---|
| 495 | <directory>src/main/bin</directory> |
|---|
| 496 | <filtering>true</filtering> |
|---|
| 497 | </resource> |
|---|
| 498 | </resources> |
|---|
| 499 | </configuration> |
|---|
| 500 | </execution> |
|---|
| 501 | </executions> |
|---|
| 502 | </plugin> |
|---|
| 503 | <plugin> |
|---|
| 504 | <artifactId>maven-resources-plugin</artifactId> |
|---|
| 505 | <version>2.5</version> |
|---|
| 506 | <executions> |
|---|
| 507 | <execution> |
|---|
| 508 | <id>copy-resources-keys</id> |
|---|
| 509 | <!-- here the phase you need --> |
|---|
| 510 | <phase>prepare-package</phase> |
|---|
| 511 | <goals> |
|---|
| 512 | <goal>copy-resources</goal> |
|---|
| 513 | </goals> |
|---|
| 514 | <configuration> |
|---|
| 515 | <outputDirectory>${basedir}/target/keys</outputDirectory> |
|---|
| 516 | <resources> |
|---|
| 517 | <resource> |
|---|
| 518 | <directory>src/main/keys</directory> |
|---|
| 519 | <filtering>true</filtering> |
|---|
| 520 | </resource> |
|---|
| 521 | </resources> |
|---|
| 522 | </configuration> |
|---|
| 523 | </execution> |
|---|
| 524 | </executions> |
|---|
| 525 | </plugin> |
|---|
| 526 | <plugin> |
|---|
| 527 | <artifactId>maven-resources-plugin</artifactId> |
|---|
| 528 | <version>2.5</version> |
|---|
| 529 | <executions> |
|---|
| 530 | <execution> |
|---|
| 531 | <id>copy-resources-conf</id> |
|---|
| 532 | <!-- here the phase you need --> |
|---|
| 533 | <phase>prepare-package</phase> |
|---|
| 534 | <goals> |
|---|
| 535 | <goal>copy-resources</goal> |
|---|
| 536 | </goals> |
|---|
| 537 | <configuration> |
|---|
| 538 | <outputDirectory>${basedir}/target/conf</outputDirectory> |
|---|
| 539 | <resources> |
|---|
| 540 | <resource> |
|---|
| 541 | <directory>src/main/config</directory> |
|---|
| 542 | <filtering>true</filtering> |
|---|
| 543 | </resource> |
|---|
| 544 | </resources> |
|---|
| 545 | </configuration> |
|---|
| 546 | </execution> |
|---|
| 547 | </executions> |
|---|
| 548 | </plugin> |
|---|
| 549 | |
|---|
| 550 | <!-- PLUGIN to COPY correct directories into the target directory for |
|---|
| 551 | packaging...DONE --> |
|---|
| 552 | |
|---|
| 553 | </plugins> |
|---|
| 554 | |
|---|
| 555 | </build> |
|---|
| 556 | </project> |
|---|