[MNG-7878] Extend test for ConsumerPom and modules in plugin configuration

This commit is contained in:
Slawomir Jaranowski 2023-09-13 19:20:17 +02:00
parent 838cda7db0
commit ce8fc3a31c
2 changed files with 58 additions and 0 deletions

View File

@ -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>

View File

@ -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>