Skip to content

Commit

Permalink
JBERET-548 fix automatic module name with regex (#220) (#221)
Browse files Browse the repository at this point in the history
Co-authored-by: Lorenzo Formenti <[email protected]>
  • Loading branch information
chengfang and Lorenzo Formenti authored Apr 9, 2022
1 parent 94ce68b commit 787900b
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@
<!-- Modularized JDK support (various workarounds) - activated via profile -->
<modular.jdk.args/>
<surefire.system.args>${modular.jdk.args}</surefire.system.args>
<automatic.module.name>${project.groupId}.${project.artifactId}</automatic.module.name>
</properties>

<modules>
Expand Down Expand Up @@ -207,6 +206,29 @@
<keywords>true</keywords>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-regex-properties</id>
<goals>
<goal>regex-properties</goal>
</goals>
<configuration>
<regexPropertySettings>
<regexPropertySetting>
<name>automatic.module.name</name>
<value>${project.groupId}.${project.artifactId}</value>
<regex>([a-z]+)\.\1-|-</regex>
<replacement>$1\.</replacement>
<failIfNoMatch>false</failIfNoMatch>
</regexPropertySetting>
</regexPropertySettings>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>

Expand All @@ -227,6 +249,10 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down

0 comments on commit 787900b

Please sign in to comment.