Those are two totally different things. distMgmt is where you want to deploy
to. repositories declare what repos you want to pull artifacts you depend
on.

/Anders

On Tue, Jan 18, 2011 at 09:40, jeb001 <[email protected]> wrote:

>
> Ok, I'll try to precise what I'm saying.
> I understand that in the distrMgt, I have to set snapshot, release and
> eventually site url.. I understood in the log that the deploy task needs
> that tag.
>
> I noticed too that I need another tag in the pom file, a repositories tag.
> I wonder why I have to set twice where are my repositories ?
> Here's my file :
>
>
> <repositories>
>        <!-- use the following if you're not using a snapshot version. -->
>        <repository>
>                <id>repository-releases</id>
>                <name>Releases Repository</name>
>                <url>
>                        http://nexus/content/repositories/DNSCEReleases/
> </url>
>                <snapshots>
>                        <enabled>false</enabled>
>                </snapshots>
>        </repository>
>        <repository>
>                <id>-repository-snapshots</id>
>                <name>Snapshots Repository</name>
>                <url>http://nexus/content/repositories/DNSCESnapshots/
> </url>
>                <releases>
>                        <enabled>false</enabled>
>                </releases>
>                <snapshots>
>                        <enabled>true</enabled>
>                </snapshots>
>        </repository>
> </repositories>
>
> <distributionManagement>
>   <!-- use the following if you're not using a snapshot version. -->
>   <repository>
>      <id>repository-releases</id>
>     <name>Repository Name</name>
>     <url>http://nexus/content/repositories/DNSCESnapshots/</url>
>   </repository>
>   <!-- use the following if you ARE using a snapshot version. -->
>   <snapshotRepository>
>     <id>repository-snapshots</id>
>     <name>Snapshots Repository</name>
>     <url>http://nexus/content/repositories/DNSCESnapshots/</url>
>   </snapshotRepository>
>  </distributionManagement>
>
>
> Maybe, in the distributionMgt tag, I just have to set the id of the repo
> described upon it ?
>
> Thx
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Maven-release-perform-deploy-failed-access-denied-tp3339497p3345810.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to