Skip to content

Commit

Permalink
[4269] Adhoc test showing settings/activeProfile issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Cox committed Jun 25, 2024
1 parent 9e5f804 commit e1d2221
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
39 changes: 39 additions & 0 deletions sams-profile-test/parent/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.openrewrite.maven</groupId>
<artifactId>parent</artifactId>
<version>0.1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<profiles>
<profile>
<id>active-profile-1</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.2</version>
</dependency>
</dependencies>
</dependencyManagement>
</profile>
<profile>
<id>active-profile-2</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>4.4</version>
</dependency>
</dependencies>
</dependencyManagement>
</profile>
</profiles>
</project>
17 changes: 17 additions & 0 deletions sams-profile-test/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.openrewrite.maven</groupId>
<artifactId>parent</artifactId>
<version>0.1.0-SNAPSHOT</version>
<relativePath>./parent/pom.xml</relativePath>
</parent>
<groupId>org.openrewrite.maven</groupId>
<artifactId>a</artifactId>
<dependencies>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
</dependency>
</dependencies>
</project>
10 changes: 10 additions & 0 deletions sams-profile-test/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<settings>
<activeProfiles>
<activeProfile>foobar</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>foobar</id>
</profile>
</profiles>
</settings>

0 comments on commit e1d2221

Please sign in to comment.