-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
135 lines (117 loc) · 4.87 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
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
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>
<!-- =============================================================== -->
<!-- Project informations -->
<!-- =============================================================== -->
<!-- ===== Parent ===== -->
<parent>
<groupId>com.dummy.myerp</groupId>
<artifactId>myerp</artifactId>
<version>1.x.x-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<!-- ===== Maven ===== -->
<artifactId>myerp-consumer</artifactId>
<!-- ===== General information ===== -->
<name>${project.artifactId}</name>
<!-- =============================================================== -->
<!-- Distrubution management -->
<!-- =============================================================== -->
<distributionManagement>
<site>
<id>site</id>
<name>site-doc</name>
<url>file://${basedir}/../target/site-doc/${project.artifactId}/</url>
</site>
</distributionManagement>
<!-- =============================================================== -->
<!-- Properties -->
<!-- =============================================================== -->
<properties>
</properties>
<!-- =============================================================== -->
<!-- Dependencies -->
<!-- =============================================================== -->
<dependencies>
<!-- ===== Modules ===== -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>myerp-model</artifactId>
</dependency>
<!-- spring-jdbc : commons-exceptions, datasource management -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
</dependency>
<!-- ========== Test Dependencies ========== -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<!-- ===== Database (pour les tests) ===== -->
<!-- Pool de connexion -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-dbcp2</artifactId>
<scope>test</scope>
</dependency>
<!-- Drivers JDBC PostgreSQL -->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mockito/mockito-all -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.10.19</version>
<scope>test</scope>
</dependency>
</dependencies>
<!-- =============================================================== -->
<!-- Profiles -->
<!-- =============================================================== -->
<profiles>
<!-- Profile utilisé pour lancer les tests d'intégration de la couche Consumer -->
<profile>
<id>test-consumer</id>
<build>
<plugins>
<!-- Ajout du répertoire src/test-consumer/java en tant que source de test du module -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-test-source</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>src/test-consumer/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<testResources>
<testResource>
<directory>src/test-consumer/resources</directory>
</testResource>
</testResources>
</build>
</profile>
</profiles>
<!-- =============================================================== -->
<!-- Build -->
<!-- =============================================================== -->
<build>
</build>
</project>