NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
cjs1976
Joined: 16 Jul 2012 Posts: 4
|
Posted: Mon Jul 30, 2012 3:30 pm Post subject: Automatic deployment of a maven project to an external repository. |
|
|
Hi!
I want to deploy the generated jar file of my maven project to an external maven repository.
I tried changes in the settings.xml, pom.xml and in my maven project properties, but if I do a 'clean and build', the generated jar file is deployed (installed) to my local repository on drive C:
Thanks,
Christian. |
|
| Back to top |
|
 |
Milos Kleint Posted via mailing list.
|
Posted: Mon Jul 30, 2012 5:48 pm Post subject: Automatic deployment of a maven project to an external repository. |
|
|
"mvn deploy" is what you want. there's no default action for it in the
IDE as that's something not done so frequently. You need some
configuration on the pom side as well, based on the details of your
repository
Milos
On Mon, Jul 30, 2012 at 5:30 PM, cjs1976 <address-removed> wrote:
| Quote: | Hi!
I want to deploy the generated jar file of my maven project to an external maven repository.
I tried changes in the settings.xml, pom.xml and in my maven project properties, but if I do a 'clean and build', the generated jar file is deployed (installed) to my local repository on drive C:
Thanks,
Christian.
|
|
|
| Back to top |
|
 |
cjs1976
Joined: 16 Jul 2012 Posts: 4
|
Posted: Tue Jul 31, 2012 8:08 am Post subject: |
|
|
But if I do a 'Clean and Build' the generated JAR and POM are automatically installed to my local repository. Is there no way to change from local to the external repository?
There is also a Maven Deploy Plugin (http://maven.apache.org/plugins/maven-deploy-plugin) I tried, but all my settings in the pom.xml where ignored.
Is this really the only way to do this over the command line with a 'mvn install' or a 'mvn deploy'?
Thanks,
Christian. |
|
| Back to top |
|
 |
Milos Kleint Posted via mailing list.
|
Posted: Wed Aug 01, 2012 6:36 am Post subject: Automatic deployment of a maven project to an external repository. |
|
|
On Tue, Jul 31, 2012 at 10:08 AM, cjs1976 <address-removed> wrote:
| Quote: | But if I do a 'Clean and Build' the generated JAR and POM are automatically installed to my local repository. Is there no way to change from lokal to the external repository?
|
there is. change the mapping for the Build and Clean and Build action
from mvn install to mvn deploy.. but as you mention below, it doesn't
work for you so far on cmd line so it won't work here either.
| Quote: |
There is also a Maven Deploy Plugin (http://maven.apache.org/plugins/maven-deploy-plugin) I tried, but all my settings in the pom.xml where ignored.
Is this really the only way to do this over the command line with a 'mvn install' or a 'mvn deploy'?
|
please read http://www.sonatype.com/books/mvnref-book/reference/ or
maven's online documentation to learn about how to configure your
project.
Milos
| Quote: | Thanks,
Christian.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|