pom.xml 7.09 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
2
<?xml version="1.0" encoding="UTF-8"?>
<!--
Matija Obreza's avatar
Matija Obreza committed
3
	Copyright 2018 Global Crop Diversity Trust
Matija Obreza's avatar
Matija Obreza committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

	Licensed under the Apache License, Version 2.0 (the "License");
	you may not use this file except in compliance with the License.
	You may obtain a copy of the License at

	http://www.apache.org/licenses/LICENSE-2.0

	Unless required by applicable law or agreed to in writing, software
	distributed under the License is distributed on an "AS IS" BASIS,
	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	See the License for the specific language governing permissions and
	limitations under the License.
-->
<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>org.genesys-pgr</groupId>
	<artifactId>application-blocks</artifactId>
21
	<version>3.0-SNAPSHOT</version>
Matija Obreza's avatar
Matija Obreza committed
22
23
24
	<packaging>pom</packaging>
	<name>Application Building Blocks</name>
	<description>This is the shared project pom.</description>
25
	<url>https://gitlab.croptrust.org/genesys-pgr/application-blocks</url>
Matija Obreza's avatar
Matija Obreza committed
26
27
28
29
30
31
32
33

	<licenses>
		<license>
			<name>The Apache License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
		</license>
	</licenses>

34
35
36
37
38
39
40
41
42
	<developers>
		<developer>
			<name>Matija Obreza</name>
			<email>matija.obreza@croptrust.org</email>
			<organization>Global Crop Diversity Trust</organization>
			<organizationUrl>http://www.croptrust.org</organizationUrl>
		</developer>
	</developers>

Matija Obreza's avatar
Matija Obreza committed
43
44
45
46
47
48
49
50
51
	<organization>
		<name>Global Crop Diversity Trust</name>
		<url>https://www.croptrust.org</url>
	</organization>

	<scm>
		<connection>scm:https://gitlab.croptrust.org/genesys-pgr/application-blocks</connection>
		<developerConnection>scm:git:git@gitlab.croptrust.org:genesys-pgr/application-blocks.git</developerConnection>
		<url>git@gitlab.croptrust.org:genesys-pgr/application-blocks.git</url>
52
		<tag>HEAD</tag>
Matija Obreza's avatar
Matija Obreza committed
53
54
55
56
57
58
59
	</scm>

	<issueManagement>
		<url>https://gitlab.croptrust.org/genesys-pgr/application-blocks/issues</url>
		<system>Gitlab</system>
	</issueManagement>

60
	<properties>
61
		<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
62
		<skip.deploy.artifact>true</skip.deploy.artifact>
Maxym Borodenko's avatar
Java 11  
Maxym Borodenko committed
63
64
		<jdk.target>11</jdk.target>
		<jdk.source>11</jdk.source>
65
	</properties>
Matija Obreza's avatar
Matija Obreza committed
66
67
68
69
70
71

	<modules>
		<module>parent</module>
		<module>core</module>
		<module>security</module>
		<module>auditlog</module>
72
		<module>coverage</module>
Matija Obreza's avatar
Matija Obreza committed
73
74
75
	</modules>

	<build>
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
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-install-plugin</artifactId>
					<configuration>
						<skip>${skip.deploy.artifact}</skip>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.22.2</version>
					<configuration>
						<testFailureIgnore>false</testFailureIgnore>
						<forkCount>1</forkCount>
						<reuseForks>true</reuseForks>
						<forkMode>once</forkMode>
						<rerunFailingTestsCount>0</rerunFailingTestsCount>
						<skipAfterFailureCount>1</skipAfterFailureCount>
						<argLine>-Xms1g -Xmx3g -Djava.awt.headless=true -server</argLine>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>

Matija Obreza's avatar
Matija Obreza committed
102
103
104
105
106
107
108
109
110
111
112
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-release-plugin</artifactId>
				<version>2.5.3</version>
				<configuration>
					<pushChanges>false</pushChanges>
					<autoVersionSubmodules>true</autoVersionSubmodules>
					<tagNameFormat>application-blocks-@{project.version}</tagNameFormat>
				</configuration>
			</plugin>
Matija Obreza's avatar
Matija Obreza committed
113
114
115
116
117
118
119
120
121
122
123
124
125
126
			<!--maven-compiler-plugin -->
			<plugin>
				<inherited>true</inherited>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.8.1</version>
				<configuration>
					<source>${jdk.source}</source>
					<target>${jdk.target}</target>
					<optimize>true</optimize>
					<showWarnings>true</showWarnings>
					<showDeprecation>false</showDeprecation>
					<failOnWarning>true</failOnWarning>
				</configuration>
			</plugin>
Matija Obreza's avatar
Matija Obreza committed
127
128
		</plugins>
	</build>
129
130
131
132
133
134
135
136
137

	<profiles>
		<profile>
			<id>normal</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
		</profile>

138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
		<profile>
			<id>quality</id>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-plugin</artifactId>
						<configuration>
							<argLine>@{argLine} -Xms1g -Xmx3g -Djava.awt.headless=true -server</argLine>
						</configuration>
					</plugin>
					<plugin>
						<groupId>org.jacoco</groupId>
						<artifactId>jacoco-maven-plugin</artifactId>
						<version>0.8.6</version>
						<configuration>
							<includes>
								<include>org/genesys/**</include>
							</includes>
							<!-- <excludes>
								<excludes>org/genesys/**</excludes>
							</excludes> -->
						</configuration>
						<executions>
							<execution>
								<goals>
									<goal>prepare-agent</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>

176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
		<profile>
			<id>release</id>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<version>2.4</version>
						<executions>
							<execution>
								<id>attach-sources</id>
								<goals>
									<goal>jar-no-fork</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
199
						<version>3.2.0</version>
200
201
202
203
204
205
						<executions>
							<execution>
								<id>attach-javadocs</id>
								<goals>
									<goal>jar</goal>
								</goals>
206
207
208
								<configuration>
									<source>${jdk.source}</source>
								</configuration>
209
210
211
212
213
214
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
215
						<version>${maven-gpg-plugin.version}</version>
216
217
218
219
220
221
222
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
223
224
225
226
227
228
229
								<!-- gpg: signing failed: No such file or directory -->
								<configuration>
									<gpgArguments>
										<arg>--pinentry-mode</arg>
										<arg>loopback</arg>
									</gpgArguments>
								</configuration>
230
231
232
233
234
235
236
237
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

238
239
240
241
242
243
244
245
246
247
248
249
250
	<distributionManagement>
		<repository>
			<id>ossrh</id>
			<name>Sonatype Releases</name>
			<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
		</repository>
		<snapshotRepository>
			<id>ossrh</id>
			<name>Sonatype Snapshots</name>
			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
			<uniqueVersion>true</uniqueVersion>
		</snapshotRepository>
	</distributionManagement>
Matija Obreza's avatar
Matija Obreza committed
251
</project>