Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0"
3
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
    <modelVersion>4.0.0</modelVersion>
6

    
7
    <groupId>eu.dnetlib</groupId>
8
    <artifactId>uoa-monitor-service</artifactId>
9
    <version>1.0.1-SNAPSHOT</version>
10
    <packaging>war</packaging>
11

    
12
    <name>uoa-monitor-service</name>
13

    
14
    <!-- Use parent with artifact spring-boot-starter-parent and add plugin with artifact spring-boot-maven-plugin in order to run springboot run command-->
15
    <parent>
16
        <groupId>org.springframework.boot</groupId>
17
        <artifactId>spring-boot-starter-parent</artifactId>
18
	<version>1.5.8.RELEASE</version>
19
	<relativePath/> <!-- lookup parent from repository -->
20
    </parent>
21

    
22
    <!-- Comment parent with artifact dnet45-parent and <dependencyManagement> in order to run springboot run command -->
23
<!--
24
    <parent>
25
        <groupId>eu.dnetlib</groupId>
26
        <artifactId>dnet45-parent</artifactId>
27
        <version>1.0.0</version>
28
    </parent>
29
-->
30
    <properties>
31
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
32
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
33
        <java.version>1.8</java.version>
34
        <timestamp>${maven.build.timestamp}</timestamp>
35
        <maven.build.timestamp.format>E MMM dd HH:mm:ss z yyyy</maven.build.timestamp.format>
36
    </properties>
37

    
38
    <!-- Comment parent with artifact dnet45-parent and <dependencyManagement> in order to run springboot run command -->
39
<!--
40
    <dependencyManagement>
41
        <dependencies>
42
            <dependency>
43
                <groupId>org.springframework.boot</groupId>
44
                <artifactId>spring-boot-dependencies</artifactId>
45
                <version>1.5.8.RELEASE</version>
46
                <type>pom</type>
47
                <scope>import</scope>
48
            </dependency>
49
        </dependencies>
50
    </dependencyManagement>
51
-->
52
    <dependencies>
53
        <dependency>
54
            <groupId>org.springframework.boot</groupId>
55
            <artifactId>spring-boot-starter-data-mongodb</artifactId>
56
        </dependency>
57
        <dependency>
58
            <groupId>org.springframework.boot</groupId>
59
            <artifactId>spring-boot-starter-web</artifactId>
60
            <exclusions>
61
                <exclusion>
62
                    <groupId> org.springframework.boot</groupId>
63
                    <artifactId>spring-boot-starter-logging</artifactId>
64
                </exclusion>
65
            </exclusions>
66
        </dependency>
67

    
68
        <dependency>
69
            <groupId>org.springframework.boot</groupId>
70
            <artifactId>spring-boot-starter-tomcat</artifactId>
71
            <scope>provided</scope>
72
        </dependency>
73

    
74
        <dependency>
75
            <groupId>log4j</groupId>
76
            <artifactId>log4j</artifactId>
77
            <version>1.2.17</version>
78
        </dependency>
79
        <dependency>
80
            <groupId>com.google.code.gson</groupId>
81
            <artifactId>gson</artifactId>
82
            <version>2.8.2</version>
83
        </dependency>
84
        <dependency> <!-- this dependency includes dependency to uoa-authorization-library -->
85
            <groupId>eu.dnetlib</groupId>
86
            <artifactId>uoa-admin-tools-library</artifactId>
87
            <version>1.0.4</version>
88
        </dependency>
89
        <dependency>
90
            <groupId>eu.dnetlib</groupId>
91
            <artifactId>uoa-notification-service</artifactId>
92
            <version>1.0.5</version>
93
        </dependency>
94
        <dependency>
95
            <groupId>org.springframework.boot</groupId>
96
            <artifactId>spring-boot-starter-test</artifactId>
97
            <scope>test</scope>
98
        </dependency>
99
        <dependency>
100
            <groupId>org.springframework.boot</groupId>
101
            <artifactId>spring-boot-starter-security</artifactId>
102
        </dependency>
103
    </dependencies>
104

    
105
    <build>
106
        <plugins>
107
	    <!-- Use parent with artifact spring-boot-starter-parent and add plugin with artifact spring-boot-maven-plugin in order to run springboot run command-->
108
            <plugin>
109
                <groupId>org.springframework.boot</groupId>
110
                <artifactId>spring-boot-maven-plugin</artifactId>
111
            </plugin>
112

    
113
            <!--3d answer: https://stackoverflow.com/questions/23260057/the-forked-vm-terminated-without-saying-properly-goodbye-vm-crash-or-system-exi-->
114
            <!--If you use openjdk there might be a problem with surfire plugin - uncomment following lines-->
115
            <plugin>
116
                <groupId>org.apache.maven.plugins</groupId>
117
                <artifactId>maven-surefire-plugin</artifactId>
118
                <version>2.19.1</version>
119
                <configuration>
120
                    <!--<testFailureIgnore>true</testFailureIgnore>-->
121
                    <useSystemClassLoader>false</useSystemClassLoader>
122
                </configuration>
123
            </plugin>
124

    
125
            <plugin>
126
                <groupId>org.apache.maven.plugins</groupId>
127
                <artifactId>maven-war-plugin</artifactId>
128
                <version>2.6</version>
129
                <configuration>
130
                    <failOnMissingWebXml>false</failOnMissingWebXml>
131
                </configuration>
132
            </plugin>
133

    
134
        </plugins>
135
        <finalName>uoa-monitor-service</finalName>
136
        <resources>
137
            <resource>
138
                <directory>src/main/resources</directory>
139
                <filtering>true</filtering>
140
            </resource>
141
        </resources>
142
    </build>
143

    
144
    <repositories>
145
        <repository>
146
            <id>dnet45-releases</id>
147
            <name>D-Net 45 Releases</name>
148
            <url>http://maven.research-infrastructures.eu/nexus/content/repositories/dnet45-releases</url>
149
            <releases>
150
                <enabled>true</enabled>
151
            </releases>
152
            <snapshots>
153
                <enabled>false</enabled>
154
            </snapshots>
155
            <layout>default</layout>
156
        </repository>
157
    </repositories>
158
</project>
(1-1/2)