You can use -DaltDeploymentRepository=...

http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html

On Mon, Mar 17, 2008 at 9:40 PM, Néstor Boscán <[EMAIL PROTECTED]> wrote:
> I put it inside settings.xml and I get:
>
>     <distributionManagement>
>         <repository>
>             <id>repo</id>
>             <name>Repository</name>
>             <url>dav:http://someurl/maven2</url>
>         </repository>
>         <snapshotRepository>
>             <id>repo</id>
>             <name>Repository</name>
>             <url>dav:http://someurl/maven2</url>
>         </snapshotRepository>
>     </distributionManagement>
>
>  Error reading settings.xml: Unrecognised tag: 'distributionManagement'
>  (position
>  : START_TAG seen ...</activeProfiles>\r\n  -->\r\n
>  <distributionManagement>..
>  . @241:29)
>   Line:   241
>   Column: 29
>
>  What I need is to set this on a PC level and not at POM level.
>
>  Regards,
>
>  Néstor Boscán
>  -----Mensaje original-----
>  De: news [mailto:[EMAIL PROTECTED] En nombre de Jan Torben Heuer
>  Enviado el: Lunes, 17 de Marzo de 2008 08:36 a.m.
>  Para: users@maven.apache.org
>  Asunto: Re: Is there a way to deploy project without configuring pom.xml
>
>
>
>  Néstor Boscán wrote:
>
>  > Hi
>  >
>  > Is there a way to deploy the project to a remote repository without
>  > configuring distributionManagement inside the pom.xml. Can I do this
>  > on the settings.xml or pass the info on the command?
>
>  Yes, it works here fine with the settings.xml. we don't have
>  distributionManagement inside our pom.xml
>
>  Jan
>
>
>  ---------------------------------------------------------------------
>  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]
>
>

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

Reply via email to