[jira] (MRELEASE-767) releasing flat multi-module projects using git

2014-12-07 Thread reda abdi (JIRA)

[ 
https://jira.codehaus.org/browse/MRELEASE-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=358764#comment-358764
 ] 

reda abdi commented on MRELEASE-767:


This is still happening in version 2.5.1

 releasing flat multi-module projects using git
 --

 Key: MRELEASE-767
 URL: https://jira.codehaus.org/browse/MRELEASE-767
 Project: Maven Release Plugin
  Issue Type: Bug
  Components: prepare
Affects Versions: 2.3.1
 Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
 Maven home: /usr/share/maven
 Java version: 1.6.0_31, vendor: Apple Inc.
 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.7.4, arch: x86_64, family: mac
Reporter: Jeremy Norris
Assignee: Mark Struberg
 Fix For: 2.5


 When releasing a project as follows:
 ./parent/pom.xml
 ./module-a/pom.xml
 ./module-b/pom.xml
 From the parent directory, with an scm config in the parent pom.xml (only) as 
 follows:
 scm
   connectionscm:git:ssh://github.com/repox.git/connection
   
 developerConnectionscm:git:ssh://github.com/repox.git/developerConnection
   tagmaster/tag
   urlhttps://github.com/view/repox.git/url
 /scm
 In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this 
 indiscriminately:
 url = realignScmUrl( parentLevels, url );
 This will trim the repo url from 'ssh://github.com/repox.git' - 
 'ssh://github.com', which will cause a failure when pushing the tag.
 This type of realignment is not appropriate when using a git scm type.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)


[jira] (MRELEASE-767) releasing flat multi-module projects using git

2014-09-11 Thread JIRA

[ 
https://jira.codehaus.org/browse/MRELEASE-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=352657#comment-352657
 ] 

Grégory Joseph commented on MRELEASE-767:
-

Same here, although I am trying to do {{mvn release:prepare -am -pl 
some-module}} so presumably that's part of the problem
(i have the same scm info in both the reactor and the top-most module of the 
list gathered with -am-pl)

 releasing flat multi-module projects using git
 --

 Key: MRELEASE-767
 URL: https://jira.codehaus.org/browse/MRELEASE-767
 Project: Maven Release Plugin
  Issue Type: Bug
  Components: prepare
Affects Versions: 2.3.1
 Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
 Maven home: /usr/share/maven
 Java version: 1.6.0_31, vendor: Apple Inc.
 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.7.4, arch: x86_64, family: mac
Reporter: Jeremy Norris
Assignee: Mark Struberg
 Fix For: 2.5


 When releasing a project as follows:
 ./parent/pom.xml
 ./module-a/pom.xml
 ./module-b/pom.xml
 From the parent directory, with an scm config in the parent pom.xml (only) as 
 follows:
 scm
   connectionscm:git:ssh://github.com/repox.git/connection
   
 developerConnectionscm:git:ssh://github.com/repox.git/developerConnection
   tagmaster/tag
   urlhttps://github.com/view/repox.git/url
 /scm
 In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this 
 indiscriminately:
 url = realignScmUrl( parentLevels, url );
 This will trim the repo url from 'ssh://github.com/repox.git' - 
 'ssh://github.com', which will cause a failure when pushing the tag.
 This type of realignment is not appropriate when using a git scm type.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)


[jira] (MRELEASE-767) releasing flat multi-module projects using git

2014-09-11 Thread JIRA

[ 
https://jira.codehaus.org/browse/MRELEASE-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=352657#comment-352657
 ] 

Grégory Joseph edited comment on MRELEASE-767 at 9/11/14 11:09 AM:
---

Same here, although I am trying to do {{mvn release:prepare -am -pl 
some-module}} so presumably that's part of the problem
(i have the same scm info in both the reactor and the top-most module of the 
list gathered with -am-pl, and maven removes the last path item from it when 
trying to push)


was (Author: gjoseph):
Same here, although I am trying to do {{mvn release:prepare -am -pl 
some-module}} so presumably that's part of the problem
(i have the same scm info in both the reactor and the top-most module of the 
list gathered with -am-pl)

 releasing flat multi-module projects using git
 --

 Key: MRELEASE-767
 URL: https://jira.codehaus.org/browse/MRELEASE-767
 Project: Maven Release Plugin
  Issue Type: Bug
  Components: prepare
Affects Versions: 2.3.1
 Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
 Maven home: /usr/share/maven
 Java version: 1.6.0_31, vendor: Apple Inc.
 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.7.4, arch: x86_64, family: mac
