I think I see the problem, but am not in a great position to test right
now. Can you try applying this patch:
http://gist.github.com/294758
Justin
On 2/4/10 10:22 AM, Ian Boston wrote:
Hi, (Justin probably)
With todays snapshot of the maven-launchpad-plugin I am seeing problems.
pom in question is at
http://github.com/ieb/open-experiments/blob/master/slingtests/osgikernel/app/pom.xml
I have a list.xml containing everything
dhcp-49:app ieb$ ls -l
/Users/ieb/timefields/open-experiments/slingtests/osgikernel/app/src/main/bundles/list.xml
-rw-r--r-- 1 ieb ieb 22554 3 Feb 18:02
/Users/ieb/timefields/open-experiments/slingtests/osgikernel/app/src/main/bundles/list.xml
dhcp-49:app ieb$
and I exclude the default set
<includeDefaultBundles>false</includeDefaultBundles>
When I build, the jar only contains an unpacked version of
org.apache.sling.launchpad.base-2.1.1-SNAPSHOT.jar
and nothing from the list.xml
Looking at the current code for the plugin it should load list.xml, and mvn -X
clean install confirms my config the section below.
Any ideas, I will stick some debug in the plugin to see whats happening.
Ian
[DEBUG] Configuring mojo
'org.apache.sling:maven-launchpad-plugin:2.0.5-SNAPSHOT:prepare-package' -->
[DEBUG] (f) baseDestination = resources
[DEBUG] (f) buildOutputDirectory =
/Users/ieb/timefields/open-experiments/slingtests/osgikernel/app/target/classes
[DEBUG] (f) bundleListFile =
/Users/ieb/timefields/open-experiments/slingtests/osgikernel/app/src/main/bundles/list.xml
[DEBUG] (f) bundlesDirectory = bundles
[DEBUG] (f) includeDefaultBundles = false
[DEBUG] (s) groupId = org.sakaiproject.kernel
[DEBUG] (s) artifactId = org.sakaiproject.kernel.jetty-config
[DEBUG] (s) version = 0.3-SNAPSHOT
[DEBUG] (s) startLevel = 5
[DEBUG] (f) jarWebSupport = AdditionalBundle
[artifactId=org.sakaiproject.kernel.jetty-config, classifier=null,
groupId=org.sakaiproject.kernel, startLevel=5, type=null, version=0.3-SNAPSHOT]
[DEBUG] (f) local = Repository[local|file:///Users/ieb/.m2/repository]
[DEBUG] (f) packaging = jar
[DEBUG] (f) project = MavenProject:
org.sakaiproject.kernel:org.sakaiproject.kernel.app:0.3-SNAPSHOT @
/Users/ieb/timefields/open-experiments/slingtests/osgikernel/app/pom.xml
[DEBUG] (f) remoteRepos =
[Repository[local-repository|file:////Users/ieb/.m2/repository],
Repository[sakai-maven|http://source.sakaiproject.org/maven2],
Repository[EclipseLink
Repo|http://mirror.cc.columbia.edu/pub/software/eclipse/rt/eclipselink/maven.repo/],
Repository[OPS4J|http://repository.ops4j.org/maven2], Repository[maven
repo|http://repo1.maven.org/maven2/],
Repository[apache-snapshots|http://repository.apache.org/snapshots/],
Repository[central|http://repo1.maven.org/maven2]]
[DEBUG] (f) warOutputDirectory =
/Users/ieb/timefields/open-experiments/slingtests/osgikernel/app/target/launchpad-bundles
[DEBUG] -- end configuration --
[INFO] [launchpad:prepare-package {execution: prepare-package-jar}]
[INFO] Copying base artifact from
/Users/ieb/.m2/repository/org/apache/sling/org.apache.sling.launchpad.base/2.1.1-SNAPSHOT/org.apache.sling.launchpad.base-2.1.1-SNAPSHOT.jar
to
/Users/ieb/timefields/open-experiments/slingtests/osgikernel/app/target/classes/resources/org.apache.sling.launchpad.base.jar.
[INFO] Unpacking
/Users/ieb/.m2/repository/org/apache/sling/org.apache.sling.launchpad.base/2.1.1-SNAPSHOT/org.apache.sling.launchpad.base-2.1.1-SNAPSHOT-app.jar
to
/Users/ieb/timefields/open-experiments/slingtests/osgikernel/app/target/classes
[DEBUG] Expanding:
/Users/ieb/.m2/repository/org/apache/sling/org.apache.sling.launchpad.base/2.1.1-SNAPSHOT/org.apache.sling.launchpad.base-2.1.1-SNAPSHOT-app.jar
into
/Users/ieb/timefields/open-experiments/slingtests/osgikernel/app/target/classes
[DEBUG] expand complete
[DEBUG] Plugin dependencies for: