Skip to content

Commit

Permalink
Added more release plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Aklakan committed Sep 26, 2019
1 parent 67a4594 commit 4a741c5
Show file tree
Hide file tree
Showing 5 changed files with 224 additions and 34 deletions.
75 changes: 75 additions & 0 deletions facete3-bundle/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<artifactId>facete3-bundle</artifactId>

<parent>
<groupId>org.hobbit</groupId>
<artifactId>facete3-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>

<dependencies>
<dependency>
<groupId>org.hobbit</groupId>
<artifactId>facete3-cli</artifactId>
</dependency>
<dependency>
<groupId>org.hobbit</groupId>
<artifactId>facete3-fsbg-cli</artifactId>
</dependency>
</dependencies>

<build>
<plugins>

<plugin>
<groupId>de.jutzig</groupId>
<artifactId>github-release-plugin</artifactId>
<version>1.3.0</version>
<configuration>
<description>Facete 3 Release</description>
<releaseName>${project.version}</releaseName>
<tag>${project.version}</tag>

<!-- If your project has additional artifacts, such as ones produced
by the maven-assembly-plugin, you can define the following (requires version
1.1.1 of the plugin or higher): -->
<fileSets>
<fileSet>
<directory>${project.build.directory}</directory>
<includes>
<include>${project.artifactId}*-jar-with-dependencies.jar</include>
</includes>
</fileSet>
</fileSets>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<configuration>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
</plugins>

</build>
</project>
7 changes: 7 additions & 0 deletions facete3-bundle/src/main/java/facete3.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import org.aksw.facete3.cli.main.MainCliFacete3;

public class facete3 {
public static void main(String[] args) throws Exception {
MainCliFacete3.main(args);
}
}
7 changes: 7 additions & 0 deletions facete3-bundle/src/main/java/fsbg.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import org.hobbit.benchmark.faceted_browsing.v2.main.MainCliFacetedBrowsingBenchmarkV2TaskGenerator;

public class fsbg {
public static void main(String[] args) throws Exception {
MainCliFacetedBrowsingBenchmarkV2TaskGenerator.main(args);
}
}
32 changes: 32 additions & 0 deletions facete3-dummy/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<artifactId>facete3-dummy</artifactId>

<parent>
<groupId>org.hobbit</groupId>
<artifactId>facete3-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>

<dependencies>
<dependency>
<groupId>org.hobbit</groupId>
<artifactId>facete3-bundle</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

<!-- <build> -->
<!-- <plugins> -->
<!-- <plugin> -->
<!-- <groupId>org.apache.maven.plugins</groupId> -->
<!-- <artifactId>maven-shade-plugin</artifactId> -->
<!-- </plugin> -->
<!-- </plugins> -->
<!-- </build> -->

</project>
137 changes: 103 additions & 34 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,17 @@
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<scm>
<url>https://github.com/hobbit-project/faceted-browsing-benchmark</url>
<connection>scm:git:[email protected]:hobbit-project/faceted-browsing-benchmark.git</connection>
<developerConnection>scm:git:[email protected]:hobbit-project/faceted-browsing-benchmark.git</developerConnection>
<tag>HEAD</tag>
</scm>

<properties>
<jena-sparql-api.version>3.12.0-2-SNAPSHOT</jena-sparql-api.version>

<!-- <docker.mainClass>org.hobbit.sdk.main.MainDockerServiceLauncher</docker.mainClass> -->
<!-- <docker.mainClass>org.hobbit.sdk.main.MainDockerServiceLauncher</docker.mainClass> -->

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
Expand All @@ -30,6 +37,9 @@
<module>facete3-resources-test-config</module>
<module>facete3-core-parent</module>
<module>facete3-fsbg-parent</module>

<module>facete3-bundle</module>
<module>facete3-dummy</module>
</modules>


Expand Down Expand Up @@ -83,17 +93,17 @@
<version>${jena-sparql-api.version}</version>
</dependency>

<!-- <dependency> -->
<!-- <groupId>org.aksw.jena-sparql-api</groupId> -->
<!-- <artifactId>jena-sparql-api-concepts</artifactId> -->
<!-- <version>${jena-sparql-api.version}</version> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>org.aksw.jena-sparql-api</groupId> -->
<!-- <artifactId>jena-sparql-api-concepts</artifactId> -->
<!-- <version>${jena-sparql-api.version}</version> -->
<!-- </dependency> -->

<!-- <dependency> -->
<!-- <groupId>org.aksw.jena-sparql-api</groupId> -->
<!-- <artifactId>jena-sparql-api-utils</artifactId> -->
<!-- <version>${jena-sparql-api.version}</version> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>org.aksw.jena-sparql-api</groupId> -->
<!-- <artifactId>jena-sparql-api-utils</artifactId> -->
<!-- <version>${jena-sparql-api.version}</version> -->
<!-- </dependency> -->

<dependency>
<groupId>org.aksw.jena-sparql-api</groupId>
Expand Down Expand Up @@ -131,6 +141,24 @@
<version>${jena-sparql-api.version}</version>
</dependency>

<dependency>
<groupId>org.hobbit</groupId>
<artifactId>facete3-bundle</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.hobbit</groupId>
<artifactId>facete3-cli</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.hobbit</groupId>
<artifactId>facete3-fsbg-cli</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.hobbit</groupId>
<artifactId>facete3-resources-test-config</artifactId>
Expand Down Expand Up @@ -199,19 +227,10 @@
</dependency>


<!--
<dependency>
<groupId>org.hobbit</groupId>
<artifactId>hobbit-sdk-rdf</artifactId>
<version>${hobbit-sdk.version}</version>
</dependency>
<dependency>
<groupId>org.hobbit</groupId>
<artifactId>hobbit-sdk-qpid7</artifactId>
<version>${hobbit-sdk.version}</version>
</dependency>
-->
<!-- <dependency> <groupId>org.hobbit</groupId> <artifactId>hobbit-sdk-rdf</artifactId>
<version>${hobbit-sdk.version}</version> </dependency> <dependency> <groupId>org.hobbit</groupId>
<artifactId>hobbit-sdk-qpid7</artifactId> <version>${hobbit-sdk.version}</version>
</dependency> -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down Expand Up @@ -312,17 +331,67 @@
</executions>
</plugin>

<!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version> <configuration> < !- - filter all the META-INF files
of other artifacts - - > <filters> <filter> <artifact>*:*</artifact> <excludes>
<exclude>META-INF/*.SF</exclude> <exclude>META-INF/*.DSA</exclude> <exclude>META-INF/*.RSA</exclude>
</excludes> </filter> </filters> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries> <X-Compile-Source-JDK>${maven.compile.source}</X-Compile-Source-JDK>
<X-Compile-Target-JDK>${maven.compile.target}</X-Compile-Target-JDK> </manifestEntries>
</transformer> <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"
/> </transformers> </configuration> <executions> <execution> <phase>package</phase>
<goals> <goal>shade</goal> </goals> </execution> </executions> </plugin> -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>


<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<executions>
<!-- Run shade goal on package phase -->
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<!-- TODO Shading is currently needed for the debian packages, which
is slow and causes huge deployments -->
<!-- The deb packaging should be modified to work similar to the
dockerfile maven plugin: -->
<!-- Use the resource plugin to copy deps to a lib folder and adjust
the bash scripts -->
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>jar-with-dependencies</shadedClassifierName>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
<!-- add Main-Class to manifest file -->
<!-- <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> -->
<!-- <mainClass>com.mkyong.core.utils.App</mainClass> -->
<!-- </transformer> -->
</transformers>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit 4a741c5

Please sign in to comment.