[jira] Commented: (MNG-2553) Maven Local Settings Model should allow configuration of distributions (distributionManagement)

2010-06-19 Thread Brian Fox (JIRA)

[ 
http://jira.codehaus.org/browse/MNG-2553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=225871#action_225871
 ] 

Brian Fox commented on MNG-2553:


This is simply not how it was designed to work, and there is a perfectly valid 
use case for this already, that's why it's marked won't fix. If you want to see 
an example, take a look at the Maven and Apache parent poms: 
http://svn.apache.org/repos/asf/maven/pom/trunk/

{code}
  distributionManagement
!-- Site omitted - each project must provide their own --
repository
  idapache.releases.https/id
  nameApache Release Distribution Repository/name
  
urlhttps://repository.apache.org/service/local/staging/deploy/maven2/url
/repository
snapshotRepository
  idapache.snapshots.https/id
  name${distMgmtSnapshotsName}/name
  url${distMgmtSnapshotsUrl}/url
/snapshotRepository
  /distributionManagement
  properties
distMgmtSnapshotsNameApache Development Snapshot 
Repository/distMgmtSnapshotsName

distMgmtSnapshotsUrlhttps://repository.apache.org/content/repositories/snapshots/distMgmtSnapshotsUrl
  /properties
{code}

Here we use a property in the distributionManagement section, and define a 
default value for the property in the same pom so that it's always complete. 
However for CI systems, we define a new value for the property in the settings 
that that overrides the pom. We have done this intentionally only for snapshots 
in our case as we don't want people to accidentally release somewhere else.

This is what you want to do and it can already be done in the current design.

 Maven Local Settings Model should allow configuration of distributions 
 (distributionManagement)
 ---

 Key: MNG-2553
 URL: http://jira.codehaus.org/browse/MNG-2553
 Project: Maven 2  3
  Issue Type: Improvement
  Components: Settings
Affects Versions: 2.0.4
Reporter: Jimisola Laursen

 There is a good use case where this would be very useful.
 E.g. I develop a plugin in mojo-sandbox and want to test it in an environment 
 other than the one that I developed it on (e.g. a computer at work). I check 
 out the plugin to this, build and then want to deploy to another repository 
 (e..g a company's internal repository). I don't want to fiddle with the 
 pom.xml of the plugin, just refer to a profile in settings.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MNG-2553) Maven Local Settings Model should allow configuration of distributions (distributionManagement)

2010-06-05 Thread Tom Eugelink (JIRA)

[ 
http://jira.codehaus.org/browse/MNG-2553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=224216#action_224216
 ] 

Tom Eugelink commented on MNG-2553:
---

It is interesting indeed to see it was marked Won't fix; I was just looking 
for exactly this. 
If I can configure in settings.xml a single repository to get stuff from, why 
can't I configure a single repository to put stuff in?

 Maven Local Settings Model should allow configuration of distributions 
 (distributionManagement)
 ---

 Key: MNG-2553
 URL: http://jira.codehaus.org/browse/MNG-2553
 Project: Maven 2  3
  Issue Type: Improvement
  Components: Settings
Affects Versions: 2.0.4
Reporter: Jimisola Laursen

 There is a good use case where this would be very useful.
 E.g. I develop a plugin in mojo-sandbox and want to test it in an environment 
 other than the one that I developed it on (e.g. a computer at work). I check 
 out the plugin to this, build and then want to deploy to another repository 
 (e..g a company's internal repository). I don't want to fiddle with the 
 pom.xml of the plugin, just refer to a profile in settings.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MNG-2553) Maven Local Settings Model should allow configuration of distributions (distributionManagement)

2010-03-27 Thread Bruno Bieth (JIRA)

[ 
http://jira.codehaus.org/browse/MNG-2553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=215691#action_215691
 ] 

Bruno Bieth commented on MNG-2553:
--

Would be nice to have more than a vague pointer : property scheme we use. I 
suppose I should know who are we, what we build, where we's projects are 
stored and guessing which version should be appropriate (I guess using the 
comment date). Eventually I should end up on a pom, which I'll have to go 
through in order to understand the best practice.



 Maven Local Settings Model should allow configuration of distributions 
 (distributionManagement)
 ---

 Key: MNG-2553
 URL: http://jira.codehaus.org/browse/MNG-2553
 Project: Maven 2  3
  Issue Type: Improvement
  Components: Settings
