Skip to content

Commit 79d5f20

Browse files
committed
Ensure that config file is not included in jar
1 parent fa3cee8 commit 79d5f20

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

pom.xml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
<build>
6161
<resources>
62-
<resource>
62+
<resource>
6363
<directory>.</directory>
6464
<filtering>false</filtering>
6565
<includes>
@@ -69,6 +69,10 @@
6969
<resource><!-- we have to copy the rascal sources in the jar for the evaluator to find it-->
7070
<directory>src/main/rascal</directory>
7171
<filtering>false</filtering>
72+
<excludes>
73+
<exclude>lang/php/util/Config.rsc</exclude>
74+
<exclude>lang/php/util/Config.rsc-dist</exclude>
75+
</excludes>
7276
</resource>
7377
</resources>
7478
<plugins>
@@ -123,7 +127,7 @@
123127
<compilerArgument>-parameters</compilerArgument>
124128
<release>11</release>
125129
</configuration>
126-
</plugin>
130+
</plugin>
127131
<plugin>
128132
<groupId>org.apache.maven.plugins</groupId>
129133
<artifactId>maven-release-plugin</artifactId>
@@ -133,6 +137,16 @@
133137
<arguments>-Drascal.compile.skip -DskipTests -Drascal.tutor.skip</arguments>
134138
</configuration>
135139
</plugin>
140+
<plugin>
141+
<groupId>org.apache.maven.plugins</groupId>
142+
<artifactId>maven-jar-plugin</artifactId>
143+
<version>3.3.0</version>
144+
<configuration>
145+
<excludes>
146+
<exclude>**/Config.tpl</exclude>
147+
</excludes>
148+
</configuration>
149+
</plugin>
136150
<plugin>
137151
<groupId>org.rascalmpl</groupId>
138152
<artifactId>rascal-maven-plugin</artifactId>
@@ -142,6 +156,9 @@
142156
<srcs>
143157
<src>${project.basedir}/src/main/rascal</src>
144158
</srcs>
159+
<srcIgnores>
160+
<ignore>${project.basedir}/src/main/rascal/lang/php/util/Config.rsc</ignore>
161+
</srcIgnores>
145162
</configuration>
146163
<executions>
147164
<execution>

0 commit comments

Comments
 (0)