Reporter: Jeremy Norris
Assignee: Mark Struberg
 Fix For: 2.5


 When releasing a project as follows:
 ./parent/pom.xml
 ./module-a/pom.xml
 ./module-b/pom.xml
 From the parent directory, with an scm config in the parent pom.xml (only) as 
 follows:
 scm
   connectionscm:git:ssh://github.com/repox.git/connection
   
 developerConnectionscm:git:ssh://github.com/repox.git/developerConnection
   tagmaster/tag
   urlhttps://github.com/view/repox.git/url
 /scm
 In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this 
 indiscriminately:
 url = realignScmUrl( parentLevels, url );
 This will trim the repo url from 'ssh://github.com/repox.git' - 
 'ssh://github.com', which will cause a failure when pushing the tag.
 This type of realignment is not appropriate when using a git scm type.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)


[jira] (MRELEASE-767) releasing flat multi-module projects using git

2014-04-01 Thread Kelly Davis (JIRA)

[ 
https://jira.codehaus.org/browse/MRELEASE-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=343942#comment-343942
 ] 

Kelly Davis commented on MRELEASE-767:
--

I see this is still closed/fixed.. can someone else try this out and confirm 
that it is still not working. I can also provide build output if that would 
help.

 releasing flat multi-module projects using git
 --

 Key: MRELEASE-767
 URL: https://jira.codehaus.org/browse/MRELEASE-767
 Project: Maven Release Plugin
  Issue Type: Bug
  Components: prepare
Affects Versions: 2.3.1
 Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
 Maven home: /usr/share/maven
 Java version: 1.6.0_31, vendor: Apple Inc.
 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.7.4, arch: x86_64, family: mac
Reporter: Jeremy Norris
Assignee: Mark Struberg
 Fix For: 2.5


 When releasing a project as follows:
 ./parent/pom.xml
 ./module-a/pom.xml
 ./module-b/pom.xml
 From the parent directory, with an scm config in the parent pom.xml (only) as 
 follows:
 scm
   connectionscm:git:ssh://github.com/repox.git/connection
   
 developerConnectionscm:git:ssh://github.com/repox.git/developerConnection
   tagmaster/tag
   urlhttps://github.com/view/repox.git/url
 /scm
 In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this 
 indiscriminately:
 url = realignScmUrl( parentLevels, url );
 This will trim the repo url from 'ssh://github.com/repox.git' - 
 'ssh://github.com', which will cause a failure when pushing the tag.
 This type of realignment is not appropriate when using a git scm type.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)


[jira] (MRELEASE-767) releasing flat multi-module projects using git

2014-03-27 Thread Dan McNulty (JIRA)

[ 
https://jira.codehaus.org/browse/MRELEASE-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=343748#comment-343748
 ] 

Dan McNulty commented on MRELEASE-767:
--

For those brought here by a web search, this appears to be fixed in the latest 
the plugin (2.5, at time of writing). This issue was being seen with version 
2.0 and upgrading to 2.5 fixed the issue.

Perhaps this issue should be resolved?

 releasing flat multi-module projects using git
 --

 Key: MRELEASE-767
 URL: https://jira.codehaus.org/browse/MRELEASE-767
 Project: Maven Release Plugin
  Issue Type: Bug
  Components: prepare
Affects Versions: 2.3.1
 Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
 Maven home: /usr/share/maven
 Java version: 1.6.0_31, vendor: Apple Inc.
 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.7.4, arch: x86_64, family: mac
Reporter: Jeremy Norris
Assignee: Mark Struberg

 When releasing a project as follows:
 ./parent/pom.xml
 ./module-a/pom.xml
 ./module-b/pom.xml
 From the parent directory, with an scm config in the parent pom.xml (only) as 
 follows:
 scm
   connectionscm:git:ssh://github.com/repox.git/connection
   
 developerConnectionscm:git:ssh://github.com/repox.git/developerConnection
   tagmaster/tag
   urlhttps://github.com/view/repox.git/url
 /scm
 In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this 
 indiscriminately:
 url = realignScmUrl( parentLevels, url );
 This will trim the repo url from 'ssh://github.com/repox.git' - 
 'ssh://github.com', which will cause a failure when pushing the tag.
 This type of realignment is not appropriate when using a git scm type.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)


[jira] (MRELEASE-767) releasing flat multi-module projects using git

2014-03-27 Thread Dan McNulty (JIRA)

[ 
https://jira.codehaus.org/browse/MRELEASE-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=343748#comment-343748
 ] 

Dan McNulty edited comment on MRELEASE-767 at 3/27/14 3:20 PM:
---

For those brought here by a web search, this appears to be fixed in the latest 
plugin (2.5, at time of writing). This issue was being seen with version 2.0 
and upgrading to 2.5 fixed the issue.

Perhaps this issue should be resolved?


