A bit of clean-up and re-work of the POMs to make sure we only install & deploy the needed artifacts and not those of intermediate projects. Deploying to Maven central requires deploying -sources and -javadoc JARs so this pull request makes us satisfy the latter requirement (and then some).
Manual testing
Ran mvn clean deploy -D performRelease=true -P release and confirmed that the parent project's artifact (the parent POM) was installed and deployed, as well as only the aggregate project/module was:
Generating a -javadoc artifact
Generating a -sources artifact
Installing the JARs (and their PGP signatures) to the local cache
Deploying the JARs (and their PGP signatures) to the snapshot repository
Temporarily configured the GCM4ML to point to version 0.5.5-SNAPSHOT of this library (which was installed/deployed in the previous step) and then rebuilt, including running the unit tests.
Cleared my local cache and rebuilt GCM4ML. The SNAPSHOT artifacts were downloaded from the snapshot repository, except for -sources and -javadoc (these aren't automatically downloaded on purpose). I then instructed Maven to go fetch the associated -javadoc and confirmed that my IDE (IntelliJ IDEA) was able to fetch & render documentation associated with the oauth2-useragent project, even in the absence of the associated source code.
Summary
A bit of clean-up and re-work of the POMs to make sure we only install & deploy the needed artifacts and not those of intermediate projects. Deploying to Maven central requires deploying
-sources
and-javadoc
JARs so this pull request makes us satisfy the latter requirement (and then some).Manual testing
mvn clean deploy -D performRelease=true -P release
and confirmed that the parent project's artifact (the parent POM) was installed and deployed, as well as only the aggregate project/module was:-javadoc
artifact-sources
artifact-sources
and-javadoc
(these aren't automatically downloaded on purpose). I then instructed Maven to go fetch the associated-javadoc
and confirmed that my IDE (IntelliJ IDEA) was able to fetch & render documentation associated with the oauth2-useragent project, even in the absence of the associated source code.Mission accomplished!