Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Re: [pde-dev] error running P2 metadata generation

Can you try
p2.gathering = true

(instead of generate.metadata = true).  This should use the publisher (the new tool for generating metadata).

cheers,
ian

On Mon, Jul 13, 2009 at 7:07 PM, Nick Boldt <nickboldt@xxxxxxxxx> wrote:
Some guesses:

* ${buildDirectory} is not defined
* ${buildDirectory} contains spaces
* ${buildDirectory} contains the wrong slashes
* repo.name properties need to be wrapped with quotes

You could try running the generator by hand and pass in all the required parameters. Here's the syntax I used the last time I had to regen metadata for an update site:

cd /tmp/jbtm2nupdate/3.1.0.M2; rm -fr artifacts.jar content.jar; \
/home/nboldt/eclipse/eclipse/eclipse -vm /opt/jdk1.5.0/bin/java \
-workspace /tmp/workspace -application \
org.eclipse.equinox.p2.metadata.generator.EclipseGenerator \
 -updateSite /tmp/jbtm2nupdate/3.1.0.M2/ \
 -source /tmp/jbtm2nupdate/3.1.0.M2/ \
 -site file:/tmp/jbtm2nupdate/3.1.0.M2/site.xml \
 -features /tmp/jbtm2nupdate/3.1.0.M2/features/ \
 -bundles /tmp/jbtm2nupdate/3.1.0.M2/bundles/ \
 -metadataRepository file:/tmp/jbtm2nupdate/3.1.0.M2/ \
 -artifactRepository file:/tmp/jbtm2nupdate/3.1.0.M2/ \
 -metadataRepositoryName "JBoss Tools Update Site" \
 -artifactRepositoryName "JBoss Tools Artifacts" \
 -noDefaultIUs -compress -reusePack200Files; \
rm -fr /tmp/workspace:

Copying to p2-dev@xxxxxxxxxxx in case they have a better idea than I.

N


Mark Russell wrote:
I'm trying to build the P@ metadata with the PDE build.  When I run it I get a null pointer exception.  Here is the trace:
generate.p2.metadata:
[p2.generator] Generating metadata for f:\build\openArbor\temp\eclipse.build\tmp\openarbor.
[p2.generator] Generation completed with success [28 seconds].

customAssembly:
        [zip] Updating zip: f:\build\openArbor\temp\eclipse.build\I.200907131324\200907131324-win32.win32.x86.zip
     [delete] Deleting directory f:\build\openArbor\temp\eclipse.build\tmp

generate.p2.metadata:
[p2.generator] Generating metadata for null.

BUILD FAILED
F:\ws\ddci\com.ddci.openarbor.application\build-product.xml:91: The following error occurred while executing this line:
F:\ws\ddci\openarbor.pde.build\build-pde.xml:71: The following error occurred while executing this line:
C:\eclipses\eclipse_342\plugins\org.eclipse.pde.build_3.4.1.R34x_v20081217\scripts\productBuild\productBuild.xml:31: The following error occurred while executing this line:
C:\eclipses\eclipse_342\plugins\org.eclipse.pde.build_3.4.1.R34x_v20081217\scripts\build.xml:102: The following error occurred while executing this line:
F:\ws\ddci\openarbor.pde.build\customTargets.xml:10: The following error occurred while executing this line:
C:\eclipses\eclipse_342\plugins\org.eclipse.pde.build_3.4.1.R34x_v20081217\scripts\productBuild\allElements.xml:10: The following error occurred while executing this line:
C:\eclipses\eclipse_342\plugins\org.eclipse.pde.build_3.4.1.R34x_v20081217\scripts\genericTargets.xml:165: The following error occurred while executing this line:
f:\build\openArbor\temp\eclipse.build\package.org.eclipse.pde.build.container.feature.all.xml:24: The following error occurred while executing this line:
f:\build\openArbor\temp\eclipse.build\package.org.eclipse.pde.build.container.feature.all.xml:31: An error occurred when calling generator.

Total time: 4 minutes 17 seconds

here is my product.properties file p2 segment:
generate.p2.metadata=true
p2.metadata.repo = file:${buildDirectory}/repo
p2.artifact.repo = file:${buildDirectory}/repo
p2.metadata.repo.name = OpenArbor Meta Repo
p2.artifact.repo.name = OpenArbor Artifact Repo
p2.flavor = tooling
p2.publish.artifacts=true

can anyone shed some light on why I'm getting the NPE?


--
Nick Boldt :: http://nick.divbyzero.com
Release Engineer :: Eclipse Modeling & Dash Athena
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev



--
R. Ian Bull | EclipseSource Victoria | +1 250 477 7484
http://eclipsesource.com | http://twitter.com/eclipsesource

Back to the top