![]() To install this script, just run the following : curl -v -X POST -u : -header "Content-Type:application/json" -d can then test it easily with : curl -v -X POST -u : -header "Content-Type: text/plain" " -d "com.my. to install Java, Tomcat (or whichever container you like), Git and Maven 3. the version Maven used to use (with the -SNAPSHOT suffix). While Github offers customized features, Sonatype Nexus Lifecycle has diverse. You can then use it to get the baseVersion i.e. Follow through the steps provided in this guide to install Nexus repository manager on Debian 11. Install Nexus Repository Manager on Debian 11. In this tutorial, we will be installing the OSS version. This class provides extra information about its container with the function attributes(). OSS Edition: Universally manage binaries and artifacts for FREE. The interesting part here is the tx.findComponents() that returns generic Component class. StorageFacet storageFacet = repo.facet(StorageFacet) ĭef tx = storageFacet.txSupplier().get() ĭef components = tx.findComponents(Query.builder().where('group = ').param(groupId).build(), ) ĭef baseVersion = it.attributes().child('maven2').get('baseVersion') Import .storage.StorageFacet ĭef repo = (repositoryId) Here's an example of a script I used to write to return all versions for a given group and repository. You can create a script in Groovy and upload it to Nexus to do what you want.
0 Comments
Leave a Reply. |