Lexical Tools - Deploy to Maven Remote Repository
Lvg is deployed to Maven remote repository for NLM internal users to build their Java software using Maven.
- Physical location:
${SUPPORT_DIR}/Maven/lvg
- Maven deploy processes:
- shell>cd ${LVG_DIR}
- mvn clean
- mvn compile
- mvn package
- mvn assembly:single
- mvn deploy
- How to use Maven remote repository:
Add the following lines in the pom.xml to build applications
<!-- specify the url for dependency of lvg from remote repository -->
<repositories>
<repository>
<id>LVG-NLM</id>
<name>LSG Maven Repository</name>
<url>file:/nfsvol/lex/Lu/Supports/Maven/lvg/</url>
</repository>
</repositories>
<!-- specify the groupId, artifact and version for lvg -->
<dependencies>
<dependency>
<groupId>gov.nih.nlm</groupId>
<artifactId>lvg</artifactId>
<version>1.0.0.2019</version>
</dependency>
</dependencies>
- Other notes:
- The Maven remote repository is only used for build
- You will need to download and install lvg on your local machine to run lvg
- Download: https://lexlx1vm.nlm.nih.gov/LexSysGroup/Projects/lvg/current/web/index.html
- Install: https://lexlx1vm.nlm.nih.gov/LexSysGroup/Projects/lvg/current/docs/userDoc/install/install.html
- After the installation, you will need to add one of the following to your classpath to run:
- ${LVG_DIR}/lib/lvg2019dist.jar
- /nfsvol/lex/Lu/Supports/Maven/lvg/gov/nih/nlm/lvg/1.0.0.2019/lvg-1.0.0.2019-jar-with-dependencies.jar
- Make sure you use the correct lvg configuration file: ${LVG_DIR}/data/config/lvg.properties