forked from brianfrankcooper/YCSB
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[packaging] refactor packaging to avoid fat-jars.
* remove unused declared deps in a few places * lex sort modules in top level pom * update maven plugin versions. * no more jar-with-dependencies * set ycsb-core to provided in bindings * introduce a bindings-parent pom that sets ** stage dependency copy on building binding ** iff binding has a README.md, build a binding-specific dist artifact * update distribution assembly to ** properly build after modules ** use per-binding sets of dependencies closes brianfrankcooper#250
- Loading branch information
Showing
24 changed files
with
407 additions
and
533 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<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> | ||
|
||
<parent> | ||
<groupId>com.yahoo.ycsb</groupId> | ||
<artifactId>root</artifactId> | ||
<version>0.2.0-SNAPSHOT</version> | ||
<relativePath>../../</relativePath> | ||
</parent> | ||
|
||
<artifactId>datastore-specific-descriptor</artifactId> | ||
<name>Per Datastore Binding descriptor</name> | ||
<packaging>jar</packaging> | ||
|
||
<description> | ||
This module contains the assembly descriptor used by the individual components | ||
to build binding-specific distributions. | ||
</description> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.yahoo.ycsb</groupId> | ||
<artifactId>core</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
</dependencies> | ||
</project> | ||
|
60 changes: 60 additions & 0 deletions
60
...tastore-specific-descriptor/src/main/resources/assemblies/datastore-specific-assembly.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> | ||
<id>dist</id> | ||
<includeBaseDirectory>true</includeBaseDirectory> | ||
<baseDirectory>ycsb-${artifactId}-${version}</baseDirectory> | ||
<files> | ||
<file> | ||
<source>README.md</source> | ||
<outputDirectory></outputDirectory> | ||
</file> | ||
</files> | ||
<fileSets> | ||
<fileSet> | ||
<directory>..</directory> | ||
<outputDirectory></outputDirectory> | ||
<fileMode>0644</fileMode> | ||
<includes> | ||
<include>CHANGELOG</include> | ||
<include>LICENSE.txt</include> | ||
<include>NOTICE.txt</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet> | ||
<directory>../bin</directory> | ||
<outputDirectory>bin</outputDirectory> | ||
<fileMode>0755</fileMode> | ||
<includes> | ||
<include>ycsb</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet> | ||
<directory>../workloads</directory> | ||
<outputDirectory>workloads</outputDirectory> | ||
<fileMode>0644</fileMode> | ||
</fileSet> | ||
<fileSet> | ||
<directory>src/main/conf</directory> | ||
<outputDirectory>conf</outputDirectory> | ||
<fileMode>0644</fileMode> | ||
</fileSet> | ||
</fileSets> | ||
<dependencySets> | ||
<dependencySet> | ||
<outputDirectory>lib</outputDirectory> | ||
<includes> | ||
<include>com.yahoo.ycsb:core</include> | ||
</includes> | ||
<scope>provided</scope> | ||
</dependencySet> | ||
<dependencySet> | ||
<outputDirectory>lib</outputDirectory> | ||
<includes> | ||
<include>*:jar:*</include> | ||
</includes> | ||
<excludes> | ||
<exclude>*:sources</exclude> | ||
</excludes> | ||
</dependencySet> | ||
</dependencySets> | ||
</assembly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<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> | ||
|
||
<parent> | ||
<groupId>com.yahoo.ycsb</groupId> | ||
<artifactId>root</artifactId> | ||
<version>0.2.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>binding-parent</artifactId> | ||
<name>YCSB Datastore Binding Parent</name> | ||
<packaging>pom</packaging> | ||
|
||
<description> | ||
This module acts as the parent for new datastore bindings. | ||
It creates a datastore specific binary artifact. | ||
</description> | ||
|
||
<modules> | ||
<module>datastore-specific-descriptor</module> | ||
</modules> | ||
|
||
<build> | ||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<version>${maven.assembly.version}</version> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.yahoo.ycsb</groupId> | ||
<artifactId>datastore-specific-descriptor</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
</dependencies> | ||
<configuration> | ||
<descriptorRefs> | ||
<descriptorRef>datastore-specific-assembly</descriptorRef> | ||
</descriptorRefs> | ||
<finalName>ycsb-${project.artifactId}-${project.version}</finalName> | ||
<formats> | ||
<format>tar.gz</format> | ||
</formats> | ||
<appendAssemblyId>false</appendAssemblyId> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>single</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
<version>${maven.dependency.version}</version> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>stage-dependencies</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>copy-dependencies</goal> | ||
</goals> | ||
<configuration> | ||
<includeScope>runtime</includeScope> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<profiles> | ||
<!-- If the binding defines a README, presume we should make an assembly. --> | ||
<profile> | ||
<id>datastore-binding</id> | ||
<activation> | ||
<file> | ||
<exists>README.md</exists> | ||
</file> | ||
</activation> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
</project> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.