Skip to content

Commit

Permalink
add BndPomRepository to _plugin.xml
Browse files Browse the repository at this point in the history
- so that it appears in the UI
- improve some default values
- sort MavenBndRepo as first

Signed-off-by: Christoph Rueger <[email protected]>
  • Loading branch information
chrisrueger committed Apr 7, 2024
1 parent 55cd769 commit 4ca991d
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions bndtools.core/_plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@

<!-- BND PLUGINS -->
<extension point="bndtools.core.bndPlugins">
<plugin class="aQute.lib.deployer.FileRepo" rank="10"
<plugin class="aQute.lib.deployer.FileRepo" rank="9"
icon="icons/bundlefolder.png" name="File Repository"
helpUrl="https://bnd.bndtools.org/plugins/filerepo.html">
<property name="name" type="string"
Expand Down Expand Up @@ -895,15 +895,16 @@

<plugin class="aQute.bnd.repository.maven.provider.MavenBndRepository"
icon="icons/database.png"
name="MavenBndRepository"
helpUrl="https://bnd.bndtools.org/plugins/maven.html">
<property name="name" type="string" description="The name of this repository" />
name="Maven Bnd Repository"
helpUrl="https://bnd.bndtools.org/plugins/maven.html"
rank="10">
<property name="name" type="string" description="The name of this repository" default="Maven Repository" />
<property name="releaseUrl" type="string" description="The urls to the remote release repository." default="https://repo.maven.apache.org/maven2/" />
<property name="stagingUrl" type="string" description="The url of the staging release repository." />
<property name="snapshotUrl" type="string" description="The urls to the remote snapshot repository." default="http://repository.apache.org/snapshots/" />
<property name="local" type="string" description="The path to the local repository" default="~/.m2/repository" />
<property name="readOnly" type="boolean" description="" default="false" />
<property name="index" type="string" description="The path to the index file" default="cnf/central.maven" />
<property name="index" type="string" description="The path to the index file" default="${.}/cnf/central.maven" />
<property name="source" type="string" description="Content added to the index file. Content maybe one line without CR/LF as long as there is a comma or whitespace separating the GAVs. Further same format as the index file." />
<property name="noupdateOnRelease" type="boolean" description="Do not update the index when a file is released" />
<property name="poll_time" type="int" description="Sets the time in seconds when to check for changes in the pom-files" default="5" />
Expand All @@ -917,9 +918,27 @@
name="P2Repository"
helpUrl="https://bnd.bndtools.org/plugins/p2repo.html">
<property name="name" type="string" description="The name of this repository" default="P2Repository" />
<property name="url" type="string" description="The URL to either the P2 repository (a directory) or an Eclipse target platform" />
<property name="url" type="string" description="The URL to either the P2 repository (a directory) or an Eclipse target platform. Required." />
<property name="location" type="string" description="The location to store the index file. Default: 'cnf/cache/p2-index-reponame/index.xml.gz'" />
</plugin>

<plugin class="aQute.bnd.repository.maven.pom.provider.BndPomRepository"
icon="icons/database.png"
name="Maven POM Repository"
helpUrl="https://bnd.bndtools.org/plugins/p2repo.html">
<property name="name" type="string" description="The name of the repo. Required." default="Maven POM Repository" />
<property name="releaseUrl" type="string" description="The url to the remote release repository. Can be a comma separated list of urls." default="https://repo.maven.apache.org/maven2/" />
<property name="snapshotUrl" type="string" description="The url to the remote snapshot repository. If this is not specified, it falls back to the release repository or just local if this is also not specified. Can be a comma separated list of urls." default="http://repository.apache.org/snapshots/" />
<property name="local" type="string" description="The path to the local repository" default="~/.m2/repository" />
<property name="revision" type="string" description="Coordinates of a maven revision. I.e. group:artifactid[:c]:version. Can be a comma separated list of GAVs." />
<property name="location" type="string" description="Points to a file that is used as the cache. It will be in OSGi format." />
<property name="pom" type="string" description="Points to a pom.xml file. This is exclusive with revision. Can be a comma separated list of files." default="${.}/cnf/pom.xml" />
<property name="query" type="string" description="The query used to search Maven Central Search." />
<property name="queryUrl" type="string" description="The url of the Maven Central Search." />
<property name="transitive" type="boolean" description="Allow transitive dependencies" />
<property name="poll_time" type="int" description="Sets the time in seconds when to check for changes in the pom-files" default="300" />
<property name="dependencyManagement" type="boolean" description="Also considers the dependency management section of a POM. Default is false." default="false" />
</plugin>

</extension>

Expand Down

0 comments on commit 4ca991d

Please sign in to comment.