So after a long break and a little prompting I finally did the work required to get CDI-Unit deployed to maven central. I hate referencing external repositories, so you probably do as well.
It was a little tricky, but not nearly as hard as I thought. Information that came in handy:
- Sonatype OSS Maven Repository Usage Guide
- What to do when nexus returns 401
- How to generate PGP signatures with maven
The only issue I has was that my credentials didn’t seem to work when uploading artifacts, so after a lot of checking and rechecking my config I eventually reset my password to something else and it all started working.
The artefact hasn’t appeared yet, but it is in Sonatype-Releases, so it should be there in a few hours.
Please note that the group ID has changed so you’ll need to change your dependency to:
<dependency> <groupId>org.jglue.cdi-unit</groupId> <artifactId>cdi-unit</artifactId> <version>2.0.4</version> <scope>test</scope> </dependency>