Skip to content

Commit

Permalink
[1.4.x] JBERET-548 fix automatic module name with regex (#219)
Browse files Browse the repository at this point in the history
Co-authored-by: Lorenzo Formenti <[email protected]>
  • Loading branch information
Zerrossetto and Lorenzo Formenti committed Mar 31, 2022
1 parent 6c1a8df commit af89033
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 @@ -116,7 +116,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>

<!-- Jberet EE BOM Dependencies -->
<version.org.jberet.schedule>1.4.1.Final</version.org.jberet.schedule>
Expand Down Expand Up @@ -194,6 +193,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 @@ -214,6 +236,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 af89033

Please sign in to comment.