Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Equinox p2 Metadata Generator

The p2 metadata generator is a utility tool that generates metadata and artifact repositories from a given input. The generator is available both as an Eclipse application, and as an Ant task.

Generator Application

The generator application is contained in bundle org.eclipse.equinox.p2.metadata.generator. This bundle is part of the Eclipse SDK, and is also available in the p2 Admin UI.

Describing the input

  • -source the path to a folder containing plugins and folders
  • -updateSite
  • -config
  • -exe
  • -launcherConfig
  • -features
  • -bundles
  • -base
  • -p2.os
  • -site

Describing the output

  • -metadataRepository, the URL to a writtable metadata repository that will contain the produced installable units
  • -metadataRepositoryName, a user friendly name for the metadata repository
  • -artifactRepository, the URL to a writtable artifact repository that will contain the produced artifacts
  • -artifactRepositoryName, a user friendly name for the artifact repository
  • -publishArtifacts, flag indicating whether the artifacts should be published to the repository. When this flag is not set, the actual bytes underlying the artifact will not be copied, but the repository index will be created. When this option is not specified, it is recommended to set the artifactRepository to be in the same location than the source (-source)
  • -publishArtifactRepository
  • -append, flag indicating that repositories will be appended to
  • -root The name of the IU referring to all the IUs that have been added to the repo during the run.
  • -rootVersion The version of the IU
  • -flavor, the flavor associated with the configuration units generated. (This will be removed for 1.0)
  • -inplace
  • -noDefaultIUs
  • -compress, cause the repositories to store their index in compressed form
  • -reusePack200Files publish the existing pack200 files in the repository. This works when the artifact repo is generated in the source.

Generator Ant Task

Copyright © Eclipse Foundation, Inc. All Rights Reserved.