gshell org.apache.geronimo.gshell 1.0-alpha-2-r654638 4.0.0 gshell-embeddable GShell Embeddable 1.0-alpha-2-r654638 Provides an all in one dependency for easily embedding GShell. maven-remote-resources-plugin process true maven-shade-plugin package shade org.codehaus.plexus:plexus-classworlds org.slf4j:slf4j-simple junit:junit org.apache.geronimo.genesis.config:logging-config org.codehaus.mojo.groovy groovy-maven-plugin package execute // 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/**') } } // HACK: maven-shade-plugin 1.0 seems to alter the basedir def basedir = project.basedir if (basedir.path.endsWith('target')) { basedir = basedir.parentFile } // Then install our static bits def resources = new File(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) org.slf4j slf4j-simple 1.5.0 test junit junit 3.8.2 test org.apache.geronimo.genesis.config logging-config 1.3 test