Skip to content

Commit c5501b1

Browse files
committed
add profile for dev versions
1 parent d7fdac4 commit c5501b1

File tree

1 file changed

+35
-4
lines changed

1 file changed

+35
-4
lines changed

pom.xml

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<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/maven-v4_0_0.xsd">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
23
<modelVersion>4.0.0</modelVersion>
34
<groupId>org.abapgit.adt</groupId>
45
<artifactId>org.abapgit.adt.parent</artifactId>
@@ -11,6 +12,36 @@
1112
<module>org.abapgit.adt.feature</module>
1213
<module>org.abapgit.adt.updatesite</module>
1314
</modules>
15+
<profiles>
16+
<profile>
17+
<id>dev</id>
18+
<activation>
19+
<activeByDefault>false</activeByDefault>
20+
<property>
21+
<name>environment</name>
22+
<value>dev</value>
23+
</property>
24+
</activation>
25+
<properties>
26+
<spotbugs.failOnError>false</spotbugs.failOnError>
27+
<spotbugs.failOnViolation>false</spotbugs.failOnViolation>
28+
</properties>
29+
</profile>
30+
<profile>
31+
<id>prod</id>
32+
<activation>
33+
<activeByDefault>true</activeByDefault>
34+
<property>
35+
<name>environment</name>
36+
<value>prod</value>
37+
</property>
38+
</activation>
39+
<properties>
40+
<spotbugs.failOnError>true</spotbugs.failOnError>
41+
<spotbugs.failOnViolation>true</spotbugs.failOnViolation>
42+
</properties>
43+
</profile>
44+
</profiles>
1445
<properties>
1546
<tycho-version>1.2.0</tycho-version>
1647
</properties>
@@ -84,15 +115,15 @@
84115
<id>validate</id>
85116
<phase>test</phase>
86117
<configuration>
87-
<failOnError>true</failOnError>
88-
<failOnViolation>true</failOnViolation>
118+
<failOnError>${spotbugs.failOnError}</failOnError>
119+
<failOnViolation>${spotbugs.failOnError}</failOnViolation>
89120
</configuration>
90121
<goals>
91122
<goal>check</goal>
92123
</goals>
93124
</execution>
94125
</executions>
95-
</plugin>
126+
</plugin>
96127
</plugins>
97128
</build>
98129
<repositories>

0 commit comments

Comments
 (0)