Skip to content

Commit f37b92e

Browse files
committed
[#244] Include license and notice files in the packaged jar
1 parent 3bc2797 commit f37b92e

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

pom.xml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@
100100
<version.maven-deploy-plugin>3.1.4</version.maven-deploy-plugin>
101101
<version.license-maven-plugin>5.0.0</version.license-maven-plugin>
102102
<version.enforcer.plugin>3.6.1</version.enforcer.plugin>
103+
<version.maven-resources-plugin>3.3.1</version.maven-resources-plugin>
104+
<version.maven-bundle-plugin>6.0.0</version.maven-bundle-plugin>
103105

104106
<version.testng>7.11.0</version.testng>
105107

@@ -118,7 +120,15 @@
118120
<build>
119121
<resources>
120122
<resource>
121-
<directory>src/main/xsd</directory>
123+
<directory>${project.basedir}/src/main/xsd</directory>
124+
</resource>
125+
<resource>
126+
<directory>${project.basedir}</directory>
127+
<includes>
128+
<include>NOTICE.md</include>
129+
<include>license.txt</include>
130+
</includes>
131+
<targetPath>META-INF</targetPath>
122132
</resource>
123133
</resources>
124134
<pluginManagement>
@@ -135,7 +145,7 @@
135145
<plugin>
136146
<groupId>org.apache.felix</groupId>
137147
<artifactId>maven-bundle-plugin</artifactId>
138-
<version>6.0.0</version>
148+
<version>${version.maven-bundle-plugin}</version>
139149
</plugin>
140150
<plugin>
141151
<groupId>org.apache.maven.plugins</groupId>
@@ -172,6 +182,11 @@
172182
<artifactId>maven-enforcer-plugin</artifactId>
173183
<version>${version.enforcer.plugin}</version>
174184
</plugin>
185+
<plugin>
186+
<groupId>org.apache.maven.plugins</groupId>
187+
<artifactId>maven-resources-plugin</artifactId>
188+
<version>${version.maven-resources-plugin}</version>
189+
</plugin>
175190
</plugins>
176191
</pluginManagement>
177192
<plugins>
@@ -218,6 +233,10 @@
218233
</execution>
219234
</executions>
220235
</plugin>
236+
<plugin>
237+
<groupId>org.apache.maven.plugins</groupId>
238+
<artifactId>maven-resources-plugin</artifactId>
239+
</plugin>
221240
<plugin>
222241
<groupId>org.apache.maven.plugins</groupId>
223242
<artifactId>maven-surefire-plugin</artifactId>

0 commit comments

Comments
 (0)