-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
167 lines (156 loc) · 5.71 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
137
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
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>eu.openanalytics.phaedra</groupId>
<artifactId>phaedra2-gateway</artifactId>
<name>Phaedra2 Gateway</name>
<version>0.0.1-SNAPSHOT</version>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.1</version>
</parent>
<properties>
<java.version>16</java.version>
<spring-cloud.version>2021.0.0</spring-cloud.version>
<fabric8.docker.version>0.37.0</fabric8.docker.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<docker.imageName>openanalytics/${project.artifactId}</docker.imageName>
</properties>
<repositories>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<layout>default</layout>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>oa-nexus-snapshots</id>
<url>https://nexus.openanalytics.eu/repository/snapshots/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-gateway</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-oauth2-client</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>${fabric8.docker.version}</version>
<configuration>
<images>
<image>
<name>${docker.imageName}</name>
<build>
<dockerFile>${project.basedir}/Dockerfile.app</dockerFile>
<tags>
<tag>${project.version}</tag>
</tags>
<args>
<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
</args>
</build>
</image>
</images>
</configuration>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.mycila.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
<version>1.9.0</version>
<configuration>
<header>LICENSE_HEADER</header>
<aggregate>true</aggregate>
<strictCheck>true</strictCheck>
<excludes>
<exclude>**/*.log</exclude>
<exclude>**/*.properties</exclude>
<exclude>**/*.yml</exclude>
<exclude>**/*.yaml</exclude>
<exclude>**/*.config</exclude>
<exclude>**/*.xml</exclude>
<exclude>**/*.json</exclude>
<exclude>**/*.sql</exclude>
<exclude>**/*.sh</exclude>
<exclude>LICENSE</exclude>
<exclude>LICENSE_HEADER</exclude>
<exclude>README.md</exclude>
<exclude>.gitignore</exclude>
<exclude>Dockerfile</exclude>
<exclude>Dockerfile.app</exclude>
<exclude>Dockerfile.db</exclude>
<exclude>Jenkinsfile</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>generate-copyright-headers</id>
<phase>process-sources</phase>
<goals>
<goal>format</goal>
</goals>
</execution>
<execution>
<id>check-copyright-headers</id>
<phase>package</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<distributionManagement>
<snapshotRepository>
<id>oa-nexus-snapshots</id>
<name>OpenAnalytics Snapshots Repository</name>
<url>https://nexus.openanalytics.eu/repository/snapshots</url>
</snapshotRepository>
<repository>
<id>oa-nexus-releases</id>
<name>OpenAnalytics Release Repository</name>
<url>https://nexus.openanalytics.eu/repository/releases</url>
</repository>
</distributionManagement>
</project>