Skip to content

Commit 4a741c5

Browse files
committed
Added more release plugins
1 parent 67a4594 commit 4a741c5

File tree

5 files changed

+224
-34
lines changed

5 files changed

+224
-34
lines changed

facete3-bundle/pom.xml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<artifactId>facete3-bundle</artifactId>
8+
9+
<parent>
10+
<groupId>org.hobbit</groupId>
11+
<artifactId>facete3-parent</artifactId>
12+
<version>1.0.0-SNAPSHOT</version>
13+
</parent>
14+
15+
<dependencies>
16+
<dependency>
17+
<groupId>org.hobbit</groupId>
18+
<artifactId>facete3-cli</artifactId>
19+
</dependency>
20+
<dependency>
21+
<groupId>org.hobbit</groupId>
22+
<artifactId>facete3-fsbg-cli</artifactId>
23+
</dependency>
24+
</dependencies>
25+
26+
<build>
27+
<plugins>
28+
29+
<plugin>
30+
<groupId>de.jutzig</groupId>
31+
<artifactId>github-release-plugin</artifactId>
32+
<version>1.3.0</version>
33+
<configuration>
34+
<description>Facete 3 Release</description>
35+
<releaseName>${project.version}</releaseName>
36+
<tag>${project.version}</tag>
37+
38+
<!-- If your project has additional artifacts, such as ones produced
39+
by the maven-assembly-plugin, you can define the following (requires version
40+
1.1.1 of the plugin or higher): -->
41+
<fileSets>
42+
<fileSet>
43+
<directory>${project.build.directory}</directory>
44+
<includes>
45+
<include>${project.artifactId}*-jar-with-dependencies.jar</include>
46+
</includes>
47+
</fileSet>
48+
</fileSets>
49+
</configuration>
50+
</plugin>
51+
52+
<plugin>
53+
<groupId>org.apache.maven.plugins</groupId>
54+
<artifactId>maven-deploy-plugin</artifactId>
55+
<configuration>
56+
<skip>true</skip>
57+
</configuration>
58+
</plugin>
59+
60+
<plugin>
61+
<groupId>org.sonatype.plugins</groupId>
62+
<artifactId>nexus-staging-maven-plugin</artifactId>
63+
<configuration>
64+
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
65+
</configuration>
66+
</plugin>
67+
68+
<plugin>
69+
<groupId>org.apache.maven.plugins</groupId>
70+
<artifactId>maven-shade-plugin</artifactId>
71+
</plugin>
72+
</plugins>
73+
74+
</build>
75+
</project>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import org.aksw.facete3.cli.main.MainCliFacete3;
2+
3+
public class facete3 {
4+
public static void main(String[] args) throws Exception {
5+
MainCliFacete3.main(args);
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import org.hobbit.benchmark.faceted_browsing.v2.main.MainCliFacetedBrowsingBenchmarkV2TaskGenerator;
2+
3+
public class fsbg {
4+
public static void main(String[] args) throws Exception {
5+
MainCliFacetedBrowsingBenchmarkV2TaskGenerator.main(args);
6+
}
7+
}

facete3-dummy/pom.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<artifactId>facete3-dummy</artifactId>
8+
9+
<parent>
10+
<groupId>org.hobbit</groupId>
11+
<artifactId>facete3-parent</artifactId>
12+
<version>1.0.0-SNAPSHOT</version>
13+
</parent>
14+
15+
<dependencies>
16+
<dependency>
17+
<groupId>org.hobbit</groupId>
18+
<artifactId>facete3-bundle</artifactId>
19+
<scope>provided</scope>
20+
</dependency>
21+
</dependencies>
22+
23+
<!-- <build> -->
24+
<!-- <plugins> -->
25+
<!-- <plugin> -->
26+
<!-- <groupId>org.apache.maven.plugins</groupId> -->
27+
<!-- <artifactId>maven-shade-plugin</artifactId> -->
28+
<!-- </plugin> -->
29+
<!-- </plugins> -->
30+
<!-- </build> -->
31+
32+
</project>

pom.xml

Lines changed: 103 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,17 @@
99
<version>1.0.0-SNAPSHOT</version>
1010
<packaging>pom</packaging>
1111

12+
<scm>
13+
<url>https://github.com/hobbit-project/faceted-browsing-benchmark</url>
14+
<connection>scm:git:git@github.com:hobbit-project/faceted-browsing-benchmark.git</connection>
15+
<developerConnection>scm:git:git@github.com:hobbit-project/faceted-browsing-benchmark.git</developerConnection>
16+
<tag>HEAD</tag>
17+
</scm>
18+
1219
<properties>
1320
<jena-sparql-api.version>3.12.0-2-SNAPSHOT</jena-sparql-api.version>
1421

15-
<!-- <docker.mainClass>org.hobbit.sdk.main.MainDockerServiceLauncher</docker.mainClass> -->
22+
<!-- <docker.mainClass>org.hobbit.sdk.main.MainDockerServiceLauncher</docker.mainClass> -->
1623

1724
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1825
<maven.compiler.source>1.8</maven.compiler.source>
@@ -30,6 +37,9 @@
3037
<module>facete3-resources-test-config</module>
3138
<module>facete3-core-parent</module>
3239
<module>facete3-fsbg-parent</module>
40+
41+
<module>facete3-bundle</module>
42+
<module>facete3-dummy</module>
3343
</modules>
3444

3545

@@ -83,17 +93,17 @@
8393
<version>${jena-sparql-api.version}</version>
8494
</dependency>
8595

86-
<!-- <dependency> -->
87-
<!-- <groupId>org.aksw.jena-sparql-api</groupId> -->
88-
<!-- <artifactId>jena-sparql-api-concepts</artifactId> -->
89-
<!-- <version>${jena-sparql-api.version}</version> -->
90-
<!-- </dependency> -->
96+
<!-- <dependency> -->
97+
<!-- <groupId>org.aksw.jena-sparql-api</groupId> -->
98+
<!-- <artifactId>jena-sparql-api-concepts</artifactId> -->
99+
<!-- <version>${jena-sparql-api.version}</version> -->
100+
<!-- </dependency> -->
91101

92-
<!-- <dependency> -->
93-
<!-- <groupId>org.aksw.jena-sparql-api</groupId> -->
94-
<!-- <artifactId>jena-sparql-api-utils</artifactId> -->
95-
<!-- <version>${jena-sparql-api.version}</version> -->
96-
<!-- </dependency> -->
102+
<!-- <dependency> -->
103+
<!-- <groupId>org.aksw.jena-sparql-api</groupId> -->
104+
<!-- <artifactId>jena-sparql-api-utils</artifactId> -->
105+
<!-- <version>${jena-sparql-api.version}</version> -->
106+
<!-- </dependency> -->
97107

98108
<dependency>
99109
<groupId>org.aksw.jena-sparql-api</groupId>
@@ -131,6 +141,24 @@
131141
<version>${jena-sparql-api.version}</version>
132142
</dependency>
133143

144+
<dependency>
145+
<groupId>org.hobbit</groupId>
146+
<artifactId>facete3-bundle</artifactId>
147+
<version>${project.version}</version>
148+
</dependency>
149+
150+
<dependency>
151+
<groupId>org.hobbit</groupId>
152+
<artifactId>facete3-cli</artifactId>
153+
<version>${project.version}</version>
154+
</dependency>
155+
156+
<dependency>
157+
<groupId>org.hobbit</groupId>
158+
<artifactId>facete3-fsbg-cli</artifactId>
159+
<version>${project.version}</version>
160+
</dependency>
161+
134162
<dependency>
135163
<groupId>org.hobbit</groupId>
136164
<artifactId>facete3-resources-test-config</artifactId>
@@ -199,19 +227,10 @@
199227
</dependency>
200228

201229

202-
<!--
203-
<dependency>
204-
<groupId>org.hobbit</groupId>
205-
<artifactId>hobbit-sdk-rdf</artifactId>
206-
<version>${hobbit-sdk.version}</version>
207-
</dependency>
208-
209-
<dependency>
210-
<groupId>org.hobbit</groupId>
211-
<artifactId>hobbit-sdk-qpid7</artifactId>
212-
<version>${hobbit-sdk.version}</version>
213-
</dependency>
214-
-->
230+
<!-- <dependency> <groupId>org.hobbit</groupId> <artifactId>hobbit-sdk-rdf</artifactId>
231+
<version>${hobbit-sdk.version}</version> </dependency> <dependency> <groupId>org.hobbit</groupId>
232+
<artifactId>hobbit-sdk-qpid7</artifactId> <version>${hobbit-sdk.version}</version>
233+
</dependency> -->
215234
<dependency>
216235
<groupId>junit</groupId>
217236
<artifactId>junit</artifactId>
@@ -312,17 +331,67 @@
312331
</executions>
313332
</plugin>
314333

315-
<!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId>
316-
<version>2.4.3</version> <configuration> < !- - filter all the META-INF files
317-
of other artifacts - - > <filters> <filter> <artifact>*:*</artifact> <excludes>
318-
<exclude>META-INF/*.SF</exclude> <exclude>META-INF/*.DSA</exclude> <exclude>META-INF/*.RSA</exclude>
319-
</excludes> </filter> </filters> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
320-
<manifestEntries> <X-Compile-Source-JDK>${maven.compile.source}</X-Compile-Source-JDK>
321-
<X-Compile-Target-JDK>${maven.compile.target}</X-Compile-Target-JDK> </manifestEntries>
322-
</transformer> <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"
323-
/> </transformers> </configuration> <executions> <execution> <phase>package</phase>
324-
<goals> <goal>shade</goal> </goals> </execution> </executions> </plugin> -->
334+
<plugin>
335+
<groupId>org.apache.maven.plugins</groupId>
336+
<artifactId>maven-deploy-plugin</artifactId>
337+
<version>2.8.2</version>
338+
</plugin>
339+
340+
<plugin>
341+
<groupId>org.sonatype.plugins</groupId>
342+
<artifactId>nexus-staging-maven-plugin</artifactId>
343+
<version>1.6.8</version>
344+
<extensions>true</extensions>
345+
<configuration>
346+
<serverId>ossrh</serverId>
347+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
348+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
349+
</configuration>
350+
</plugin>
351+
325352

353+
<plugin>
354+
<groupId>org.apache.maven.plugins</groupId>
355+
<artifactId>maven-shade-plugin</artifactId>
356+
<version>2.4.3</version>
357+
<executions>
358+
<!-- Run shade goal on package phase -->
359+
<execution>
360+
<phase>package</phase>
361+
<goals>
362+
<goal>shade</goal>
363+
</goals>
364+
<configuration>
365+
<!-- TODO Shading is currently needed for the debian packages, which
366+
is slow and causes huge deployments -->
367+
<!-- The deb packaging should be modified to work similar to the
368+
dockerfile maven plugin: -->
369+
<!-- Use the resource plugin to copy deps to a lib folder and adjust
370+
the bash scripts -->
371+
<shadedArtifactAttached>true</shadedArtifactAttached>
372+
<shadedClassifierName>jar-with-dependencies</shadedClassifierName>
373+
<filters>
374+
<filter>
375+
<artifact>*:*</artifact>
376+
<excludes>
377+
<exclude>META-INF/*.SF</exclude>
378+
<exclude>META-INF/*.DSA</exclude>
379+
<exclude>META-INF/*.RSA</exclude>
380+
</excludes>
381+
</filter>
382+
</filters>
383+
<transformers>
384+
<transformer
385+
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
386+
<!-- add Main-Class to manifest file -->
387+
<!-- <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> -->
388+
<!-- <mainClass>com.mkyong.core.utils.App</mainClass> -->
389+
<!-- </transformer> -->
390+
</transformers>
391+
</configuration>
392+
</execution>
393+
</executions>
394+
</plugin>
326395

327396
<plugin>
328397
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)