Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven Question on distribution management

 
Praful Thakare
Ranch Hand
Posts: 642
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am testing Archiva with maven and have simplest structure as below.

http://my.build.server:8080/archiva/repository/internal

http://my.build.server:8080/archiva/repository/snapshots

now when i run mvn deploy -Psnapshots, i want the artifact to be deployed under snapshots on archiva and not under internal so i created profile in settings.xml.



And pom.xml as distribution management as follows




and i exeucte maven as mvn deploy -Psnapshots

still it always tries to deploy to internal.

maven version maven-2.0.7

any help?

-Praful
 
Greg Charles
Sheriff
Posts: 2985
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can run:

mvn -Psnapshots help:active-profiles

just to be sure that the profile you want is actually getting activated. I think though that you may be confusing what you mean by snapshot and what it means to the distributionManagement plugin.
 
Praful Thakare
Ranch Hand
Posts: 642
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks much for your reply Greg, the output of help:active-profiles is

The following profiles are active:
- snapshots (source: settings.xml)


and now i found that i was using vesion as snapshot instead of SNAPSHOT , all works fine now.


-Praful
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic