File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1919 $composer_kar = " ${nexus::plugin::plugin_dir} /nexus-repository-composer-bundle.kar"
2020 $download_url = " https://repo1.maven.org/maven2/org/sonatype/nexus/plugins/nexus-repository-composer/${version} /nexus-repository-composer-${version} -bundle.kar"
2121
22+ if versioncmp($nexus::version , ' 3.74.0' ) > 0 {
23+ file_line { 'disable-built-in-composer-plugin' :
24+ path => " ${nexus::package::install_dir} /system/com/sonatype/nexus/assemblies/nexus-community-feature/${nexus::version} /nexus-community-feature-${nexus::version} -features.xml" ,
25+ line => ' ' ,
26+ match => ' ^\s *<feature version="[^"]*">nexus-repository-composer</feature>' ,
27+ before => Class[' nexus::service' ],
28+ require => Class[' nexus::package' ],
29+ }
30+ }
31+
2232 archive { $composer_kar:
2333 cleanup => false , # if this is true the downloaded file will be deleted
2434 checksum_type => ' sha1' ,
You can’t perform that action at this time.
0 commit comments