-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/extended_interpolate
- Loading branch information
Showing
15 changed files
with
228 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,11 +24,11 @@ | |
<parent> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>mojo-parent</artifactId> | ||
<version>74</version> | ||
<version>77</version> | ||
</parent> | ||
|
||
<artifactId>flatten-maven-plugin</artifactId> | ||
<version>1.6.0-SNAPSHOT</version> | ||
<version>1.5.1-SNAPSHOT</version> | ||
<packaging>maven-plugin</packaging> | ||
|
||
<name>Maven Flatten Plugin</name> | ||
|
@@ -122,16 +122,14 @@ | |
<scm> | ||
<connection>scm:git:https://github.com/mojohaus/flatten-maven-plugin.git</connection> | ||
<developerConnection>scm:git:ssh://[email protected]/mojohaus/flatten-maven-plugin.git</developerConnection> | ||
<tag>1.5.0</tag> | ||
<tag>1.4.1</tag> | ||
<url>https://github.com/mojohaus/flatten-maven-plugin/tree/master</url> | ||
</scm> | ||
|
||
<properties> | ||
<mavenVersion>3.5.4</mavenVersion> | ||
<recommendedJavaBuildVersion>11</recommendedJavaBuildVersion> | ||
<maven.compiler.target>${recommendedJavaBuildVersion}</maven.compiler.target> | ||
<maven.compiler.source>${recommendedJavaBuildVersion}</maven.compiler.source> | ||
<project.build.outputTimestamp>2023-05-09T19:54:01Z</project.build.outputTimestamp> | ||
<project.build.outputTimestamp>2023-05-09T19:54:26Z</project.build.outputTimestamp> | ||
</properties> | ||
|
||
<!-- override versions of some transitive dependencies --> | ||
|
@@ -140,7 +138,7 @@ | |
<dependency> | ||
<groupId>commons-io</groupId> | ||
<artifactId>commons-io</artifactId> | ||
<version>2.11.0</version> | ||
<version>2.14.0</version> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
|
@@ -251,7 +249,7 @@ | |
<dependency> | ||
<groupId>org.eclipse.sisu</groupId> | ||
<artifactId>org.eclipse.sisu.inject</artifactId> | ||
<version>0.3.5</version> | ||
<version>0.9.0.M2</version> | ||
</dependency> | ||
</dependencies> | ||
</plugin> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 | ||
http://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
<mirrors> | ||
<mirror> | ||
<id>mrm-maven-plugin</id> | ||
<name>Mock Repository Manager</name> | ||
<url>@repository.proxy.url@</url> | ||
<mirrorOf>*</mirrorOf> | ||
</mirror> | ||
</mirrors> | ||
<profiles> | ||
<profile> | ||
<id>it-repo</id> | ||
<properties> | ||
<testProperty>EXTERNAL-PROFILE-VALUE</testProperty> | ||
</properties> | ||
<repositories> | ||
<repository> | ||
<id>snapshots</id> | ||
<url>@repository.proxy.url@</url> | ||
<releases> | ||
<enabled>true</enabled> | ||
<checksumPolicy>ignore</checksumPolicy> | ||
<updatePolicy>never</updatePolicy> | ||
</releases> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
<checksumPolicy>ignore</checksumPolicy> | ||
<updatePolicy>always</updatePolicy> | ||
</snapshots> | ||
</repository> | ||
</repositories> | ||
<pluginRepositories> | ||
<pluginRepository> | ||
<id>snapshots</id> | ||
<url>@repository.proxy.url@</url> | ||
<releases> | ||
<enabled>true</enabled> | ||
<checksumPolicy>ignore</checksumPolicy> | ||
<updatePolicy>never</updatePolicy> | ||
</releases> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
<checksumPolicy>ignore</checksumPolicy> | ||
<updatePolicy>always</updatePolicy> | ||
</snapshots> | ||
</pluginRepository> | ||
</pluginRepositories> | ||
</profile> | ||
</profiles> | ||
<activeProfiles> | ||
<activeProfile>it-repo</activeProfile> | ||
</activeProfiles> | ||
</settings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/it/projects/external-profile-with-properties-active-disabled/invoker.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
invoker.settingsFile = src/it/mrm/settings-properties.xml | ||
invoker.profiles = !it-repo |
18 changes: 18 additions & 0 deletions
18
src/it/projects/external-profile-with-properties-active-disabled/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<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>org.codehaus.mojo.flatten.its</groupId> | ||
<artifactId>profile-with-properties-active</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
|
||
<properties> | ||
<testProperty>DEFAULT_VALUE</testProperty> | ||
</properties> | ||
|
||
<licenses> | ||
<license> | ||
<name>${testProperty}</name> | ||
</license> | ||
</licenses> | ||
|
||
</project> |
29 changes: 29 additions & 0 deletions
29
src/it/projects/external-profile-with-properties-active-disabled/verify.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
import groovy.xml.XmlSlurper | ||
|
||
File originalPom = new File( basedir, 'pom.xml' ) | ||
assert originalPom.exists() | ||
|
||
File flattenedPom = new File( basedir, '.flattened-pom.xml' ) | ||
assert flattenedPom.exists() | ||
|
||
def flattenedProject = new XmlSlurper().parse( flattenedPom ) | ||
assert 'DEFAULT_VALUE' == flattenedProject.licenses.license.name.text() | ||
assert 0 == flattenedProject.profiles.profile.size() |
1 change: 1 addition & 0 deletions
1
src/it/projects/external-profile-with-properties-active/invoker.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
invoker.settingsFile = src/it/mrm/settings-properties.xml |
14 changes: 14 additions & 0 deletions
14
src/it/projects/external-profile-with-properties-active/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<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>org.codehaus.mojo.flatten.its</groupId> | ||
<artifactId>profile-with-properties-active</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
|
||
<licenses> | ||
<license> | ||
<name>${testProperty}</name> | ||
</license> | ||
</licenses> | ||
|
||
</project> |
29 changes: 29 additions & 0 deletions
29
src/it/projects/external-profile-with-properties-active/verify.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
import groovy.xml.XmlSlurper | ||
|
||
File originalPom = new File( basedir, 'pom.xml' ) | ||
assert originalPom.exists() | ||
|
||
File flattenedPom = new File( basedir, '.flattened-pom.xml' ) | ||
assert flattenedPom.exists() | ||
|
||
def flattenedProject = new XmlSlurper().parse( flattenedPom ) | ||
assert 'EXTERNAL-PROFILE-VALUE' == flattenedProject.licenses.license.name.text() | ||
assert 0 == flattenedProject.profiles.profile.size() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters