-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpom.xml
119 lines (108 loc) · 3.9 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
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>de.metas.parent</artifactId>
<groupId>de.metas</groupId>
<version>[1,10.0.0]</version>
</parent>
<groupId>de.metas.dist</groupId>
<artifactId>metasfresh-orgs</artifactId>
<packaging>pom</packaging>
<!-- FRESH-271: we need an explicit version here, otherwise versions-maven-plugin can't set it to another version -->
<version>10.0.0</version>
<modules>
<!-- note: we can't use e.g.
<module>${project.groupId}.base</module>
In here, because the versions-maven-plugin doesn't resolve them when we run its set goal.
There are probably ways to replace the property with its hardcoded string, but I'm not exploring them now
-->
<module>base</module>
<module>serverRoot</module>
<module>swingui</module>
<module>dist</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<configuration>
<rules>
<banDuplicateClasses>
<dependencies>
<!--
do not check this dependency, because the endcustomer allInOne-jar contains
all the classes that are also its dependencies
-->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>${project.groupId}.base</artifactId>
<ignoreClasses>
<ignoreClass>*</ignoreClass>
</ignoreClasses>
</dependency>
<dependency>
<groupId>de.metas.migration</groupId>
<artifactId>de.metas.migration.cli</artifactId>
<ignoreClasses>
<ignoreClass>*</ignoreClass>
</ignoreClasses>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>${project.groupId}*</artifactId>
<ignoreClasses>
<ignoreClass>org.springframework.boot.loader.*</ignoreClass>
</ignoreClasses>
</dependency>
<!-- see also https://www.elastic.co/blog/to-shade-or-not-to-shade -->
<!-- seems as if we need to repeat stuff from the parent pom :-( -->
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
<ignoreClasses>
<ignoreClass>org.joda.*</ignoreClass>
</ignoreClasses>
</dependency>
</dependencies>
<findAllDuplicates>true</findAllDuplicates>
</banDuplicateClasses>
</rules>
<fail>true</fail>
</configuration>
</plugin>
<!--
See http://www.mojohaus.org/versions-maven-plugin/examples/update-properties.html
Note that the property needs to be declared in the actual child poms, see http://stackoverflow.com/questions/3628471/maven-versions-plugin-not-picking-up-properties-from-parent
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.3</version>
<configuration>
<properties>
<property>
<name>metasfresh.version</name>
<searchReactor>false</searchReactor>
<autoLinkDependencies>true</autoLinkDependencies>
</property>
<!-- gh #968 https://github.com/metasfresh/metasfresh/issues/968
declare the the version properties of related artifacts which we can to set in the dist module
-->
<property>
<name>metasfresh-webui-frontend.version</name>
<searchReactor>false</searchReactor>
<autoLinkDependencies>true</autoLinkDependencies>
</property>
<property>
<name>metasfresh-webui-api.version</name>
<searchReactor>false</searchReactor>
<autoLinkDependencies>true</autoLinkDependencies>
</property>
</properties>
</configuration>
</plugin>
</plugins>
</build>
</project>