• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Maven Question on distribution management

 
Ranch Hand
Posts: 645
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 3063
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 645
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You know it is dark times when the trees riot. I think this tiny ad is their leader:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic