NIH | National Cancer Institute | NCI Wiki  

This page outlines the lexevs artifacts that were produced and where they were published on the Informatics Nexus server.  It also shows the migration to the NCI Nexus server and where they are published here.

Status

Below is the status of what has been completed and the work that will be done next.

Completed Work

  • 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.
  • Ability to encrypt the user/pw for publishing using an Ant script.

Work To Do Next

Nexus Servers

Informatics Nexus Server

ProjectPublish ProcessLocation: Release ArtifactsLocation: Snapshot ArtifactsNotes
lexevsant script

16 directories under:

<Same location as the release artifacts>Snapshots and Releases are under the same release directory.
cts2-frameworkmaven script

Snapshots are under a snapshots directory.

Releases are under a release directory.

lexevs-remotemanual

3 directories:

<Same location as the release artifacts>Snapshots and Releases are under the same release directory.

 

NCI 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=<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

 
  • No labels