Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[JENKINS-43616] special handling of the pom file when using the flatt…
…en-maven-plugin
- Loading branch information
Cyrille Le Clerc
committed
Apr 20, 2017
1 parent
70cbc0a
commit 8819434
Showing
6 changed files
with
130 additions
and
2 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
6 changes: 6 additions & 0 deletions
6
...ins/pipeline/maven/test/test_maven_projects/maven_jar_with_flatten_pom_project/.gitignore
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,6 @@ | ||
target/ | ||
work/ | ||
|
||
.flattened-pom.xml | ||
|
||
*.log |
51 changes: 51 additions & 0 deletions
51
...lugins/pipeline/maven/test/test_maven_projects/maven_jar_with_flatten_pom_project/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,51 @@ | ||
<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"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>jenkins.mvn.test</groupId> | ||
<artifactId>maven-jar-with-flattened-pom</artifactId> | ||
<version>0.1-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.12</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>flatten-maven-plugin</artifactId> | ||
<version>1.0.0</version> | ||
<configuration> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>flatten</id> | ||
<phase>process-resources</phase> | ||
<goals> | ||
<goal>flatten</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<developers> | ||
<developer> | ||
<id>will-be-removed-by-the-flatten-plugin</id> | ||
<name>will-be-removed-by-the-flatten-plugin</name> | ||
<email>example@example.com</email> | ||
</developer> | ||
</developers> | ||
<licenses> | ||
<license> | ||
<name>Apache Software Licenese</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
<comments/> | ||
</license> | ||
</licenses> | ||
</project> | ||
|
11 changes: 11 additions & 0 deletions
11
...ects/maven_jar_with_flatten_pom_project/src/main/java/com/example/MonoModuleMavenApp.java
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,11 @@ | ||
package com.example; | ||
|
||
public class MonoModuleMavenApp { | ||
/** | ||
* TODO message | ||
* @param args | ||
*/ | ||
public static void main(String[] args) { | ||
System.out.println("Hello MonoModuleMavenApp"); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
.../maven_jar_with_flatten_pom_project/src/test/java/com/example/MonoModuleMavenAppTest.java
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,11 @@ | ||
package com.example; | ||
|
||
import org.junit.Test; | ||
|
||
public class MonoModuleMavenAppTest { | ||
|
||
@Test | ||
public void success(){ | ||
System.out.println("MonoModuleMavenAppTest#success"); | ||
} | ||
} |
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