On Thu, Mar 12, 2009 at 8:26 PM, youhaodeyi <[email protected]> wrote:

> I have a dependency with a SNAPSHOT version, when I run mvn command, maven
> will show that the dependency can't be found from the specified remote
> repositories:  central (http://repo1.maven.org/maven2). I wander why it
> searches http://repo1.maven.org/maven2. I have specified the repository in
> distributionManagement.

The distributionManagement section is for publishing, not for retrieving.

You'll want <repositories> and <pluginRepositories> for retrieving
artifacts.  They can go either in settings.xml or in the pom.

-- 
Wendy

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

Reply via email to