java - Maven and dependency:sources goals: use alternate repository to download sources? -


i working enterprise nexus repository, contents rather static, meaning not copy of central, snapshot @ time.

this nexus repository not contains sources classifier. hence, when launch 1 of goals:

mvn dependency:sources mvn eclipse:eclipse 

i've got lot, if not all, of dependencies without sources.

what want pretty simple: want tell dependency , eclipse plugins should use central repository when looking sources.

if possible natively?

can nexus , how ?

if not manager of nexus server out of luck. can work around using nexus server, maybe installed locally, access central corporate, locked-down instance.

however, likely, not allowed that.. locking down reason have static repo in first place.

i suggest work nexus administrator add javadoc , sources static repo.

and btw. have little tool can provision repository called maven repository provisioner , can include javadoc , sources. check out @ https://github.com/simpligility/maven-repository-tools


Comments