You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2023/09/13 19:13:33 UTC
[maven] 01/01: [MNG-7878] Extend test for ConsumerPom and modules in plugin configuration
This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch MNG-7878-reproduce
in repository https://gitbox.apache.org/repos/asf/maven.git
commit d6f6540ea396e520df3328ec0286604227faffd4
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Wed Sep 13 19:20:17 2023 +0200
[MNG-7878] Extend test for ConsumerPom and modules in plugin configuration
---
.../test/resources/projects/transform/after.pom | 28 ++++++++++++++++++++
.../test/resources/projects/transform/before.pom | 30 ++++++++++++++++++++++
2 files changed, 58 insertions(+)
diff --git a/maven-core/src/test/resources/projects/transform/after.pom b/maven-core/src/test/resources/projects/transform/after.pom
index 1b92bc255e..6c970ca5a2 100644
--- a/maven-core/src/test/resources/projects/transform/after.pom
+++ b/maven-core/src/test/resources/projects/transform/after.pom
@@ -16,6 +16,22 @@
<target xml:space="preserve"> 1.5 </target>
</configuration>
</plugin>
+ <plugin>
+ <artifactId>maven-ear-plugin</artifactId>
+ <version>3.3.0</version>
+ <configuration>
+ <modules>
+ <module>
+ <test>test</test>
+ </module>
+ <jarModule>
+ <groupId>artifactGroupId</groupId>
+ <artifactId>artifactId</artifactId>
+ <uri>APP-INF/lib/anotherName-1.2.3.jar</uri>
+ </jarModule>
+ </modules>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
@@ -27,6 +43,18 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <artifactId>maven-ear-plugin</artifactId>
+ <configuration>
+ <modules>
+ <webModule>
+ <groupId>artifactGroupId</groupId>
+ <artifactId>artifactId</artifactId>
+ <excluded>true</excluded>
+ </webModule>
+ </modules>
+ </configuration>
+ </plugin>
</plugins>
</build>
<profiles>
diff --git a/maven-core/src/test/resources/projects/transform/before.pom b/maven-core/src/test/resources/projects/transform/before.pom
index 60d0ccedf3..a1cd1e6d60 100644
--- a/maven-core/src/test/resources/projects/transform/before.pom
+++ b/maven-core/src/test/resources/projects/transform/before.pom
@@ -47,6 +47,23 @@ under the License.
<target xml:space="preserve"> 1.5 </target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-ear-plugin</artifactId>
+ <version>3.3.0</version>
+ <configuration>
+ <modules>
+ <module>
+ <test>test</test>
+ </module>
+ <jarModule>
+ <groupId>artifactGroupId</groupId>
+ <artifactId>artifactId</artifactId>
+ <uri>APP-INF/lib/anotherName-1.2.3.jar</uri>
+ </jarModule>
+ </modules>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
@@ -59,6 +76,19 @@ under the License.
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-ear-plugin</artifactId>
+ <configuration>
+ <modules>
+ <webModule>
+ <groupId>artifactGroupId</groupId>
+ <artifactId>artifactId</artifactId>
+ <excluded>true</excluded>
+ </webModule>
+ </modules>
+ </configuration>
+ </plugin>
</plugins>
</build>