-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from Roche-CSI/ParseEffectivePOM
- Loading branch information
Showing
4 changed files
with
94 additions
and
5 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
23 changes: 23 additions & 0 deletions
23
re-maven/src/main/java/com/g2forge/reassert/maven/model/MavenEffectivePOM.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,23 @@ | ||
package com.g2forge.reassert.maven.model; | ||
|
||
import java.util.List; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; | ||
|
||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.RequiredArgsConstructor; | ||
import lombok.Singular; | ||
|
||
@Data | ||
@Builder(toBuilder = true) | ||
@RequiredArgsConstructor | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class MavenEffectivePOM { | ||
@JacksonXmlElementWrapper(useWrapping = false) | ||
@JsonProperty("project") | ||
@Singular | ||
protected final List<MavenPOM> projects; | ||
} |
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
40 changes: 40 additions & 0 deletions
40
re-maven/src/test/java/com/g2forge/reassert/maven/model/test-effective-pom.xml.txt
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,40 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<projects> | ||
<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>Group</groupId> | ||
<artifactId>Artifact</artifactId> | ||
<version>Version</version> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>Dependencies</groupId> | ||
<artifactId>One</artifactId> | ||
<version>1.0.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>Dependencies</groupId> | ||
<artifactId>Two</artifactId> | ||
<version>2.0.0</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<modules> | ||
<module>ModuleA</module> | ||
<module>ModuleB</module> | ||
</modules> | ||
|
||
<profiles> | ||
<profile> | ||
<id>Profile1</id> | ||
<modules> | ||
<module>ModuleC</module> | ||
</modules> | ||
</profile> | ||
</profiles> | ||
</project> | ||
</projects> |