------
Examples
------
Mauro Talevi
------
2008-07-21
------
~~ Licensed to the Apache Software Foundation (ASF) under one
~~ or more contributor license agreements. See the NOTICE file
~~ distributed with this work for additional information
~~ regarding copyright ownership. The ASF licenses this file
~~ to you under the Apache License, Version 2.0 (the
~~ "License"); you may not use this file except in compliance
~~ with the License. You may obtain a copy of the License at
~~
~~ http://www.apache.org/licenses/LICENSE-2.0
~~
~~ Unless required by applicable law or agreed to in writing,
~~ software distributed under the License is distributed on an
~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~~ KIND, either express or implied. See the License for the
~~ specific language governing permissions and limitations
~~ under the License.
Examples
* Shade Plugin with no relocation
+-----
...
org.apache.maven.plugins
maven-shade-plugin
${currentVersion}
package
shade
classworlds:classworlds
junit:junit
jmock:jmock
xml-apis:xml-apis
...
+-----
* Shade Plugin with shaded relocation
+-----
...
org.apache.maven.plugins
maven-shade-plugin
${currentVersion}
package
shade
classworlds:classworlds
junit:junit
jmock:jmock
xml-apis:xml-apis
org.codehaus.plexus.util
org.shaded.plexus.util
org.codehaus.plexus.util.xml.Xpp3Dom
org.codehaus.plexus.util.xml.pull.*
...
+-----
* Shade Plugin with renamed but unattached artifact
+-----
...
org.apache.maven.plugins
maven-shade-plugin
${currentVersion}
package
shade
shaded-artifact
classworlds:classworlds
junit:junit
jmock:jmock
xml-apis:xml-apis
org.codehaus.plexus.util
org.codehaus.plexus.util.xml.Xpp3Dom
org.codehaus.plexus.util.xml.pull.*
...
+-----
* Shade Plugin with renamed and attached artifact
+-----
...
org.apache.maven.plugins
maven-shade-plugin
${currentVersion}
package
shade
shaded-artifact
true
jackofall
classworlds:classworlds
junit:junit
jmock:jmock
xml-apis:xml-apis
org.codehaus.plexus.util
org.codehaus.plexus.util.xml.Xpp3Dom
org.codehaus.plexus.util.xml.pull.*
...
+-----
* Shade Plugin with artifact filtering using includes
+-----
...
org.apache.maven.plugins
maven-shade-plugin
${currentVersion}
package
shade
junit:junit
junit/framework/**
org/junit/**
...
+-----
* Shade Plugin with artifact filtering using includes and excludes
+-----
...
org.apache.maven.plugins
maven-shade-plugin
${currentVersion}
package
shade
junit:junit
junit/framework/**
org/junit/**
org/junit/experimental/**
org/junit/runners/**
...
+-----
* Shade Plugin with artifact filtering using excludes only
+-----
...
org.apache.maven.plugins
maven-shade-plugin
${currentVersion}
package
shade
junit:junit
junit/textui/**
junit/runner/**
junit/extensions/**
org/junit/experimental/**
org/junit/runners/**
...
+-----
* Shade Plugin where a Main-Class is added to the MANIFEST.MF
+-----
...
org.apache.maven.plugins
maven-shade-plugin
${currentVersion}
package
shade
haven-1.0
org.sonatype.haven.HavenCli
...
+-----
* Shade Plugin where a set of manifest entries are added to the MANIFEST.MF
+-----
...
org.apache.maven.plugins
maven-shade-plugin
${currentVersion}
package
shade
haven-1.0
org.sonatype.haven.ExodusCli
123
...
+-----
* Shade Plugin where a set of services entries are concatenated
+-----
...
org.apache.maven.plugins
maven-shade-plugin
${currentVersion}
package
shade
haven-1.0
...
+-----