Created
November 12, 2009 20:19
-
-
Save justinedelson/233240 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<plugin> | |
<groupId>org.apache.sling</groupId> | |
<artifactId>maven-sling-plugin</artifactId> | |
<version>...</version> | |
<executions> | |
<execution> | |
<goals><goal>prepare</goal></goals> <!-- granted, this is a questionable goal name --> | |
</execution> | |
</executions> | |
<configuration> | |
<includeDefaultBundles>true</includeDefaultBundles> <!-- if true, contents of org.apache.sling.launchpad.bundles get unpacked --> | |
<defaultBundlesVersion>6-SNAPSHOT</defaultBundlesVersion> <!-- support LATEST, RELEASE here ? --> | |
<outputDirectory>${project.build.directory}/launchpad-bundles</outputDirectory> | |
<!-- this is for additional bundle JAR/WAR files --> | |
<additionalBundles> | |
<bundle> | |
<startLevel>5</startLevel> | |
<groupId>foo</groupId> | |
<artifactId>bar</artifactId> | |
<version>1.0</version> | |
</bundle> | |
...repeat... | |
</additionalBundles> | |
<!-- this is for additional collections of bundles, structured in the same way as org.apache.sling.launchpad.bundles --> | |
<additionalBundleAssemblies> | |
<bundleAssembly> | |
<groupId>foo</groupId> | |
<artifactId>bar</artifactId> | |
<version>1.0</version> | |
<bundleAssembly> | |
...repeat... | |
</addtionalBundleAssemblies> | |
</configuration> | |
</plugin> | |
replaces: | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<executions> | |
<execution> | |
<!-- Unpack the sling-app launcher for inclusion in the web app --> | |
<id>unpack-dependencies</id> | |
<goals> | |
<goal>unpack-dependencies</goal> | |
</goals> | |
<configuration> | |
<includeArtifactIds> | |
org.apache.sling.launchpad.bundles | |
</includeArtifactIds> | |
<includes> | |
resources/** | |
</includes> | |
<excludeTransitive>true</excludeTransitive> | |
<outputDirectory> | |
${project.build.directory}/launchpad-bundles | |
</outputDirectory> | |
<overWriteReleases>false</overWriteReleases> | |
<overWriteSnapshots> | |
true | |
</overWriteSnapshots> | |
</configuration> | |
</execution> | |
<!-- Launcher Jar --> | |
<execution> | |
<id>copy-launcher-jar</id> | |
<goals> | |
<goal>copy</goal> | |
</goals> | |
<configuration> | |
<artifactItems> | |
<artifactItem> | |
<groupId>org.apache.sling</groupId> | |
<artifactId>org.apache.sling.launchpad.base</artifactId> | |
<!-- WARNING this pom contains two references to launchpad.base, keep them in sync! --> | |
<version>2.0.5-SNAPSHOT</version> | |
</artifactItem> | |
</artifactItems> | |
<stripVersion>true</stripVersion> | |
<excludeTransitive>true</excludeTransitive> | |
<outputDirectory> | |
${project.build.directory}/launchpad-bundles/resources | |
</outputDirectory> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
... | |
<dependency> | |
<groupId>org.apache.sling</groupId> | |
<artifactId>org.apache.sling.launchpad.bundles</artifactId> | |
<version>6-SNAPSHOT</version> | |
<scope>provided</scope> | |
<optional>true</optional> | |
</dependency> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment