Skip to content

Commit e87a453

Browse files
committed
Explicitly add designer.properties
and use resource filtering. Follow-up on 1548f5f
1 parent e61f64e commit e87a453

File tree

2 files changed

+13
-29
lines changed

2 files changed

+13
-29
lines changed

pom.xml

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,16 @@
9999
</includes>
100100
<excludes>
101101
<exclude>**/*.less</exclude>
102+
<exclude>net/sourceforge/pmd/util/fxdesigner/designer.properties</exclude>
102103
</excludes>
103104
</resource>
105+
<resource>
106+
<directory>${project.basedir}/src/main/resources/</directory>
107+
<includes>
108+
<include>net/sourceforge/pmd/util/fxdesigner/designer.properties</include>
109+
</includes>
110+
<filtering>true</filtering>
111+
</resource>
104112
</resources>
105113

106114

@@ -381,35 +389,6 @@
381389
</executions>
382390
</plugin>
383391

384-
<plugin>
385-
<groupId>com.internetitem</groupId>
386-
<artifactId>write-properties-file-maven-plugin</artifactId>
387-
<version>2.0.0</version>
388-
<executions>
389-
<execution>
390-
<phase>generate-resources</phase>
391-
<goals>
392-
<goal>write-properties-file</goal>
393-
</goals>
394-
<configuration>
395-
<filename>
396-
net/sourceforge/pmd/util/fxdesigner/designer.properties
397-
</filename>
398-
<properties>
399-
<property>
400-
<name>pmd.designer.version</name>
401-
<value>${pmd.designer.version}</value>
402-
</property>
403-
<property>
404-
<name>pmd.core.version</name>
405-
<value>${pmd.core.version}</value>
406-
</property>
407-
</properties>
408-
</configuration>
409-
</execution>
410-
</executions>
411-
</plugin>
412-
413392
<plugin>
414393
<groupId>org.sonatype.plugins</groupId>
415394
<artifactId>nexus-staging-maven-plugin</artifactId>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Loaded in net.sourceforge.pmd.util.fxdesigner.DesignerVersion
2+
# The variables are replaced by resource filtering, see https://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
3+
4+
pmd.designer.version=${pmd.designer.version}
5+
pmd.core.version=${pmd.core.version}

0 commit comments

Comments
 (0)