On Aug 16, 2010, at 10:18 AM, Justin Edelson wrote:

One "in and out" to learn is that your distinction of "internal" and
"external" repositories isn't found in Maven.

I found it here:

http://docs.codehaus.org/display/MAVENUSER/Maven+Concepts+Repositories

Is the term "external repository" not valid?

Also, I just wanted to be a good Maven citizen and take a load off Central, if that wasn't too hard to do.
Again, as a single developer, it isn't possible to take load off Central
(or mirrors) because you always need to download artifacts at least
once. And unless you do the things I said above, you never need to
download artifacts *more than once*.

I guess I was thinking of SNAPSHOT dependencies, in which case Central would be queried on every build, right? But then, I never depend on SNAPSHOT versions of external artifacts, so yeah, it wouldn't make much difference.

But perhaps the most important reason is that I need to deploy customized versions of some Maven plugins. There are a couple I'm using on Central that are buggy, and might not be updated for awhile, so I need to deploy and use versions that have the bugs fixed. It's not clear to me if I need a repository manager for that, or if I can get away with the non-managed repository I have now for deploying project artifacts (and the site).
You don't need a repository manager for this. You can deploy these
artifacts to your own remote repository.

Okay, let me make sure I understand this. Say I've got a main artifact and a customized plugin that it depends on. I can configure the plugin to deploy to my own remote repository by adding the repository info to the plugin POM's <distributionManagement>. So now the plugin is available in my repository. But here's where I get a little confused... How does the main artifact know how to retrieve the deployed plugin from my remote repository? Do I simply add the remote repository URL to the main POM's <pluginRepositories>? (This seems to be discouraged: "I have yet to hear a convincing argument for doing so" [1]) Or should I add it to <repositories>? Or somewhere else?

Thanks,

Trevor

[1] http://maven.apache.org/pom.html#Plugin_Repositories


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to