was (Author: mcnulty):
For those brought here by a web search, this appears to be fixed in the latest 
the plugin (2.5, at time of writing). This issue was being seen with version 
2.0 and upgrading to 2.5 fixed the issue.

Perhaps this issue should be resolved?

 releasing flat multi-module projects using git
 --

 Key: MRELEASE-767
 URL: https://jira.codehaus.org/browse/MRELEASE-767
 Project: Maven Release Plugin
  Issue Type: Bug
  Components: prepare
Affects Versions: 2.3.1
 Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
 Maven home: /usr/share/maven
 Java version: 1.6.0_31, vendor: Apple Inc.
 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.7.4, arch: x86_64, family: mac
Reporter: Jeremy Norris
Assignee: Mark Struberg

 When releasing a project as follows:
 ./parent/pom.xml
 ./module-a/pom.xml
 ./module-b/pom.xml
 From the parent directory, with an scm config in the parent pom.xml (only) as 
 follows:
 scm
   connectionscm:git:ssh://github.com/repox.git/connection
   
 developerConnectionscm:git:ssh://github.com/repox.git/developerConnection
   tagmaster/tag
   urlhttps://github.com/view/repox.git/url
 /scm
 In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this 
 indiscriminately:
 url = realignScmUrl( parentLevels, url );
 This will trim the repo url from 'ssh://github.com/repox.git' - 
 'ssh://github.com', which will cause a failure when pushing the tag.
 This type of realignment is not appropriate when using a git scm type.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)


[jira] (MRELEASE-767) releasing flat multi-module projects using git

2014-03-27 Thread Mark Struberg (JIRA)

 [ 
https://jira.codehaus.org/browse/MRELEASE-767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Struberg closed MRELEASE-767.
--

   Resolution: Fixed
Fix Version/s: 2.5

indeed, thanks for testing it!

 releasing flat multi-module projects using git
 --

 Key: MRELEASE-767
 URL: https://jira.codehaus.org/browse/MRELEASE-767
 Project: Maven Release Plugin
  Issue Type: Bug
  Components: prepare
Affects Versions: 2.3.1
 Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
 Maven home: /usr/share/maven
 Java version: 1.6.0_31, vendor: Apple Inc.
 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.7.4, arch: x86_64, family: mac
Reporter: Jeremy Norris
Assignee: Mark Struberg
 Fix For: 2.5


 When releasing a project as follows:
 ./parent/pom.xml
 ./module-a/pom.xml
 ./module-b/pom.xml
 From the parent directory, with an scm config in the parent pom.xml (only) as 
 follows:
 scm
   connectionscm:git:ssh://github.com/repox.git/connection
   
 developerConnectionscm:git:ssh://github.com/repox.git/developerConnection
   tagmaster/tag
   urlhttps://github.com/view/repox.git/url
 /scm
 In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this 
 indiscriminately:
 url = realignScmUrl( parentLevels, url );
 This will trim the repo url from 'ssh://github.com/repox.git' - 
 'ssh://github.com', which will cause a failure when pushing the tag.
 This type of realignment is not appropriate when using a git scm type.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)


[jira] (MRELEASE-767) releasing flat multi-module projects using git

2014-03-27 Thread Kelly Davis (JIRA)

[ 
https://jira.codehaus.org/browse/MRELEASE-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=343752#comment-343752
 ] 

Kelly Davis commented on MRELEASE-767:
--

I just tried 2.5 on one of my projects and unfortunately it is does not appear 
to be fixed. It looks like the scm url is still getting mangled. This should be 
re-opened

 releasing flat multi-module projects using git
 --

 Key: MRELEASE-767
 URL: https://jira.codehaus.org/browse/MRELEASE-767
 Project: Maven Release Plugin
  Issue Type: Bug
  Components: prepare
Affects Versions: 2.3.1
 Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
 Maven home: /usr/share/maven
 Java version: 1.6.0_31, vendor: Apple Inc.
 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.7.4, arch: x86_64, family: mac
Reporter: Jeremy Norris
Assignee: Mark Struberg
 Fix For: 2.5


 When releasing a project as follows:
 ./parent/pom.xml
 ./module-a/pom.xml
 ./module-b/pom.xml
 From the parent directory, with an scm config in the parent pom.xml (only) as 
 follows:
 scm
   connectionscm:git:ssh://github.com/repox.git/connection
   
 developerConnectionscm:git:ssh://github.com/repox.git/developerConnection
   tagmaster/tag
   urlhttps://github.com/view/repox.git/url
 /scm
 In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this 
 indiscriminately:
 url = realignScmUrl( parentLevels, url );
 This will trim the repo url from 'ssh://github.com/repox.git' - 
 'ssh://github.com', which will cause a failure when pushing the tag.
 This type of realignment is not appropriate when using a git scm type.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)


