Skip to content

An example maven project illustrating how to use Oracle's maven repo

License

Notifications You must be signed in to change notification settings

robin-a-meade/example-maven-oracle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An example maven project illustrating how to use Oracle's maven repo.

Instructions

If you don't already have a free Oracle Account, create one.

Accept the Terms and Conditions of Oracle's Maven Repo by going to https://maven.oracle.com

Make a copy of the sample config files for editing:

cp -r config-sample config

Edit config/settings.xml to fill in your Oracle Account username (email address) and password

  • if you want to encrypt your password, you need to create a master password, put it in settings-security.xml, and then encrypt your Oracle Account password. See links in the See also section below for details.
  • otherwise, just enter your plain-text password in setting.xml and delete settings-security.xml.
mvn --settings=./config/settings.xml -Dsettings.security=./config/settings-security.xml dependency:resolve

Above command will resolve the dependencies that are declared in pom.xml. The first time this is called, it will download the Oracle JDBC driver to your local repository. Subsequent calls will just verify that the JDBC driver exists in your local respository.

Notes

For this example, I put settings.xml and settings-security.xml files in a config subdirectory just to make it a self-contained example.

Typically you'd have these files in your ~/.m2 directory. In that case, the maven command would be simplified to:

mvn dependency:resolve

See also

About

An example maven project illustrating how to use Oracle's maven repo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published