New to maven, so please excuse any obvious idiocy. I'm using maven 2.
I'm trying to get some control over plugins. I was just trying to do
the standard "mvn archetype:create ...; mvn compile" on a fresh install
and got errors downloading necessary plugins:
....
Project ID: classworlds:classworlds
Reason: Error getting POM for 'classworlds:classworlds' from the
repository: Error transferring file
classworlds:classworlds:1.1-alpha-2:pom
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
snapshots (http://snapshots.maven.codehaus.org/maven2)
....
Now, the first item is that I think it's ridiculous for the snapshot
repo to be included by default. You may be willing to deal with the
inevitable brokenness of bleeding-edge releases, but you should be
required to inflict that breakage on yourself, not everyone that comes
along and tries to do the first thing in the guide. My install image is
a few days old, perhaps this is already fixed. Or perhaps I'm
misreading the situation here.
Second, there obviously should be a way to say, "ok, don't download
those alpha snapshot plugins; just give me stuff from the standard
repo." plugin-registry.xml appears to be the place to do it, however I
don't have one of those in my ~/.m2 directory and the page describing it
(http://maven.apache.org/guides/introduction/introduction-to-plugin-registry.html)
doesn't actually give an example or basic structure for one, so I have
no idea what it should look like. Any help with this?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]