-
Notifications
You must be signed in to change notification settings - Fork 2
/
pom.xml
136 lines (126 loc) · 4.22 KB
/
pom.xml
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
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.davidmiguel</groupId>
<artifactId>photoeditor</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>${project.artifactId}</name>
<description>Simple photo editor for Computer Graphics</description>
<url>https://github.com/davidmigloz/computer-graphics</url>
<developers>
<developer>
<name>David Miguel</name>
<email>me@davidmiguel.com</email>
</developer>
</developers>
<organization>
<name>Faculty of Mathematics and Information Science, Politechniki Warszawskiej</name>
<url>http://www.mini.pw.edu.pl/</url>
</organization>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<mainClass>${project.groupId}.${project.artifactId}.MainApp</mainClass>
<jdk.version>1.8</jdk.version>
<slf4j.version>1.7.13</slf4j.version>
<log4j.version>1.7.13</log4j.version>
<junit.version>4.12</junit.version>
</properties>
<dependencies>
<dependency>
<!-- Logger API -->
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<!-- Logger implementation -->
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<defaultGoal>clean compile package exec:java</defaultGoal>
<plugins>
<plugin>
<!-- Set Java compiler -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<!-- Java version of the source files -->
<source>${jdk.version}</source>
<!-- Java version of the class files -->
<target>${jdk.version}</target>
<!-- Show all important warnings -->
<compilerArgument>-Xlint:all</compilerArgument>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
<plugin>
<!-- Create a executable Jar together with its dependency (fat Jar) -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>${mainClass}</mainClass>
</transformer>
</transformers>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- Executes the program (same or separeta instance of JVM) -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.4.0</version>
<executions>
<execution>
<id>default-cli</id>
<goals>
<!-- Runs in separate instance of JVM -->
<goal>exec</goal>
<!-- Runs in the current JVM instance (with Eclipse and Maven) -->
<goal>java</goal>
</goals>
<configuration>
<!-- Used by java goal -->
<mainClass>${mainClass}</mainClass>
<!--Used by exec goal -->
<executable>${java.home}/bin/java</executable>
<commandlineArgs>-jar
${project.build.directory}/${project.build.finalName}.jar</commandlineArgs>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- Executes JUnit tests and write the results to an xml and txt file -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<!-- Turn on tests: false, Turn off tests: true -->
<configuration>
<skipTests>false</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</project>