Skip to content

Commit 68211b1

Browse files
committed
Fix profile activation
1 parent ff393eb commit 68211b1

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

java-components/build-request-processor/src/main/java/com/redhat/hacbs/container/build/preprocessor/AbstractPreprocessor.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,9 @@ private String getMavenSetup() {
245245
<profile>
246246
<id>secondary</id>
247247
<activation>
248-
<activeByDefault>true</activeByDefault>
248+
<property>
249+
<name>!skipSecondary</name>
250+
</property>
249251
</activation>
250252
<repositories>
251253
<repository>
@@ -271,7 +273,9 @@ private String getMavenSetup() {
271273
<profile>
272274
<id>local-deployment</id>
273275
<activation>
274-
<activeByDefault>true</activeByDefault>
276+
<property>
277+
<name>!skipLocalDeployment</name>
278+
</property>
275279
</activation>
276280
<properties>
277281
<altDeploymentRepository>
@@ -280,9 +284,11 @@ private String getMavenSetup() {
280284
</properties>
281285
</profile>
282286
<profile>
283-
<id>PROXY_ENABLED</id>
287+
<id>proxy-enabled</id>
284288
<activation>
285-
<activeByDefault>true</activeByDefault>
289+
<property>
290+
<name>!skipProxyEnabled</name>
291+
</property>
286292
</activation>
287293
<properties>
288294
<PROXY_ENABLED>false</PROXY_ENABLED>

0 commit comments

Comments
 (0)