Affects Versions: 2.0.4
Reporter: Jimisola Laursen

 There is a good use case where this would be very useful.
 E.g. I develop a plugin in mojo-sandbox and want to test it in an environment 
 other than the one that I developed it on (e.g. a computer at work). I check 
 out the plugin to this, build and then want to deploy to another repository 
 (e..g a company's internal repository). I don't want to fiddle with the 
 pom.xml of the plugin, just refer to a profile in settings.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MNG-2553) Maven Local Settings Model should allow configuration of distributions (distributionManagement)

2009-12-29 Thread Jason van Zyl (JIRA)

[ 
http://jira.codehaus.org/browse/MNG-2553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=204484#action_204484
 ] 

Jason van Zyl commented on MNG-2553:


Use the property scheme we use in our Hudson grid as a best practice.

 Maven Local Settings Model should allow configuration of distributions 
 (distributionManagement)
 ---

 Key: MNG-2553
 URL: http://jira.codehaus.org/browse/MNG-2553
 Project: Maven 2  3
  Issue Type: Improvement
  Components: Settings
Affects Versions: 2.0.4
Reporter: Jimisola Laursen

 There is a good use case where this would be very useful.
 E.g. I develop a plugin in mojo-sandbox and want to test it in an environment 
 other than the one that I developed it on (e.g. a computer at work). I check 
 out the plugin to this, build and then want to deploy to another repository 
 (e..g a company's internal repository). I don't want to fiddle with the 
 pom.xml of the plugin, just refer to a profile in settings.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MNG-2553) Maven Local Settings Model should allow configuration of distributions (distributionManagement)

2009-08-27 Thread Rogan Creswick (JIRA)

[ 
http://jira.codehaus.org/browse/MNG-2553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=188854#action_188854
 ] 

Rogan Creswick commented on MNG-2553:
-

We've worked around this by moving the repository details to settings.xml as 
properties:

{code:xml}
settings
...
   profiles
  profile
 ...
 properties

releases.urlhttp://10.0.0.20:8081/nexus/content/repositories/releases/releases.url

snapshots.urlhttp://10.0.0.20:8081/nexus/content/repositories/snapshots/snapshots.url
  /properties
  /profile
  ...
   /profiles
   ...
/settings
{code}

then, in the pom:

{code:xml}
  distributionManagement
snapshotRepository
  idsnapshots/id
  nameSnapshots/name
  url${snapshots.url}/url
/snapshotRepository
repository
  idreleases/id
  nameReleases/name
  url${releases.url}/url
/repository
  /distributionManagement
{code}

It's not ideal, but at least external users can define those properties in a 
local settings.xml, or override them in a parent pom (I believe) and maven can 
still be used for non-deploy tasks even if they aren't defined.

 Maven Local Settings Model should allow configuration of distributions 
 (distributionManagement)
 ---

 Key: MNG-2553
 URL: http://jira.codehaus.org/browse/MNG-2553
 Project: Maven 2
  Issue Type: Improvement
  Components: Settings
Affects Versions: 2.0.4
Reporter: Jimisola Laursen
 Fix For: 3.x


 There is a good use case where this would be very useful.
 E.g. I develop a plugin in mojo-sandbox and want to test it in an environment 
 other than the one that I developed it on (e.g. a computer at work). I check 
 out the plugin to this, build and then want to deploy to another repository 
 (e..g a company's internal repository). I don't want to fiddle with the 
 pom.xml of the plugin, just refer to a profile in settings.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MNG-2553) Maven Local Settings Model should allow configuration of distributions (distributionManagement)

2009-07-24 Thread Julien HENRY (JIRA)

[ 
http://jira.codehaus.org/browse/MNG-2553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=184788#action_184788
 ] 

Julien HENRY commented on MNG-2553:
---

The hack provided by Brian doesn't work with site deployment location.

