Skip to content

Commit b838c80

Browse files
committed
Fix profile activation
1 parent 865b3c3 commit b838c80

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

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

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,6 @@ private String getMavenSetup() {
244244
<profiles>
245245
<profile>
246246
<id>secondary</id>
247-
<activation>
248-
<activeByDefault>true</activeByDefault>
249-
</activation>
250247
<repositories>
251248
<repository>
252249
<id>artifacts</id>
@@ -270,27 +267,27 @@ private String getMavenSetup() {
270267
</profile>
271268
<profile>
272269
<id>local-deployment</id>
273-
<activation>
274-
<activeByDefault>true</activeByDefault>
275-
</activation>
276270
<properties>
277271
<altDeploymentRepository>
278272
local::file://${JBS_WORKDIR}/artifacts
279273
</altDeploymentRepository>
280274
</properties>
281275
</profile>
282276
<profile>
283-
<id>PROXY_ENABLED</id>
284-
<activation>
285-
<activeByDefault>true</activeByDefault>
286-
</activation>
277+
<id>proxy-enabled</id>
287278
<properties>
288279
<PROXY_ENABLED>false</PROXY_ENABLED>
289280
</properties>
290281
</profile>
291282
</profiles>
292283
293-
<interactiveMode>false</interactiveMode>
284+
<activeProfiles>
285+
<activeProfile>secondary</activeProfile>
286+
<activeProfile>local-deployment</activeProfile>
287+
<activeProfile>proxy-enabled</activeProfile>
288+
</activeProfiles>
289+
290+
<interactiveMode>false</interactiveMode>
294291
<!--
295292
Needed for Maven 3.9+. Switched to native resolver
296293
https://maven.apache.org/guides/mini/guide-resolver-transport.html

0 commit comments

Comments
 (0)