[jira] (MRELEASE-767) releasing flat multi-module projects using git

2013-11-09 Thread Robert Scholte (JIRA)

[ 
https://jira.codehaus.org/browse/MRELEASE-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=335482#comment-335482
 ] 

Robert Scholte commented on MRELEASE-767:
-

One day I'd like to be able to remove all the scm specific workarounds from 
this plugin, so the suggestion done by [~jnorris] isn't the preferred solution. 
Instead this should be fixed in one of the {{ScmTranslators}}

 releasing flat multi-module projects using git
 --

 Key: MRELEASE-767
 URL: https://jira.codehaus.org/browse/MRELEASE-767
 Project: Maven Release Plugin
  Issue Type: Bug
  Components: prepare
Affects Versions: 2.3.1
 Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
 Maven home: /usr/share/maven
 Java version: 1.6.0_31, vendor: Apple Inc.
 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.7.4, arch: x86_64, family: mac
Reporter: Jeremy Norris
Assignee: Mark Struberg

 When releasing a project as follows:
 ./parent/pom.xml
 ./module-a/pom.xml
 ./module-b/pom.xml
 From the parent directory, with an scm config in the parent pom.xml (only) as 
 follows:
 scm
   connectionscm:git:ssh://github.com/repox.git/connection
   
 developerConnectionscm:git:ssh://github.com/repox.git/developerConnection
   tagmaster/tag
   urlhttps://github.com/view/repox.git/url
 /scm
 In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this 
 indiscriminately:
 url = realignScmUrl( parentLevels, url );
 This will trim the repo url from 'ssh://github.com/repox.git' - 
 'ssh://github.com', which will cause a failure when pushing the tag.
 This type of realignment is not appropriate when using a git scm type.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] (MRELEASE-767) releasing flat multi-module projects using git

2013-11-07 Thread Christoph Lenggenhager (JIRA)

[ 
https://jira.codehaus.org/browse/MRELEASE-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=335355#comment-335355
 ] 

Christoph Lenggenhager commented on MRELEASE-767:
-

What is the status here?
The possibilities to fix this where it actually breaks are not that nice, but 
the above patch is actually working.
It would be great to have this fixed in a release of the near future.
It basically prevents anyone to use git, maven and eclipse in a flat multi-mode 
project.

 releasing flat multi-module projects using git
 --

 Key: MRELEASE-767
 URL: https://jira.codehaus.org/browse/MRELEASE-767
 Project: Maven Release Plugin
  Issue Type: Bug
  Components: prepare
Affects Versions: 2.3.1
 Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
 Maven home: /usr/share/maven
 Java version: 1.6.0_31, vendor: Apple Inc.
 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.7.4, arch: x86_64, family: mac
Reporter: Jeremy Norris
Assignee: Mark Struberg

 When releasing a project as follows:
 ./parent/pom.xml
 ./module-a/pom.xml
 ./module-b/pom.xml
 From the parent directory, with an scm config in the parent pom.xml (only) as 
 follows:
 scm
   connectionscm:git:ssh://github.com/repox.git/connection
   
 developerConnectionscm:git:ssh://github.com/repox.git/developerConnection
   tagmaster/tag
   urlhttps://github.com/view/repox.git/url
 /scm
 In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this 
 indiscriminately:
 url = realignScmUrl( parentLevels, url );
 This will trim the repo url from 'ssh://github.com/repox.git' - 
 'ssh://github.com', which will cause a failure when pushing the tag.
 This type of realignment is not appropriate when using a git scm type.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] (MRELEASE-767) releasing flat multi-module projects using git

2012-12-10 Thread Kelly Davis (JIRA)

[ 
https://jira.codehaus.org/browse/MRELEASE-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=315374#comment-315374
 ] 

Kelly Davis commented on MRELEASE-767:
--

Ran into this same issue today. The workaround I am currently using is to set 
pushChanges=false and then manually git push; git push --tags between the 
release:prepare and release:perform steps.

 releasing flat multi-module projects using git
 --

 Key: MRELEASE-767
 URL: https://jira.codehaus.org/browse/MRELEASE-767
 Project: Maven 2.x Release Plugin
  Issue Type: Bug
  Components: prepare
Affects Versions: 2.3.1
 Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
 Maven home: /usr/share/maven
 Java version: 1.6.0_31, vendor: Apple Inc.
 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.7.4, arch: x86_64, family: mac