On my CI platform I would like to be able to override distributionManagement of 
all projects whatever is the value in pom.xml.

 Maven Local Settings Model should allow configuration of distributions 
 (distributionManagement)
 ---

 Key: MNG-2553
 URL: http://jira.codehaus.org/browse/MNG-2553
 Project: Maven 2
  Issue Type: Improvement
  Components: Settings
Affects Versions: 2.0.4
Reporter: Jimisola Laursen
 Fix For: 3.x


 There is a good use case where this would be very useful.
 E.g. I develop a plugin in mojo-sandbox and want to test it in an environment 
 other than the one that I developed it on (e.g. a computer at work). I check 
 out the plugin to this, build and then want to deploy to another repository 
 (e..g a company's internal repository). I don't want to fiddle with the 
 pom.xml of the plugin, just refer to a profile in settings.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MNG-2553) Maven Local Settings Model should allow configuration of distributions (distributionManagement)

2007-01-24 Thread Marcos Silva Pereira (JIRA)

[ 
http://jira.codehaus.org/browse/MNG-2553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_85902
 ] 

Marcos Silva Pereira commented on MNG-2553:
---

We also have the same problem here. Solve this problem will be so useful.

 Maven Local Settings Model should allow configuration of distributions 
 (distributionManagement)
 ---

 Key: MNG-2553
 URL: http://jira.codehaus.org/browse/MNG-2553
 Project: Maven 2
  Issue Type: Improvement
  Components: Settings
Affects Versions: 2.0.4
Reporter: Jimisola Laursen

 There is a good use case where this would be very useful.
 E.g. I develop a plugin in mojo-sandbox and want to test it in an environment 
 other than the one that I developed it on (e.g. a computer at work). I check 
 out the plugin to this, build and then want to deploy to another repository 
 (e..g a company's internal repository). I don't want to fiddle with the 
 pom.xml of the plugin, just refer to a profile in settings.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MNG-2553) Maven Local Settings Model should allow configuration of distributions (distributionManagement)

2006-11-29 Thread Chandra Patni (JIRA)
[ http://jira.codehaus.org/browse/MNG-2553?page=comments#action_81460 ] 

Chandra Patni commented on MNG-2553:


We also have a same repository for all projects. However, we don't want to 
specify URL in pom.xml. For instance we have some users on Apple/Linux who use 
file server using a different method.

  distributionManagement
repository
  idmyrepository/id
  urlfile://X://url
/repository
  /distributionManagement


 Maven Local Settings Model should allow configuration of distributions 
 (distributionManagement)
 ---

 Key: MNG-2553
 URL: http://jira.codehaus.org/browse/MNG-2553
 Project: Maven 2
  Issue Type: Improvement
  Components: Settings
Affects Versions: 2.0.4
Reporter: Jimisola Laursen

 There is a good use case where this would be very useful.
 E.g. I develop a plugin in mojo-sandbox and want to test it in an environment 
 other than the one that I developed it on (e.g. a computer at work). I check 
 out the plugin to this, build and then want to deploy to another repository 
 (e..g a company's internal repository). I don't want to fiddle with the 
 pom.xml of the plugin, just refer to a profile in settings.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MNG-2553) Maven Local Settings Model should allow configuration of distributions (distributionManagement)

2006-09-07 Thread Jimisola Laursen (JIRA)
[ http://jira.codehaus.org/browse/MNG-2553?page=comments#action_74293 ] 

Jimisola Laursen commented on MNG-2553:
---

I forgot to say that these should of course be a under a profile and hence also 
exist in profiles.xml.

 Maven Local Settings Model should allow configuration of distributions 
 (distributionManagement)
 ---

 Key: MNG-2553
 URL: http://jira.codehaus.org/browse/MNG-2553
 Project: Maven 2
  Issue Type: Improvement
  Components: Settings
Affects Versions: 2.0.4
Reporter: Jimisola Laursen

 There is a good use case where this would be very useful.
 E.g. I develop a plugin in mojo-sandbox and want to test it in an environment 
 other than the one that I developed it on (e.g. a computer at work). I check 
 out the plugin to this, build and then want to deploy to another repository 
 (e..g a company's internal repository). I don't want to fiddle with the 
 pom.xml of the plugin, just refer to a profile in settings.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira