• Intro Headers Instructions Macros Commands
Fork me on GitHub
    • Getting Started
      • Introduction
      • How to install bnd
      • Guided Tour Workspace & Projects
      • bnd / bndlib Features and JAR Wrapping Techniques
      • FAQ - Frequently Asked Questions
    • Concepts and Practices
      • Concepts
      • Background
      • Best practices
    • Build and Development
      • Build
      • Generating JARs
      • Versioning
      • Baselining
      • Service Components
      • Metatype
      • Contracts
      • Bundle Annotations
      • Accessor Properties
      • SPI Annotations
    • Dependency and Launching
      • Resolving Dependencies
      • Launching
      • Startlevels
    • Testing
      • Testing
      • Testing with Launchpad
    • Packaging and Distribution
      • Packaging Applications
      • JPMS Libraries
      • Wrapping Libraries to OSGi Bundles
    • Documentation and Tools
      • Generating Documentation
      • bnd CLI Commands
      • For Developers
      • Templates for Workspaces
      • Tips for Windows users
      • Tools bound to bnd
    • Reference Material
      • Reference
      • Headers
      • Instruction Reference
      • Instruction Index
      • Macro Reference
      • Macro Index
      • Plugins
      • External Plugins
    • Configuration and Troubleshooting
      • Settings
      • Errors
      • Warnings
  • -buildrepo repo ( ',' repo ) *

    Prev Next
    Project
    After building a JAR, release the JAR to the given repositories.

    • Example: -buildrepo=Local

    • Pattern: .*



    The -buildrepo instruction allows you to automatically release JARs built by a project to one or more specified repositories. After building, if -buildrepo is set, the resulting JARs are placed into the named repositories, which must already exist in the workspace. You can also provide additional properties to control the release context for each repository.

    The syntax is as follows:

     -buildrepo   ::= repo ( ',' repo )*
     repo			::= NAME ( ';' NAME ('=' VALUE)? )*
    

    The instruction provides a name of a repository, the repository must exist in the workspace. Any properties added to the name are provided as properties in the release context and thus given to the repository.

    This feature was inspired by the Maven Bnd Repository. In the Maven development process, projects are installed in the local repository (usually ~/.m2/repository) so they can be shared with other Maven projects. Setting the -buildrepo to a Maven repository will allow a bnd workspace to participate in this process on equal footing. Every time the project is build, all its JARs are installed in the associated Maven repository.

    For example:

    -plugin.maven  \
    	aQute.bnd.repository.maven.provider.MavenBndRepository; \
    	name=Local
    	
    -buildrepo: Local
    

    The install process is taking place in-line with the build process. It is therefore recommended to only use this for local (i.e. file system based) installs.


    TODO Needs review - AI Generated content

Prev Next
Search
    • Home