|
3 | 3 | <modelVersion>4.0.0</modelVersion> |
4 | 4 | <parent> |
5 | 5 | <groupId>org.eclipse.rdf4j</groupId> |
6 | | - <artifactId>rdf4j-core</artifactId> |
| 6 | + <artifactId>rdf4j</artifactId> |
7 | 7 | <version>2.3-SNAPSHOT</version> |
8 | 8 | </parent> |
9 | 9 | <artifactId>rdf4j-client</artifactId> |
|
183 | 183 | </dependencies> |
184 | 184 | <build> |
185 | 185 | <plugins> |
186 | | - <plugin> |
187 | | - <groupId>org.apache.maven.plugins</groupId> |
188 | | - <artifactId>maven-shade-plugin</artifactId> |
189 | | - <version>3.0.0</version> |
190 | | - <executions> |
191 | | - <execution> |
192 | | - <phase>package</phase> |
193 | | - <goals> |
194 | | - <goal>shade</goal> |
195 | | - </goals> |
196 | | - <configuration> |
197 | | - <promoteTransitiveDependencies>true</promoteTransitiveDependencies> |
198 | | - <artifactSet> |
199 | | - <includes> |
200 | | - <include>org.eclipse.rdf4j:*</include> |
201 | | - </includes> |
202 | | - </artifactSet> |
203 | | - <transformers> |
204 | | - <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
205 | | - </transformers> |
206 | | - </configuration> |
207 | | - </execution> |
208 | | - </executions> |
209 | | - </plugin> |
210 | | - <plugin> |
211 | | - <groupId>org.apache.maven.plugins</groupId> |
212 | | - <artifactId>maven-jar-plugin</artifactId> |
213 | | - <inherited>false</inherited> |
214 | | - <configuration> |
215 | | - <archive> |
216 | | - <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> |
217 | | - </archive> |
218 | | - </configuration> |
219 | | - </plugin> |
220 | 186 | <plugin> |
221 | 187 | <groupId>org.apache.felix</groupId> |
222 | 188 | <artifactId>maven-bundle-plugin</artifactId> |
|
230 | 196 | </execution> |
231 | 197 | </executions> |
232 | 198 | <configuration> |
| 199 | + <manifestLocation>${project.build.directory}/manifest/</manifestLocation> |
233 | 200 | <instructions> |
234 | | - <Implementation-Title>${project.name}</Implementation-Title> |
235 | | - <Implementation-Vendor-Id>${project.groupId}</Implementation-Vendor-Id> |
236 | | - <Implementation-Vendor>${project.organization.name}</Implementation-Vendor> |
237 | | - <Implementation-Version>${project.version}+${buildNumber}</Implementation-Version> |
238 | | - <Implementation-Build>${buildNumber}</Implementation-Build> |
239 | | - <Implementation-URL>${project.url}</Implementation-URL> |
240 | | - <Bundle-Version>${project.version}+${buildNumber}</Bundle-Version> |
241 | 201 | <Export-Package>!*text-base,!*prop-base,org.eclipse.rdf4j.*</Export-Package> |
242 | 202 | <Embed-Dependency> |
243 | 203 | *; |
|
251 | 211 | </configuration> |
252 | 212 | </plugin> |
253 | 213 | <plugin> |
254 | | - <groupId>org.codehaus.mojo</groupId> |
255 | | - <artifactId>buildnumber-maven-plugin</artifactId> |
| 214 | + <artifactId>maven-resources-plugin</artifactId> |
| 215 | + <version>3.0.2</version> |
| 216 | + <executions> |
| 217 | + <execution> |
| 218 | + <id>create-manifest</id> |
| 219 | + <phase>process-classes</phase> |
| 220 | + <goals> |
| 221 | + <goal>copy-resources</goal> |
| 222 | + </goals> |
| 223 | + <configuration> |
| 224 | + <resources> |
| 225 | + <resource> |
| 226 | + <directory>${project.build.directory}/manifest/</directory> |
| 227 | + <filtering>true</filtering> |
| 228 | + </resource> |
| 229 | + </resources> |
| 230 | + <outputDirectory>${project.build.outputDirectory}/META-INF/</outputDirectory> |
| 231 | + </configuration> |
| 232 | + </execution> |
| 233 | + </executions> |
| 234 | + </plugin> |
| 235 | + <plugin> |
| 236 | + <groupId>org.apache.maven.plugins</groupId> |
| 237 | + <artifactId>maven-jar-plugin</artifactId> |
| 238 | + <configuration> |
| 239 | + <archive> |
| 240 | + <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> |
| 241 | + </archive> |
| 242 | + </configuration> |
| 243 | + </plugin> |
| 244 | + <plugin> |
| 245 | + <groupId>org.apache.maven.plugins</groupId> |
| 246 | + <artifactId>maven-shade-plugin</artifactId> |
| 247 | + <version>3.0.0</version> |
| 248 | + <executions> |
| 249 | + <execution> |
| 250 | + <phase>package</phase> |
| 251 | + <goals> |
| 252 | + <goal>shade</goal> |
| 253 | + </goals> |
| 254 | + <configuration> |
| 255 | + <promoteTransitiveDependencies>true</promoteTransitiveDependencies> |
| 256 | + <artifactSet> |
| 257 | + <includes> |
| 258 | + <include>org.eclipse.rdf4j:*</include> |
| 259 | + </includes> |
| 260 | + </artifactSet> |
| 261 | + <transformers> |
| 262 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
| 263 | + </transformers> |
| 264 | + </configuration> |
| 265 | + </execution> |
| 266 | + </executions> |
256 | 267 | </plugin> |
257 | 268 | </plugins> |
258 | 269 | </build> |
|
0 commit comments