Reporter: Jeremy Norris
Assignee: Mark Struberg

 When releasing a project as follows:
 ./parent/pom.xml
 ./module-a/pom.xml
 ./module-b/pom.xml
 From the parent directory, with an scm config in the parent pom.xml (only) as 
 follows:
 scm
   connectionscm:git:ssh://github.com/repox.git/connection
   
 developerConnectionscm:git:ssh://github.com/repox.git/developerConnection
   tagmaster/tag
   urlhttps://github.com/view/repox.git/url
 /scm
 In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this 
 indiscriminately:
 url = realignScmUrl( parentLevels, url );
 This will trim the repo url from 'ssh://github.com/repox.git' - 
 'ssh://github.com', which will cause a failure when pushing the tag.
 This type of realignment is not appropriate when using a git scm type.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MRELEASE-767) releasing flat multi-module projects using git

2012-06-04 Thread Jeremy Norris (JIRA)

[ 
https://jira.codehaus.org/browse/MRELEASE-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=300341#comment-300341
 ] 

Jeremy Norris commented on MRELEASE-767:


The workaround I am using for now (although a more proper fix is needed wrt the 
maven scm API and the release manager):

--- a/src/main/java/org/apache/maven/shared/release/util/ReleaseUtil.java
+++ b/src/main/java/org/apache/maven/shared/release/util/ReleaseUtil.java
@@ -179,7 +179,12 @@ public class ReleaseUtil
 FileUtils.normalize( releaseDescriptor.getWorkingDirectory() ) );
 
 String url = releaseDescriptor.getScmSourceUrl();
-url = realignScmUrl( parentLevels, url );
+if (!url.matches(scm:git.*)) {
+  String urlOrig = url;
+  url = realignScmUrl( parentLevels, url );
+  // No logger available:
+  System.out.println(SCM source URL realignment:  + urlOrig +  =  
+ url);
+}
 
 ReleaseDescriptor descriptor = new ReleaseDescriptor();
 descriptor.setWorkingDirectory( basedir );


 releasing flat multi-module projects using git
 --

 Key: MRELEASE-767
 URL: https://jira.codehaus.org/browse/MRELEASE-767
 Project: Maven 2.x Release Plugin
  Issue Type: Bug
  Components: prepare
Affects Versions: 2.3.1
 Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
 Maven home: /usr/share/maven
 Java version: 1.6.0_31, vendor: Apple Inc.
 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.7.4, arch: x86_64, family: mac
Reporter: Jeremy Norris

 When releasing a project as follows:
 ./parent/pom.xml
 ./module-a/pom.xml
 ./module-b/pom.xml
 From the parent directory, with an scm config in the parent pom.xml (only) as 
 follows:
 scm
   connectionscm:git:ssh://github.com/repox.git/connection
   
 developerConnectionscm:git:ssh://github.com/repox.git/developerConnection
   tagmaster/tag
   urlhttps://github.com/view/repox.git/url
 /scm
 In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this 
 indiscriminately:
 url = realignScmUrl( parentLevels, url );
 This will trim the repo url from 'ssh://github.com/repox.git' - 
 'ssh://github.com', which will cause a failure when pushing the tag.
 This type of realignment is not appropriate when using a git scm type.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MRELEASE-767) releasing flat multi-module projects using git

2012-06-04 Thread Jeremy Norris (JIRA)

[ 
https://jira.codehaus.org/browse/MRELEASE-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=300341#comment-300341
 ] 

Jeremy Norris edited comment on MRELEASE-767 at 6/4/12 4:09 PM:


The workaround I am using for now (although a more proper fix is needed wrt the 
maven scm API and the release manager):

{noformat}
--- a/src/main/java/org/apache/maven/shared/release/util/ReleaseUtil.java
+++ b/src/main/java/org/apache/maven/shared/release/util/ReleaseUtil.java
@@ -179,7 +179,12 @@ public class ReleaseUtil
 FileUtils.normalize( releaseDescriptor.getWorkingDirectory() ) );
 
 String url = releaseDescriptor.getScmSourceUrl();
-url = realignScmUrl( parentLevels, url );
+if (!url.matches(scm:git.*)) {
+  String urlOrig = url;
+  url = realignScmUrl( parentLevels, url );
+  // No logger available:
+  System.out.println(SCM source URL realignment:  + urlOrig +  =  
+ url);
+}
 
 ReleaseDescriptor descriptor = new ReleaseDescriptor();
 descriptor.setWorkingDirectory( basedir );
{noformat}

  was (Author: jnorris):
The workaround I am using for now (although a more proper fix is needed wrt 
the maven scm API and the release manager):

