Skip to content

Instantly share code, notes, and snippets.

@edigu
Forked from mbohun/compare_notes.md
Created January 30, 2019 16:14
Show Gist options
  • Save edigu/1e80d2fce78df95458383c6570b6cbbb to your computer and use it in GitHub Desktop.
Save edigu/1e80d2fce78df95458383c6570b6cbbb to your computer and use it in GitHub Desktop.
sonatype nexus compare snapshots / releases
$ $ find sonatype-work/nexus/storage/releases/au -name "*.war" | sed -e 's/sonatype-work\/nexus\/storage\/releases\/au\/org\/ala\///g' -e 's/\/.*$//g' | sort |uniq > /tmp/releases.out

$ find sonatype-work/nexus/storage/snapshots/au -name "*.war" | sed -e 's/sonatype-work\/nexus\/storage\/snapshots\/au\/org\/ala\///g' -e 's/\/.*$//g' | sort |uniq > /tmp/snapshots.out

$ diff -y /tmp/snapshots.out /tmp/releases.out | less
actions                                                       <
ala-cas                                                         ala-cas
                                                              > ala-collectory
                                                              > ala-downloads
ala-hub                                                         ala-hub
ala-images                                                      ala-images
ala-spatial                                                   | ala-keys
                                                              > ala-soils2sat
                                                              > alerts
                                                              > amrin-hub
apikey                                                          apikey
bie-service                                                   | appd-hub
                                                              > asbp-hub
                                                              > avh-hub
                                                              > bhl-ftindex-demo
                                                              > bhl-ftindex-manage
bie-webapp2                                                     bie-webapp2
biocache-service                                                biocache-service
collectory                                                      collectory
dashboard                                                       dashboard
                                                              > datacheck
ecodata                                                         ecodata
                                                              > expert
fieldcapture                                                    fieldcapture
fieldcapture-hub                                                fieldcapture-hub
generic-hub                                                   | fielddata
layers-service                                                | fielddata-proxy
                                                              > fieldguide
                                                              > generic-collectory
logger-service                                                  logger-service
pigeonhole                                                    | obis-hub
                                                              > ozatlas-proxy
                                                              > ozcam-hub
                                                              > phylolink
                                                              > profile-hub
                                                              > profile-service
regions                                                         regions
sandbox                                                         sandbox
sds-webapp2                                                     sds-webapp2
sonatype-work                                                 | sightings
spatial-portal                                                <
specieslist-webapp                                              specieslist-webapp
specimenbrowser                                                 specimenbrowser
taxon-overflow                                                  taxon-overflow
timeseries                                                    | tepapa-hub
                                                              > tviewer
userdetails                                                     userdetails
volunteer-portal                                                volunteer-portal
webapi                                                          webapi
$ find sonatype-work/nexus/storage/snapshots/org -name "*.zip" | sed -e 's/sonatype-work\/nexus\/storage\/snapshots\/org\/grails\/plugins\///g' -e 's/\/.*$//g' | sort |uniq > /tmp/snapshots_plugins.out

$ find sonatype-work/nexus/storage/releases/org -name "*.zip" | sed -e 's/sonatype-work\/nexus\/storage\/releases\/org\/grails\/plugins\///g' -e 's/\/.*$//g' | sort |uniq > /tmp/releases_plugins.out

$ diff -y /tmp/snapshots_plugins.out /tmp/releases_plugins.out | less
ajaxanywhere                                                  <
ala-auth                                                        ala-auth
ala-bootstrap2                                                  ala-bootstrap2
ala-bootstrap3                                                  ala-bootstrap3
                                                              > ala-charts
ala-web-theme                                                   ala-web-theme
                                                              > biocache-hubs
collectory                                                      collectory
fieldcapture-plugin                                           | excel-import
google-visualization                                          <
images-client-plugin                                            images-client-plugin
modules-manager                                               <
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment