gshell-embeddable
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.apache.geronimo.gshell</groupId>
<artifactId>gshell-embeddable</artifactId>
<version>1.0-alpha-1</version>
</dependency><?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/maven-v4_0_0.xsd">
<parent>
<artifactId>gshell</artifactId>
<groupId>org.apache.geronimo.gshell</groupId>
<version>1.0-alpha-1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>gshell-embeddable</artifactId>
<name>GShell Embeddable</name>
<version>1.0-alpha-1</version>
<description>Provides an all in one dependency for easily embedding GShell.</description>
<build>
<plugins>
<plugin>
<artifactId>maven-remote-resources-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<skip>true</skip>
<resourceBundles>
<resourceBundle>org.apache.geronimo.genesis:legal-bundle:1.3</resourceBundle>
</resourceBundles>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>shade-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<excludes>
<exclude>org.codehaus.plexus:plexus-component-api</exclude>
<exclude>org.codehaus.plexus:plexus-classworlds</exclude>
<exclude>org.slf4j:slf4j-simple</exclude>
<exclude>junit:junit</exclude>
<exclude>org.apache.geronimo.genesis.config:logging-config</exclude>
</excludes>
</artifactSet>
<transformers>
<transformer />
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo.groovy</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>// First clean up
def dir = new File(project.build.directory, 'legal-work')
ant.delete(dir: dir)
ant.mkdir(dir: dir)
// Then unpack the main artifact, excluding the legal muck
def file = new File(project.build.directory, "${project.build.finalName}.jar")
ant.unzip(src: file, dest: dir) {
patternset {
// Exclude any legal muck we find, cause its probably wrong
exclude(name: 'META-INF/LICENSE*')
exclude(name: 'META-INF/NOTICE*')
// Exclude, as the LICENSE and NOTICE should include all legal details, this just makes things fuzzy
exclude(name: 'META-INF/NOTES.TXT')
// Exclude this too, all details should be in the LICENSE and NOTICE files
exclude(name: 'licenses/**')
}
}
// Then install our static bits
def resources = new File(project.basedir, 'src/main/resources')
ant.copy(todir: dir) {
fileset(dir: resources) {
include(name: '**')
}
}
// And make a copy for sanity and re-zip her up
ant.copy(file: file, tofile: "${file}.orig", overwrite: true)
ant.delete(file: file)
ant.zip(destfile: file, basedir: dir)</source>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>