NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Migrate Nexus LexEVS artifacts from Informatics to NCI Nexus server.
  • Create NCI Nexus user with authority to publish to the NCI Nexus server.
    • Service Account created: NCI_lexevs_nexus
  • Ability for maven build script to publish to NCI Nexus server.
    • CTS2 Framework build can publish artifacts to NCI Nexus Server.
    • Uses Service Account: NCI_lexevs_nexus
  • Ability for Ant build script to publish artifacts to the NCI Nexus server.

Work To Do Next

Work To Do Next

Nexus Servers

Informatics Nexus Server

...

ProjectPublish ProcessLocation: Release ArtifactsLocation: Snapshot ArtifactsNotesStatus
lexevsant script

16 directories under:

16 directories under:

  • To publish to the snapshot directory, the version needs to be in the form of *-SNAPHOT
  • Ant doesn't recognize this correctly.  We additionally need to update lbPackager/ivysettings.xml - Change the ncimvn.releases.repo property to point to the snapshots directory.
  • Create encrypted user/pw on Nexus
    • log into Nexus UI with the user NCI_lexevs_nexus: https://ncimvn.nci.nih.gov/nexus/#welcome
    • Select “profile” in the upper right pulldown
    • Select "User Token in the drop down.
    • Click “Access User Token”.
    • For our purposes, we don't need the encrypted user.  (The user name is in our ivysettings.xml.) 
    • Copy the encrypted password and use it in the Ant deploy command. 

Success publishing lexevs artifacts to NCI Nexus server using an encrypted password.

  • Uses
    • ant -Dncimvn.password=<password> <encrypted password> deploy
      • password is for user NCI_lexevs_nexus
cts2-frameworkmaven script

https://ncimvn.nci.nih.gov/nexus/content/repositories/LexEVSSnapshots/edu/mayo/cts2/cts2-framework/

https://ncimvn.nci.nih.gov/nexus/content/repositories/LexEVSSnapshots/edu/mayo/cts2/framework/

  • cts2-* directories
 

Success publishing CTS2 Framework to NCI Nexus server.

  • Uses
    • mvn release:prepare
    • mvn release:perform
  • User: NCI_lexevs_nexus
  • Note the above way will automatically update all of the pom files versions.  This is a two step process.

Alternatively, if the version is already set in the pom file, you can run the following to build and put the artifacts on the Nexus server:

  • mvn clean deploy
lexevs-remotemanual

3 directories:

TBD

Need to determine if snapshots will go to the lexevs release or snapshot directory:

Snapshot directory