Skip to content

Commit

Permalink
Issue mojohaus#931: Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
jarmoniuk committed Mar 14, 2023
1 parent d46a7a8 commit d988aa5
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>
<parent>
<groupId>test-group</groupId>
<artifactId>test-artifact</artifactId>
<version>DEVELOP-SNAPSHOT</version>
</parent>
<artifactId>foo-api</artifactId>
<packaging>jar</packaging>
<name>api</name>
<description>API of the foo module</description>

<dependencies>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>
<parent>
<groupId>test-group</groupId>
<artifactId>test-artifact</artifactId>
<version>DEVELOP-SNAPSHOT</version>
</parent>
<artifactId>foo-core</artifactId>
<packaging>jar</packaging>
<name>core</name>
<description>API of the foo module</description>

<dependencies>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,24 @@
<groupId>test-group</groupId>
<artifactId>test-artifact</artifactId>
<version>DEVELOP-SNAPSHOT</version>
<packaging>pom</packaging>

<description>Wörter mit Umlauten</description>
<!-- Vorläufige Container für Tests -->

<dependencies>
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-api</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
<modules>
<module>api</module>
<module>core</module>
</modules>

<dependencyManagement>
<dependencies>
<!-- Vorläufige Container für Tests -->
<dependency>
<groupId>localhost</groupId>
<artifactId>dummy-api</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</dependencyManagement>

</project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import groovy.xml.XmlSlurper

def project = new XmlSlurper().parse( new File( basedir, 'pom.xml' ) )
assert project.dependencies.dependency.version == '1.0.1'
assert project.dependencyManagement.dependencies.dependency.version == '1.0.1'
assert project.description == 'Wörter mit Umlauten'

0 comments on commit d988aa5

Please sign in to comment.