Skip to content

Commit aff4a29

Browse files
committed
Merge pull request citerus#7 from citerus/Fix_POM_warnings
Fix maven build warnings:
2 parents 8a8cc39 + e4fb327 commit aff4a29

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

pom.xml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,29 +65,40 @@
6565
<url>https://github.com/citerus/dddsample-core</url>
6666
</scm>
6767
<properties>
68+
<java.version>1.8</java.version>
69+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
70+
<!-- Dependencies -->
6871
<spring.version>4.2.1.RELEASE</spring.version>
6972
<cxf.version>3.0.3</cxf.version>
73+
<!-- Plugin versions -->
74+
<maven-jetty-plugin.version>8.1.16.v20140903</maven-jetty-plugin.version>
75+
<maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
76+
<maven-jar-plugin.version>2.6</maven-jar-plugin.version>
77+
<maven-assembly-plugin.version>2.5.5</maven-assembly-plugin.version>
7078
</properties>
7179
<build>
7280
<plugins>
7381
<!-- Compiler -->
7482
<plugin>
7583
<artifactId>maven-compiler-plugin</artifactId>
84+
<version>${maven-compiler-plugin.version}</version>
7685
<configuration>
77-
<source>1.8</source>
78-
<target>1.8</target>
79-
<encoding>UTF-8</encoding>
86+
<source>${java.version}</source>
87+
<target>${java.version}</target>
88+
<encoding>${project.build.sourceEncoding}</encoding>
8089
</configuration>
8190
</plugin>
8291

8392
<!-- Jetty plugin -->
8493
<plugin>
8594
<groupId>org.mortbay.jetty</groupId>
8695
<artifactId>maven-jetty-plugin</artifactId>
96+
<version>${maven-jetty-plugin.version}</version>
8797
</plugin>
8898

8999
<plugin>
90100
<artifactId>maven-jar-plugin</artifactId>
101+
<version>${maven-jar-plugin.version}</version>
91102
<executions>
92103

93104
<!-- Package booking service facade classes in separate jar -->
@@ -114,6 +125,7 @@
114125
<!-- Assembly -->
115126
<plugin>
116127
<artifactId>maven-assembly-plugin</artifactId>
128+
<version>${maven-assembly-plugin.version}</version>
117129
<configuration>
118130
<descriptorRefs>
119131
<descriptorRef>src</descriptorRef>

0 commit comments

Comments
 (0)