--- a/src/main/java/org/apache/maven/shared/release/util/ReleaseUtil.java
+++ b/src/main/java/org/apache/maven/shared/release/util/ReleaseUtil.java
@@ -179,7 +179,12 @@ public class ReleaseUtil
 FileUtils.normalize( releaseDescriptor.getWorkingDirectory() ) );
 
 String url = releaseDescriptor.getScmSourceUrl();
-url = realignScmUrl( parentLevels, url );
+if (!url.matches(scm:git.*)) {
+  String urlOrig = url;
+  url = realignScmUrl( parentLevels, url );
+  // No logger available:
+  System.out.println(SCM source URL realignment:  + urlOrig +  =  
+ url);
+}
 
 ReleaseDescriptor descriptor = new ReleaseDescriptor();
 descriptor.setWorkingDirectory( basedir );

  
 releasing flat multi-module projects using git
 --

 Key: MRELEASE-767
 URL: https://jira.codehaus.org/browse/MRELEASE-767
 Project: Maven 2.x Release Plugin
  Issue Type: Bug
  Components: prepare
Affects Versions: 2.3.1
 Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
 Maven home: /usr/share/maven
 Java version: 1.6.0_31, vendor: Apple Inc.
 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.7.4, arch: x86_64, family: mac
Reporter: Jeremy Norris

 When releasing a project as follows:
 ./parent/pom.xml
 ./module-a/pom.xml
 ./module-b/pom.xml
 From the parent directory, with an scm config in the parent pom.xml (only) as 
 follows:
 scm
   connectionscm:git:ssh://github.com/repox.git/connection
   
 developerConnectionscm:git:ssh://github.com/repox.git/developerConnection
   tagmaster/tag
   urlhttps://github.com/view/repox.git/url
 /scm
 In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this 
 indiscriminately:
 url = realignScmUrl( parentLevels, url );
 This will trim the repo url from 'ssh://github.com/repox.git' - 
 'ssh://github.com', which will cause a failure when pushing the tag.
 This type of realignment is not appropriate when using a git scm type.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MRELEASE-767) releasing flat multi-module projects using git

2012-06-04 Thread Robert Scholte (JIRA)

 [ 
https://jira.codehaus.org/browse/MRELEASE-767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte reassigned MRELEASE-767:
---

Assignee: Mark Struberg

I've talked with Mark about this. He'll have a look at it once he has some more 
time.

 releasing flat multi-module projects using git
 --

 Key: MRELEASE-767
 URL: https://jira.codehaus.org/browse/MRELEASE-767
 Project: Maven 2.x Release Plugin
  Issue Type: Bug
  Components: prepare
Affects Versions: 2.3.1
 Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
 Maven home: /usr/share/maven
 Java version: 1.6.0_31, vendor: Apple Inc.
 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.7.4, arch: x86_64, family: mac
Reporter: Jeremy Norris
Assignee: Mark Struberg

 When releasing a project as follows:
 ./parent/pom.xml
 ./module-a/pom.xml
 ./module-b/pom.xml
 From the parent directory, with an scm config in the parent pom.xml (only) as 
 follows:
 scm
   connectionscm:git:ssh://github.com/repox.git/connection
   
 developerConnectionscm:git:ssh://github.com/repox.git/developerConnection
   tagmaster/tag
   urlhttps://github.com/view/repox.git/url
 /scm
 In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this 
 indiscriminately:
 url = realignScmUrl( parentLevels, url );
 This will trim the repo url from 'ssh://github.com/repox.git' - 
 'ssh://github.com', which will cause a failure when pushing the tag.
 This type of realignment is not appropriate when using a git scm type.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MRELEASE-767) releasing flat multi-module projects using git

2012-06-01 Thread Jeremy Norris (JIRA)
Jeremy Norris created MRELEASE-767:
--

 Summary: releasing flat multi-module projects using git
 Key: MRELEASE-767
 URL: https://jira.codehaus.org/browse/MRELEASE-767
 Project: Maven 2.x Release Plugin
  Issue Type: Bug
  Components: prepare
Affects Versions: 2.3.1
 Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
Maven home: /usr/share/maven
Java version: 1.6.0_31, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: mac os x, version: 10.7.4, arch: x86_64, family: mac

Reporter: Jeremy Norris


When releasing a project as follows:

./parent/pom.xml
./module-a/pom.xml
./module-b/pom.xml

From the parent directory, with an scm config in the parent pom.xml (only) as 
follows:

scm
  connectionscm:git:ssh://github.com/repox.git/connection
  developerConnectionscm:git:ssh://github.com/repox.git/developerConnection
  tagmaster/tag
  urlhttps://github.com/view/repox.git/url
/scm

In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this 
indiscriminately:

url = realignScmUrl( parentLevels, url );

This will trim the repo url from 'ssh://github.com/repox.git' - 
'ssh://github.com', which will cause a failure when pushing the tag.

