-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
66 lines (60 loc) · 2.06 KB
/
Copy pathpom.xml
File metadata and controls
66 lines (60 loc) · 2.06 KB
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
<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>com.example</groupId>
<artifactId>maven_example_project</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>subprojectA</module>
<module>subprojectB</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source> <!-- Use your Java version -->
<target>1.8</target> <!-- Use your Java version -->
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<!-- First profile -->
<id>first-profile</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<!-- Second profile activated by system property -->
<id>second-profile-system-property</id>
<activation>
<property>
<name>use</name>
<value>second</value>
</property>
</activation>
<modules>
<module>subprojectC</module>
</modules>
</profile>
<profile>
<!-- Second profile activated by environment variable -->
<id>second-profile-env-var</id>
<activation>
<property>
<name>env.SET_SECOND</name>
<value>T</value>
</property>
</activation>
<modules>
<module>subprojectC</module>
</modules>
</profile>
</profiles>
</project>