How to specify additional archive file extensions for Sonatype Lifecycle CLI

This article discusses an advanced feature that may be removed or altered in future Sonatype Lifecycle versions. We do not advise using it without first consulting Sonatype Support.

Summary

The Sonatype Lifecycle CLI can open a fixed set of archive types when scanning files. Sometimes file naming conventions prevent Sonatype from recognizing valid archive types it supports.

How to specify additional archive file extensions for the Sonatype Lifecycle CLI

The Sonatype Lifecycle CLI exposes a system property that can list additional file extensions that should be treated as valid archive types.

The system property names correspond to the type of archive supported. The property values are a list of additional file extensions (with or without a leading period) to recognize as the archive type indicated by the property name.

System Property Names:

  • jar
  • zip
  • tar
  • tgz
  • tbz
  • txz

How a property is specified depends on the tool.

Maven Plugin

Use a system property for Maven, for example:

-Dzip=ipa,foo,bar

Command Line Scanner

Add it as a program argument, for example:

java -jar nexus-iq-cli-1.19.0.jar -D zip=ipa,foo,bar -s http://localhost:8070 -i app-id

Hudson/Jenkins CI

The advanced config section of the Sonatype Lifecycle configuration contains a field. Enter values as a key:value format:

zip:ipa,foo,bar
Have more questions? Submit a request

0 Comments

Article is closed for comments.