This type of realignment is not appropriate when using a git scm type.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MRELEASE-767) releasing flat multi-module projects using git

2012-06-01 Thread Jeremy Norris (JIRA)

[ 
https://jira.codehaus.org/browse/MRELEASE-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=300216#comment-300216
 ] 

Jeremy Norris commented on MRELEASE-767:


Here is example output of the failure:

[INFO] Checking in modified POMs...
[INFO Executing: /bin/sh -c cd /Users/jnorris/git/repox/parent  git add -- 
pom.xml /Users/jnorris/git/repox/module-a/pom.xml 
/Users/jnorris/git/repox/module-b/pom.xml
[INFO] Working directory: /Users/jnorris/git/repox/parent
[INFO] Executing: /bin/sh -c cd /Users/jnorris/git/repox/parent  git status
[INFO] Working directory: /Users/jnorris/git/repox/parent
[INFO] Executing: /bin/sh -c cd /Users/jnorris/git/repox/parent  git commit 
--verbose -F 
/var/folders/lr/l5tc63_n0tq4dln8yxj_3p_cgn/T/maven-scm-361212730.commit 
pom.xml /Users/jnorris/git/repox/module-a/pom.xml 
/Users/jnorris/git/repox/module-b/pom.xml
[INFO] Working directory: /Users/jnorris/git/repox/parent
[INFO] Executing: /bin/sh -c cd /Users/jnorris/git/repox/parent  git 
symbolic-ref HEAD
[INFO] Working directory: /Users/jnorris/git/repox/parent
[INFO] Executing: /bin/sh -c cd /Users/jnorris/git/repox/parent  git push 
ssh://github.com/repox.git master:master
[INFO] Working directory: /Users/jnorris/git/repox/parent
[INFO] Tagging release with the label 1.0...
[INFO] Executing: /bin/sh -c cd /Users/jnorris/git/repox  git tag -F 
/var/folders/lr/l5tc63_n0tq4dln8yxj_3p_cgn/T/maven-scm-2040311054.commit 1.0
[INFO] Working directory: /Users/jnorris/git/repox
*[INFO] Executing: /bin/sh -c cd /Users/jnorris/git/repox  git push 
ssh://github.com 1.0*
[INFO] Working directory: /Users/jnorris/git/repox

Notice that when it changes to the top-level directory to perform the tagging 
operation, the scm url becomes corrupted.

 releasing flat multi-module projects using git
 --

 Key: MRELEASE-767
 URL: https://jira.codehaus.org/browse/MRELEASE-767
 Project: Maven 2.x Release Plugin
  Issue Type: Bug
  Components: prepare
Affects Versions: 2.3.1
 Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
 Maven home: /usr/share/maven
 Java version: 1.6.0_31, vendor: Apple Inc.
 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.7.4, arch: x86_64, family: mac
Reporter: Jeremy Norris

 When releasing a project as follows:
 ./parent/pom.xml
 ./module-a/pom.xml
 ./module-b/pom.xml
 From the parent directory, with an scm config in the parent pom.xml (only) as 
 follows:
 scm
   connectionscm:git:ssh://github.com/repox.git/connection
   
 developerConnectionscm:git:ssh://github.com/repox.git/developerConnection
   tagmaster/tag
   urlhttps://github.com/view/repox.git/url
 /scm
 In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this 
 indiscriminately:
 url = realignScmUrl( parentLevels, url );
 This will trim the repo url from 'ssh://github.com/repox.git' - 
 'ssh://github.com', which will cause a failure when pushing the tag.
 This type of realignment is not appropriate when using a git scm type.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MRELEASE-767) releasing flat multi-module projects using git

2012-06-01 Thread Jeremy Norris (JIRA)

[ 
https://jira.codehaus.org/browse/MRELEASE-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=300216#comment-300216
 ] 

Jeremy Norris edited comment on MRELEASE-767 at 6/2/12 12:39 AM:
-

Here is example output of the failure:

