-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpom.xml
More file actions
148 lines (148 loc) · 6.28 KB
/
pom.xml
File metadata and controls
148 lines (148 loc) · 6.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<!-- inherit from james parent POM -->
<parent>
<groupId>org.jamesframework</groupId>
<artifactId>james</artifactId>
<version>1.2</version>
</parent>
<!-- james examples specifications -->
<artifactId>james-examples</artifactId>
<version>1.2.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>james-examples</name>
<description>
The JAMES examples module is part of the JAMES framework for discrete optimization
using local search metaheuristics in Java. It provides a series of example problem
implementations where different algorithms are applied to obtain solutions.
</description>
<scm>
<connection>scm:git:git@github.com:hdbeukel/james-examples.git</connection>
<developerConnection>scm:git:git@github.com:hdbeukel/james-examples.git</developerConnection>
<url>https://github.com/hdbeukel/james-examples</url>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<!-- assemblies -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<executions>
<!-- jar with dependencies -->
<execution>
<id>make-jar-with-dependencies</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/assemble/jar-with-dependencies.xml</descriptor>
</descriptors>
<archive>
<manifest>
<mainClass>org.jamesframework.examples.Main</mainClass>
</manifest>
</archive>
</configuration>
</execution>
<!-- ZIP package (binaries) for distribution -->
<execution>
<id>make-zip</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/assemble/bin.xml</descriptor>
</descriptors>
<finalName>james-examples-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>
<!-- attach ant tasks to maven phases -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>package</phase>
<configuration>
<target>
<!-- copy jar with dependencies to bin directory after packaging -->
<copy
file="${project.build.directory}/${project.artifactId}-${project.version}-jar-with-dependencies.jar"
tofile="bin/james-examples.jar"
/>
<!-- copy binary distribution (ZIP) to dist directory after packaging -->
<copy
file="${project.build.directory}/james-examples-${project.version}.zip"
todir="dist"
/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- extend clean phase -->
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<configuration>
<filesets>
<!-- remove contents of bin directory -->
<fileset>
<directory>bin</directory>
</fileset>
<!-- remove contents of dist directory, except resources subdir -->
<fileset>
<directory>dist</directory>
<excludes>
<exclude>resources/**</exclude>
</excludes>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<!-- depends on core module -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>james-core</artifactId>
<version>1.2</version>
</dependency>
<!-- depends on extensions module -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>james-extensions</artifactId>
<version>1.2</version>
</dependency>
<!-- SLF4J NOP: discard log messages -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>1.7.21</version>
</dependency>
<!-- tests depend on core module tests -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>james-core</artifactId>
<version>1.2</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
</dependencies>
</project>