Hi,

Philip Constantinou schrieb:
Hi -

I'm struggling a little with setting up an inhouse repository.

I've been looking at:
http://www.sonatype.com/book/repository.html#creating_an_in-house_repository

but the documentation about settings.xml seems to cause an error:

Error reading settings.xml: Unrecognised tag: 'distributionManagement' (position: START_TAG seen ...<profile>\n <distributionManagement>... @4:31)
 Line:   4
 Column: 31


How should I configure my settings.xml to say where to put my deployments?

based on the error you get and the settings description here [1], it seems like it's a bug in the documentation and the <distributionManagement/> tag is not available in the settings.xml. You have to specifiy this directly in your pom.

Also, what's the recommendations on configuring snapshots vs. releases?
I've tried:

<repositories>
   <repository>
     <releases />
     <snapshots>
       <enabled>true</enabled>
     </snapshots>
     <id>foo-repository</id>
     <url>http://foo.com/maven2</url>
   </repository>

The default value of the <enabled/> tags is 'true' so you need to overwrite it for the types you don't want to fetch from a repository.

Thanks -
Phil

-Tim

[1] http://maven.apache.org/ref/current/maven-settings/settings.html




------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to