[INFO] Checking in modified POMs...
[INFO Executing: /bin/sh -c cd /Users/jnorris/git/repox/parent  git add -- 
pom.xml /Users/jnorris/git/repox/module-a/pom.xml 
/Users/jnorris/git/repox/module-b/pom.xml
[INFO] Working directory: /Users/jnorris/git/repox/parent
[INFO] Executing: /bin/sh -c cd /Users/jnorris/git/repox/parent  git status
[INFO] Working directory: /Users/jnorris/git/repox/parent
[INFO] Executing: /bin/sh -c cd /Users/jnorris/git/repox/parent  git commit 
--verbose -F 
/var/folders/lr/l5tc63_n0tq4dln8yxj_3p_cgn/T/maven-scm-361212730.commit 
pom.xml /Users/jnorris/git/repox/module-a/pom.xml 
/Users/jnorris/git/repox/module-b/pom.xml
[INFO] Working directory: /Users/jnorris/git/repox/parent
[INFO] Executing: /bin/sh -c cd /Users/jnorris/git/repox/parent  git 
symbolic-ref HEAD
[INFO] Working directory: /Users/jnorris/git/repox/parent
[INFO] Executing: /bin/sh -c cd /Users/jnorris/git/repox/parent  git push 
ssh://github.com/repox.git master:master
[INFO] Working directory: /Users/jnorris/git/repox/parent
[INFO] Tagging release with the label 1.0...
[INFO] Executing: /bin/sh -c cd /Users/jnorris/git/repox  git tag -F 
/var/folders/lr/l5tc63_n0tq4dln8yxj_3p_cgn/T/maven-scm-2040311054.commit 1.0
[INFO] Working directory: /Users/jnorris/git/repox
[INFO] Executing: /bin/sh -c cd /Users/jnorris/git/repox  git push 
*ssh://github.com* 1.0
[INFO] Working directory: /Users/jnorris/git/repox

Notice that when it changes to the top-level directory to perform the tagging 
operation, the scm url becomes corrupted (in *bold* above).

  was (Author: jnorris):
Here is example output of the failure:

[INFO] Checking in modified POMs...
[INFO Executing: /bin/sh -c cd /Users/jnorris/git/repox/parent  git add -- 
pom.xml /Users/jnorris/git/repox/module-a/pom.xml 
/Users/jnorris/git/repox/module-b/pom.xml
[INFO] Working directory: /Users/jnorris/git/repox/parent
[INFO] Executing: /bin/sh -c cd /Users/jnorris/git/repox/parent  git status
[INFO] Working directory: /Users/jnorris/git/repox/parent
[INFO] Executing: /bin/sh -c cd /Users/jnorris/git/repox/parent  git commit 
--verbose -F 
/var/folders/lr/l5tc63_n0tq4dln8yxj_3p_cgn/T/maven-scm-361212730.commit 
pom.xml /Users/jnorris/git/repox/module-a/pom.xml 
/Users/jnorris/git/repox/module-b/pom.xml
[INFO] Working directory: /Users/jnorris/git/repox/parent
[INFO] Executing: /bin/sh -c cd /Users/jnorris/git/repox/parent  git 
symbolic-ref HEAD
[INFO] Working directory: /Users/jnorris/git/repox/parent
[INFO] Executing: /bin/sh -c cd /Users/jnorris/git/repox/parent  git push 
ssh://github.com/repox.git master:master
[INFO] Working directory: /Users/jnorris/git/repox/parent
[INFO] Tagging release with the label 1.0...
[INFO] Executing: /bin/sh -c cd /Users/jnorris/git/repox  git tag -F 
/var/folders/lr/l5tc63_n0tq4dln8yxj_3p_cgn/T/maven-scm-2040311054.commit 1.0
[INFO] Working directory: /Users/jnorris/git/repox
[INFO] Executing: /bin/sh -c cd /Users/jnorris/git/repox  git push 
*ssh://github.com* 1.0
[INFO] Working directory: /Users/jnorris/git/repox

Notice that when it changes to the top-level directory to perform the tagging 
operation, the scm url becomes corrupted.
  
 releasing flat multi-module projects using git
 --

 Key: MRELEASE-767
 URL: https://jira.codehaus.org/browse/MRELEASE-767
 Project: Maven 2.x Release Plugin
  Issue Type: Bug
  Components: prepare
Affects Versions: 2.3.1
 Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
 Maven home: /usr/share/maven
 Java version: 1.6.0_31, vendor: Apple Inc.
 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x, version: 10.7.4, arch: x86_64, family: mac
Reporter: Jeremy Norris

 When releasing a project as follows:
 ./parent/pom.xml
 ./module-a/pom.xml
 ./module-b/pom.xml
 From the parent directory, with an scm config in the parent pom.xml (only) as 
 follows:
 scm
   connectionscm:git:ssh://github.com/repox.git/connection
   
 developerConnectionscm:git:ssh://github.com/repox.git/developerConnection
   tagmaster/tag
   urlhttps://github.com/view/repox.git/url
 /scm
 In org/apache/maven/shared/release/util/ReleaseUtils.java:182 it does this 
 indiscriminately:
 url = realignScmUrl( parentLevels, url );
 This will trim the repo url from 'ssh://github.com/repox.git' - 
 'ssh://github.com', which will cause a failure when pushing the tag.
 This type of realignment is not appropriate when using