Re: Failure in maven-release-plugin when trying the publish to Maven Central

2024-05-23 Thread Tamás Cservenák
Howdy.

it is https://issues.apache.org/jira/browse/MNG-8121
And is fixed in Maven 3.9.7 (is currently on vote)

T

On Thu, May 23, 2024 at 8:09 PM Jens Pelzetter
 wrote:

> Hello everyone,
>
> hopefully, someone on this mailing list can provide me with some hint
> what is causing my current issue with the maven-release-plugin. I want
> to publish a multi-module project of mine to Maven Central, via
> oss.sonatype.org. When I'm executing mvn release:perform (mvn
> release:prepare works without problems), a NullPointerException occurs,
> with the following stacktrace below.
>
> Unfortunately, I don't have any clue what the problem is. Any help would
> be greatly appreciated. The code of the project is available here:
> https://github.com/jpdigital/hibernate6-ddl-maven-plugin
>
> Best,
>
> Jens
>
> Stacktrace:
>
> [INFO] Downloaded from ossrh:
>
> https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/dejpdigital-1032/de/jpdigital/maven-metadata.xml
> (222 B at 2.2 kB/s)
> [INFO] [ERROR] Remote staging finished with a failure: Failed to update
> metadata de.jpdigital/maven-metadata.xml: null
> [INFO] [INFO]
> 
> [INFO] [INFO] Reactor Summary for Maven DDL generator plugin for
> Hibernate 6 1.0.2:
> [INFO] [INFO]
> [INFO] [INFO] Maven DDL generator plugin for Hibernate 6 .
> SUCCESS [  2.248 s]
> [INFO] [INFO] Maven DDL generator plugin for Hibernate 6 Core 
> SUCCESS [  4.773 s]
> [INFO] [INFO] Maven DDL generator plugin for Hibernate 6.2 ...
> SUCCESS [ 21.599 s]
> [INFO] [INFO] Maven DDL generator plugin for Hibernate 6.4 ...
> SUCCESS [ 21.215 s]
> [INFO] [INFO] Maven DDL generator plugin for Hibernate 6.5 ...
> FAILURE [ 48.966 s]
> [INFO] [INFO]
> 
> [INFO] [INFO] BUILD FAILURE
> [INFO] [INFO]
> 
> [INFO] [INFO] Total time:  01:39 min
> [INFO] [INFO] Finished at: 2024-05-23T19:57:50+02:00
> [INFO] [INFO]
> 
> [INFO] [ERROR] Failed to execute goal
> org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy
> (injected-nexus-deploy) on project hibernate65-ddl-maven-plugin: Remote
> staging failed: Failed to update metadata
> de.jpdigital/maven-metadata.xml: null: RepositoryException:
> NullPointerException -> [Help 1]
> [INFO] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal
> org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy
> (injected-nexus-deploy) on project hibernate65-ddl-maven-plugin: Remote
> staging failed: Failed to update metadata
> de.jpdigital/maven-metadata.xml: null
> [INFO] at
> org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2
> (MojoExecutor.java:333)
> [INFO] at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute
> (MojoExecutor.java:316)
> [INFO] at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:212)
> [INFO] at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:174)
> [INFO] at
> org.apache.maven.lifecycle.internal.MojoExecutor.access$000
> (MojoExecutor.java:75)
> [INFO] at org.apache.maven.lifecycle.internal.MojoExecutor$1.run
> (MojoExecutor.java:162)
> [INFO] at
> org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute
> (DefaultMojosExecutionStrategy.java:39)
> [INFO] at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:159)
> [INFO] at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:105)
> [INFO] at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:73)
> [INFO] at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>
> (SingleThreadedBuilder.java:53)
> [INFO] at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:118)
> [INFO] at org.apache.maven.DefaultMaven.doExecute
> (DefaultMaven.java:261)
> [INFO] at org.apache.maven.DefaultMaven.doExecute
> (DefaultMaven.java:173)
> [INFO] at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
> [INFO] at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
> [INFO] at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
> [INFO] at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
> [INFO] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0

Failure in maven-release-plugin when trying the publish to Maven Central

2024-05-23 Thread Jens Pelzetter

Hello everyone,

hopefully, someone on this mailing list can provide me with some hint 
what is causing my current issue with the maven-release-plugin. I want 
to publish a multi-module project of mine to Maven Central, via 
oss.sonatype.org. When I'm executing mvn release:perform (mvn 
release:prepare works without problems), a NullPointerException occurs, 
with the following stacktrace below.


Unfortunately, I don't have any clue what the problem is. Any help would 
be greatly appreciated. The code of the project is available here:

https://github.com/jpdigital/hibernate6-ddl-maven-plugin

Best,

Jens

Stacktrace:

[INFO] Downloaded from ossrh: 
https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/dejpdigital-1032/de/jpdigital/maven-metadata.xml 
(222 B at 2.2 kB/s)
[INFO] [ERROR] Remote staging finished with a failure: Failed to update 
metadata de.jpdigital/maven-metadata.xml: null
[INFO] [INFO] 

[INFO] [INFO] Reactor Summary for Maven DDL generator plugin for 
Hibernate 6 1.0.2:

[INFO] [INFO]
[INFO] [INFO] Maven DDL generator plugin for Hibernate 6 . 
SUCCESS [  2.248 s]
[INFO] [INFO] Maven DDL generator plugin for Hibernate 6 Core  
SUCCESS [  4.773 s]
[INFO] [INFO] Maven DDL generator plugin for Hibernate 6.2 ... 
SUCCESS [ 21.599 s]
[INFO] [INFO] Maven DDL generator plugin for Hibernate 6.4 ... 
SUCCESS [ 21.215 s]
[INFO] [INFO] Maven DDL generator plugin for Hibernate 6.5 ... 
FAILURE [ 48.966 s]
[INFO] [INFO] 


[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] 


[INFO] [INFO] Total time:  01:39 min
[INFO] [INFO] Finished at: 2024-05-23T19:57:50+02:00
[INFO] [INFO] 

[INFO] [ERROR] Failed to execute goal 
org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy 
(injected-nexus-deploy) on project hibernate65-ddl-maven-plugin: Remote 
staging failed: Failed to update metadata 
de.jpdigital/maven-metadata.xml: null: RepositoryException: 
NullPointerException -> [Help 1]
[INFO] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to 
execute goal 
org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy 
(injected-nexus-deploy) on project hibernate65-ddl-maven-plugin: Remote 
staging failed: Failed to update metadata 
de.jpdigital/maven-metadata.xml: null
[INFO] at 
org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
(MojoExecutor.java:333)
[INFO] at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
(MojoExecutor.java:316)
[INFO] at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:212)
[INFO] at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:174)
[INFO] at 
org.apache.maven.lifecycle.internal.MojoExecutor.access$000 
(MojoExecutor.java:75)
[INFO] at org.apache.maven.lifecycle.internal.MojoExecutor$1.run 
(MojoExecutor.java:162)
[INFO] at 
org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute 
(DefaultMojosExecutionStrategy.java:39)
[INFO] at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:159)
[INFO] at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:105)
[INFO] at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:73)
[INFO] at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build 
(SingleThreadedBuilder.java:53)
[INFO] at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:118)
[INFO] at org.apache.maven.DefaultMaven.doExecute 
(DefaultMaven.java:261)
[INFO] at org.apache.maven.DefaultMaven.doExecute 
(DefaultMaven.java:173)

[INFO] at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
[INFO] at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
[INFO] at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
[INFO] at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
[INFO] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 
(Native Method)
[INFO] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:62)
[INFO] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)

[INFO] at java.lang.reflect.Method.invoke (Method.java:566)
[INFO] at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:283)
[INFO] at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:226)
[INFO] at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:407)

Re: Strange behavior using maven build-cache extension in maven-release-plugin goals

2024-01-25 Thread Olivier Lamy
interesting.
is the deploy goal executed twice as well when you run "mvn deploy"?
(as you marked as it as alwaysRun)

On Sun, 21 Jan 2024 at 23:00, Javier Gómez  wrote:
>
> Hi all,
>
> We are starting to apply the build-cache maven extension in our local and CI 
> environment,  and we have seen strange behavior in several maven projects, 
> when using the release plugin in conjunction with build-cache, which we have 
> been able to reproduce both locally and in CI.
>
> Our usual release plugin configuration is:
>
> 
>       org.apache.maven.plugins
>   maven-release-plugin
>   3.0.0
>   
> -DskipEnforceSnapshots -DskipITs -DskipTests 
> -DskipUTs
> deploy
> 
> SemVerVersionPolicy
> GithubReleaseStrategy
> @{prefix} Prepare release 
> @{releaseLabel}
> @{prefix} Prepare for next 
> development iteration
> @{project.version}
>   
>
> When we add the build-cache extension to the project, and execute the release 
> with: mvn release:prepare release:perform -DreleaseVersion=x.y.z we can 
> observe a strange behavior when maven is launching the release:perform goal, 
> we see that the deploy goal is executed 2 times for each artifact (in fact it 
> seems that the maven lifecycle restarts, once it reaches the deploy and 
> begins to execute the validate again) and when it reaches the 2nd execution 
> of deploy, it fails (since the user we use do not have permissions to 
> overwrite artifacts). Below I show an extract from the log:
>
> ...
>
> [INFO] [INFO] 
> 
> [INFO] [INFO] Reactor Build Order:
> [INFO] [INFO]
> [INFO] [INFO] temp.mectagcore:mectagcore [pom]
> [INFO] [INFO] temp.mectagcore:mectagcore-domain  [jar]
> [INFO] [INFO] temp.mectagcore:mectagcore-boot[jar]
> [INFO] [INFO] temp.mectagcore:jacoco-report-aggregate[pom]
> [INFO] [INFO]
> [INFO] [INFO] -< temp.mectagcore:mectagcore >-
> [INFO] [INFO] Building temp.mectagcore:mectagcore 1.0.0  [1/9]
> [INFO] [INFO]   from pom.xml
> [INFO] [INFO] [ pom 
> ]-
> [INFO] [INFO] Going to calculate checksum for project 
> [groupId=temp.mectagcore, artifactId=mectagcore]
> [INFO] [INFO] Project inputs calculated in 12 ms. SHA-256 checksum 
> [16534757c14aae9b1ff1961664995f0e7e9396fb88309d207a8a23c080c7f661] calculated 
> in 4 ms.
> [INFO] [INFO] Attempting to restore project temp.mectagcore:mectagcore from 
> build cache
> [INFO] [INFO] Local build found by checksum 
> 16534757c14aae9b1ff1961664995f0e7e9396fb88309d207a8a23c080c7f661
> [INFO] [INFO] Found cached build, restoring temp.mectagcore:mectagcore from 
> cache by checksum 
> 16534757c14aae9b1ff1961664995f0e7e9396fb88309d207a8a23c080c7f661
> [INFO] [INFO] Project temp.mectagcore:mectagcore restored partially. Highest 
> cached goal: verify, requested: deploy
> [INFO] role: 'org.apache.maven.plugin.Mojo', implementation: 
> 'org.apache.maven.plugin.failsafe.IntegrationTestMojo', role hint: 
> 'org.apache.maven.plugins:maven-failsafe-plugin:3.0.0:integration-test'
> [INFO] role: 'org.apache.maven.plugin.Mojo', implementation: 
> 'org.apache.maven.plugin.failsafe.VerifyMojo', role hint: 
> 'org.apache.maven.plugins:maven-failsafe-plugin:3.0.0:verify'
> [INFO] ---
> [INFO] [INFO] Skipping plugin execution (cached): enforcer:enforce
> [INFO] [INFO] Skipping plugin execution (cached): enforcer:enforce
> [INFO] [INFO] Skipping plugin execution (cached): build-helper:add-source
> [INFO] [INFO] Mojo execution is forced by project property: 
> amiga-assembly:amiga-assembly
> [INFO] [INFO]
> [INFO] [INFO] --- amiga-assembly:5.5.0:amiga-assembly 
> (amiga-assembly-execution) @ mectagcore ---
> [INFO] [INFO] Mojo execution is forced by project property: source:jar-no-fork
> [INFO] [INFO]
> [INFO] [INFO] --- source:3.2.1:jar-no-fork (attach-sources) @ mectagcore ---
> [INFO] [INFO] Skipping plugin execution (cached): failsafe:integration-test
> [INFO] [INFO] Skipping plugin execution (cached): failsafe:verify
> [INFO] [INFO]
> [INFO] [INFO] --- install:3.1.1:install (default-install) @ mectagcore ---
> [INFO] role: 'org.apache.maven.plugin.Mojo', implementation: 
> 'org.apache.maven.plugins.install.InstallMojo', role hint: 
> 'org.apache.maven.plugins:maven-install-plugin:3.1.1:install'
> [INFO] role: 'org.apache.maven.plugin.Mojo

Strange behavior using maven build-cache extension in maven-release-plugin goals

2024-01-21 Thread Javier Gómez

Hi all,

We are starting to apply the build-cache maven extension in our local 
and CI environment,  and we have seen strange behavior in several maven 
projects, when using the release plugin in conjunction with build-cache, 
which we have been able to reproduce both locally and in CI.


Our usual release plugin configuration is:

    
org.apache.maven.plugins
maven-release-plugin
  3.0.0
  
*    -DskipEnforceSnapshots -DskipITs -DskipTests 
-DskipUTs

    deploy
* SemVerVersionPolicy
GithubReleaseStrategy
    @{prefix} Prepare release 
@{releaseLabel}
    @{prefix} Prepare for next 
development iteration

@{project.version}
  

When we add the build-cache extension to the project, and execute the 
release with: mvn release:prepare release:perform 
-DreleaseVersion=x.y.zwe can observe a strange behavior when maven is 
launching the release:perform goal, we see that the deploy goal is 
executed 2 times for each artifact (in fact it seems that the maven 
lifecycle restarts, once it reaches the deploy and begins to execute the 
validate again) and when it reaches the 2nd execution of deploy, it 
fails (since the user we use do not have permissions to overwrite 
artifacts). Below I show an extract from the log:


...

[INFO] [INFO] 


[INFO] [INFO] Reactor Build Order:
[INFO] [INFO]
[INFO] [INFO] temp.mectagcore:mectagcore [pom]
[INFO] [INFO] temp.mectagcore:mectagcore-domain [jar]
[INFO] [INFO] temp.mectagcore:mectagcore-boot [jar]
[INFO] [INFO] temp.mectagcore:jacoco-report-aggregate [pom]
[INFO] [INFO]
[INFO] [INFO] -< temp.mectagcore:mectagcore 
>-
[INFO] [INFO] Building temp.mectagcore:mectagcore 1.0.0  
[1/9]

[INFO] [INFO]   from pom.xml
[INFO] [INFO] [ pom 
]-
[INFO] [INFO] Going to calculate checksum for project 
[groupId=temp.mectagcore, artifactId=mectagcore]
[INFO] [INFO] Project inputs calculated in 12 ms. SHA-256 checksum 
[16534757c14aae9b1ff1961664995f0e7e9396fb88309d207a8a23c080c7f661] 
calculated in 4 ms.
[INFO] [INFO] Attempting to restore project temp.mectagcore:mectagcore 
from build cache
[INFO] [INFO] Local build found by checksum 
16534757c14aae9b1ff1961664995f0e7e9396fb88309d207a8a23c080c7f661
[INFO] [INFO] Found cached build, restoring temp.mectagcore:mectagcore 
from cache by checksum 
16534757c14aae9b1ff1961664995f0e7e9396fb88309d207a8a23c080c7f661
[INFO] [INFO] Project temp.mectagcore:mectagcore restored partially. 
Highest cached goal: verify, requested: deploy
[INFO] role: 'org.apache.maven.plugin.Mojo', implementation: 
'org.apache.maven.plugin.failsafe.IntegrationTestMojo', role hint: 
'org.apache.maven.plugins:maven-failsafe-plugin:3.0.0:integration-test'
[INFO] role: 'org.apache.maven.plugin.Mojo', implementation: 
'org.apache.maven.plugin.failsafe.VerifyMojo', role hint: 
'org.apache.maven.plugins:maven-failsafe-plugin:3.0.0:verify'

[INFO] ---
[INFO] [INFO] Skipping plugin execution (cached): enforcer:enforce
[INFO] [INFO] Skipping plugin execution (cached): enforcer:enforce
[INFO] [INFO] Skipping plugin execution (cached): build-helper:add-source
[INFO] [INFO] Mojo execution is forced by project property: 
amiga-assembly:amiga-assembly

[INFO] [INFO]
[INFO] [INFO] --- amiga-assembly:5.5.0:amiga-assembly 
(amiga-assembly-execution) @ mectagcore ---
[INFO] [INFO] Mojo execution is forced by project property: 
source:jar-no-fork

[INFO] [INFO]
[INFO] [INFO] --- source:3.2.1:jar-no-fork (attach-sources) @ mectagcore ---
[INFO] [INFO] Skipping plugin execution (cached): failsafe:integration-test
[INFO] [INFO] Skipping plugin execution (cached): failsafe:verify
[INFO] [INFO]
[INFO] [INFO] --- install:3.1.1:install (default-install) @ mectagcore ---
[INFO] role: 'org.apache.maven.plugin.Mojo', implementation: 
'org.apache.maven.plugins.install.InstallMojo', role hint: 
'org.apache.maven.plugins:maven-install-plugin:3.1.1:install'
[INFO] role: 'org.apache.maven.plugin.Mojo', implementation: 
'org.apache.maven.plugins.install.InstallFileMojo', role hint: 
'org.apache.maven.plugins:maven-install-plugin:3.1.1:install-file'

[INFO] ---
[INFO] [INFO] Installing 
/tmp/mic-mectagcore/code/target/checkout/code/pom.xml to 
/home/alambike/.m2/repository/temp/mectagcore/mectagcore/1.0.0/mectagcore-1.0.0.pom

[INFO] [INFO]
[INFO] [INFO] --- deploy:3.1.1:deploy (default-deploy) @ mectagcore ---
[INFO] role: 'org.apache.maven.plugin.Mojo', implementation: 
'org.apache.maven.plugins.deploy.DeployFileMojo', role hint: 
'org.apache.maven.plugins:maven-deploy-plugin:3.1.1:deploy-file'
[INFO] role: 'org.apache.maven.plugin.Mojo', implementation: 
'org.apache.maven.plugins.maven_d

ANN] Apache Maven Release Plugin 3.0.1 Released

2023-06-03 Thread Slawomir Jaranowski
The Apache Maven team is pleased to announce the release of the Apache
Maven Release Plugin, version 3.0.1

https://maven.apache.org/maven-release/maven-release-plugin/

You should specify the version in your project's plugin configuration:


  org.apache.maven.plugins
  maven-release-plugin
  3.0.1


You can download the appropriate sources etc. from the download page:

https://maven.apache.org/maven-release/download.html

Release Notes - Maven Release Plugin - Version 3.0.1

** Bug
* [MRELEASE-851] - javaHome parameter is ignored and inherited
unexpectedly
* [MRELEASE-1103] - Decryption of server password in settings.xml
failed (works with 2.5.3)
* [MRELEASE-1114] - Broken interaction of maven-gpg-plugin with Gpg4win
Kleopatra since 3.0.0-M6
* [MRELEASE-1123] - Maven Release plugin doesn't work in maven 4

** Improvement
* [MRELEASE-1120] - Upgrade surefire version to 3.0.0
* [MRELEASE-1122] - add plugin's system requirements history

** Task
* [MRELEASE-1127] - Refresh download page

** Dependency upgrade
* [MRELEASE-1121] - Bump maven-shared-utils from 3.3.4 to 3.4.2

Enjoy,

-The Apache Maven team


Re: mismatch between maven-release-plugin site and available artifacts

2020-07-10 Thread Hervé BOUTEMY
yes, sorry, I published 3.0.0-M2 release site, but I forgot that the release 
had been cancelled...

will revert to the current effective release = 3.0.0-M1

Regards,

Hervé

Le vendredi 10 juillet 2020, 15:17:26 CEST Mark Prins a écrit :
> There is a mismatch between the published site and the available artifact.
> 
> https://maven.apache.org/maven-release/maven-release-plugin/index.html
> lists 3.0.0-M2 published 2020-04-07 as the current release, but it
> cannot be downloaded from eg.
> https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-release-> 
> plugin/
> 
> can anyone resolve this?
> 
> TIA, Mark
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



mismatch between maven-release-plugin site and available artifacts

2020-07-10 Thread Mark Prins

There is a mismatch between the published site and the available artifact.

https://maven.apache.org/maven-release/maven-release-plugin/index.html 
lists 3.0.0-M2 published 2020-04-07 as the current release, but it 
cannot be downloaded from eg. 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-release-plugin/


can anyone resolve this?

TIA, Mark

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



What is remoteTagging in maven-release-plugin?

2020-03-17 Thread avis . caerulea

Hello, I am having trouble understanding remoteTagging.

I use Maven 3.5. 4, maven-release-plugin 3.0. 0-M1 and Subversion 1.8 to build 
multimodule projects.
Sunbversion is a standard structure: trunk, branches, and tags.

trunk/
  ├ myProject/
  │  ├ pom.xml (parent pom)
  │  :
  ├ sub1/
  │  ├ pom.xml
  │  :

I would like to tag the trunk above as tags/VERSION:.

tags/
   └ 1.0.0
├ myProject/
│   :
├ sub1/
 :

On myProject's pom.xml, scm.developerConnection points to trunk and 
remoteTagging = false.



scm:svn:https://somehost/vcs/myProject/trunk



org.apache.maven.plugins
maven-release-plugin
3.0.0-M1

true
https://somehost/vcs/myProject//tags
https://somehost/vcs/myProject/branches
@{project.version}
false



When using maven-release-plugin, why does remoteTagging change the tagging 
structure?
Also, I need to be true in a single module project to get the structure I 
expect.

I don't understand the ramifications of remoteTagging and how it relates to 
developerConnection, etc.

Thank you for reading.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



[ANN] Apache Maven Release Plugin 3.0.0-M1 Released

2019-12-16 Thread Hervé Boutemy
The Apache Maven team is pleased to announce the release of the Apache Maven 
Release Plugin, version 3.0.0-M1.
 
This plugin is used to release a project with Maven, saving a lot of 
repetitive, manual work. Releasing a project is made in two steps: prepare and 
perform.
 
https://maven.apache.org/plugins/maven-release-plugin/
 
You should specify the version in your project's plugin configuration:
 

  org.apache.maven.plugins
  maven-release-plugin
  3.0.0-M1

 
You can download the appropriate sources etc. from the download page:

https://maven.apache.org/plugins/maven-release-plugin/download.cgi
 

Release Notes - Maven Release Plugin - Version 3.0.0-M1

** Bug
* [MRELEASE-229] - release:rollback is missing remove tag implementation
* [MRELEASE-601] - The Maven 2 release plugin modifies CDATA elements in 
pom.xml files.
* [MRELEASE-694] - -SNAPSHOT is unexpectedly appended to version in 
branched pom.xml
* [MRELEASE-908] - Git HTTP authentication failing if there are spaces in 
the password
* [MRELEASE-928] - exposing the password for SCM URL if build failed to 
commit files to SCM
* [MRELEASE-947] - Wiki page URL for maven-release-plugin is wrong - post 
Codehaus termination
* [MRELEASE-964] - Error injecting: 
org.apache.maven.shared.release.phase.RewritePomsForReleasePhase
* [MRELEASE-966] - release plugin does not respect "mvn -f"
* [MRELEASE-968] - Maven release plugin missing plexus-cipher dependency
* [MRELEASE-975] - NPE when using an unknown project versionpolicy id
* [MRELEASE-997] - Unable to release:perform on windows if a file name 
contains spaces on windows
* [MRELEASE-1009] - Compilation failure when using Java 10
* [MRELEASE-1034] - Remove SCM tag blocks rollback in some situations

** New Feature
* [MRELEASE-956] - Release Strategy Interface
* [MRELEASE-980] - Provide the ability to control commit messages
* [MRELEASE-985] - Override SNAPSHOT dependencies from command line
* [MRELEASE-998] - Add ability to create custom phases
* [MRELEASE-1029] - update project.build.outputTimestamp property on prepare
* [MRELEASE-1031] - display release phases to give insight on what's going 
on during release

** Improvement
* [MRELEASE-703] - [PATCH] Migration from obsolete plexus-maven-plugin to 
plexus-containers-component-metadata
* [MRELEASE-873] - Remove possibly confusing non-standard goals from example
* [MRELEASE-896] - Disable by default and deprecate useReleaseProfile 
parameter
* [MRELEASE-909] - Add workItem/task support for scm deliver
* [MRELEASE-958] - Using three digit version number (semver)
* [MRELEASE-976] - release:branch should also support project version 
policies
* [MRELEASE-977] - release:branch should prompt for branch name if none is 
given
* [MRELEASE-979] - Support NamingPolicies to manage Branch and Tag names
* [MRELEASE-992] - Deprecated maven flag --no-plugin-updates shows warnings 
in the console output
* [MRELEASE-993] - Use shallow checkout per default (git scm)
* [MRELEASE-994] - Drop Maven2 support
* [MRELEASE-1005] - Extract ResourceGenerator from ReleasePhase
* [MRELEASE-1007] - Rework usage workingDirectory and commonBasedir
* [MRELEASE-1023] - Minor code cleanups
* [MRELEASE-1032] - add https://m.a.o/xsd/maven-4.0.0.xsd schema instead of 
http://m.a.o/maven-v4_0_0.xsd

** Task
* [MRELEASE-356] - Deprecate the automated release profile
* [MRELEASE-990] - switch to Git
* [MRELEASE-1027] - New Release
* [MRELEASE-1033] - Site: Dead link to wiki

** Dependency upgrade
* [MRELEASE-952] - Replace JDom as XML transformer
* [MRELEASE-1010] - Upgrade maven-plugins parent to version 32
* [MRELEASE-1024] - Upgrade to SCM 1.11.2
 
Enjoy,
 
-The Apache Maven team



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



[maven-release-plugin] Tagging & branching at the same commit

2019-11-22 Thread Maarten Mulders

Hi list,

I'm using the Maven Release Plugin together with Git for version 
control. I would like to achieve the following. When I create a release 
on master, say version 1.5.0, I would like to have both a tag and a new 
branch - starting at that tag. The branch would be there to release 
fix-releases (e.g. 1.5.1, 1.5.2, etc.). On the master branch, I'd like 
to see the version bumped to 1.6.0-SNAPSHOT, while on the release 
branch, I''d like to see 1.5.1-SNAPSHOT.


Depicted graphically:

1.5.0 (tag)
|
* master (branch) 
\
 \--- release-1.5 (branch) ---

Now there's the release:prepare goal (which would create the tag for me) 
and there's the release:branch goal (which would create the branch for 
me). After doing release:prepare, I can do release:perform and all is 
well. After doing release:branch, I can't do release:perform (since that 
goal doesn't create a release.properties file). Of course I can switch 
to the freshly created branch and do release:prepare there - but in that 
case the tag is created on the release branch and not on master.


Is there a way to create the tag and the branch point at the same 
commit?


Cheers,

Maarten

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven Release Plugin Message Format

2019-11-01 Thread Hervé BOUTEMY
looks like there is WIP on that:
https://issues.apache.org/jira/browse/MRELEASE-980
Help welcome (testing, providing feedback, ...)

Regards,

Hervé

Le jeudi 31 octobre 2019, 02:31:47 CET Scott Rossillo a écrit :
> We're using the maven-release-plugin and all our tags end up looking like:
> 
> vX.Y.Z copy for tag vX.Y.Z
> 
> With git "copy for tag" is pretty nonsensical. Preferably, the message
> would be "Release X.Y.Z". I looked at the source code and see the actual
> tagging is delegated to another package, org.apache.maven.shared.release.
> 
> Anyway, is there a way to override the commit message and if not, which
> component should a ticket be file or suggested change be recommended to?
> 
> Best,
> 
> Scott





-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven Release Plugin Message Format

2019-11-01 Thread Mark Prins
don' t recall any commits like that, generally I see that the last commit
in a tag is "[maven-release-plugin] prepare release
<https://github.com/B3Partners/brmo/commit/bdcc63208bd4a8b521f3b82bd82d87148e9c2687>
..."
and in my master branch I see "[maven-release-plugin] prepare release
<https://github.com/flamingo-geocms/flamingo/commit/623cbbc87afd2ead1d565749b42411602b6b1c2c>..."
and then "[maven-release-plugin] prepare for next development iteration
<https://github.com/flamingo-geocms/flamingo/commit/1c23467abd0ea07143841af25e1d4916a9ebc416>
"

looking at
https://maven.apache.org/maven-release/maven-release-plugin/prepare-mojo.html
there
seems to be no option to do what you want.
-M

Op do 31 okt. 2019 om 09:12 schreef Scott Rossillo :

> We're using the maven-release-plugin and all our tags end up looking like:
>
> vX.Y.Z copy for tag vX.Y.Z
>
> With git "copy for tag" is pretty nonsensical. Preferably, the message
> would be "Release X.Y.Z". I looked at the source code and see the actual
> tagging is delegated to another package, org.apache.maven.shared.release.
>
> Anyway, is there a way to override the commit message and if not, which
> component should a ticket be file or suggested change be recommended to?
>
> Best,
>
> Scott
>


-- 
Disclaimer;
This message is just a reflection of what I thought at the time of sending.
The message may contain information that is not intended for you or that
you don't understand.


Maven Release Plugin Message Format

2019-10-31 Thread Scott Rossillo
We're using the maven-release-plugin and all our tags end up looking like:

vX.Y.Z copy for tag vX.Y.Z

With git "copy for tag" is pretty nonsensical. Preferably, the message
would be "Release X.Y.Z". I looked at the source code and see the actual
tagging is delegated to another package, org.apache.maven.shared.release.

Anyway, is there a way to override the commit message and if not, which
component should a ticket be file or suggested change be recommended to?

Best,

Scott


Maven Release Plugin : SCM- Jazz

2019-03-27 Thread Anisha Rahamathullah (RBEI/ETB2)

Hello,

We use Maven release plugin with Jazz repository for automated release. While 
performing deliver operation below command is used.

"scm deliver --repository-uri  --username  --password * 
--source  --target  --overwrite-uncommitted"

Internally we have configured commit rules in our repository, where deliver 
would fail, if the particular changeset is not associated with any workitem or 
comment.
Below is the error message:
Error: Process Reports:
  Name: Deliver
  Participant Reports:
Name: Require Work Items and Comments
  A work item or change request must be associated with the change set or a 
comment must be set.
  At least one of the associated work items must specify that the work is 
planned for the current iteration.
  At least one of the associated work items must be assigned to you.
Problem running 'deliver':
'Deliver' failed. Preconditions have not been met: A work item or change 
request must be associated with the change set or a comment must be set.

Since the changeset is generated automatically, changeset id cannot be 
captured, without which associating workitem/comment to changeset is impossible.


To overcome the above issue, we can perform deliver with " -C/--components" 
argument, will consider the outgoing changeset currently available for deliver 
operation.
Link for reference: 
https://jazz.net/forum/questions/217830/how-to-checkin-and-deliver-changes-from-local-workspace-automatically

Is there any options available to override the above command with the inbuilt 
command available in Release Plugin? Or is there any possible way available 
using maven release plugin?

Let us know for options if any.
Thanks!


Best regards,

Rahamathullah Anisha
RBEI/ETB2

Tel. +91 422 676-2621



Continuous Delivery / Continuous Deployment with the Maven Release Plugin

2019-03-27 Thread Stephen Connolly
So I wrote a blog post on how we use the Maven Release Plugin with Jenkins
to do Continuous Delivery and Continuous Deployment in the DevOptics team
of CloudBees.

If you are interested it's at:

https://www.cloudbees.com/blog/apache-maven-continuous-deliverydeployment-devoptics-teams-approach

There's also a video remix available (if you prefer watching video to
reading blogs)

https://www.youtube.com/watch?v=P6kce5blnJA

Share and Enjoy

-Stephen


Re: [maven-release-plugin] Passing additional parameters

2018-05-18 Thread Naveen Swamy
Hi Robert,

Thanks for your response. After a lot of trial-error, I figured to just
what said here:
https://github.com/nswamy/incubator-mxnet/blob/v1.2.0/Makefile#L599

-Naveen

On Fri, May 18, 2018 at 12:27 PM, Robert Scholte 
wrote:

> Hi,
>
> this is the important part of the commandline that tricked you:
> -Darguments=-DskipTests
>
> so -DskipTests is the only argument being passed. If you want to add more,
> you need to quote them, e.g
>
> -Darguments="-DskipTests -Dkey=value"
>
> I noticed -Dcxx="$(CXX)" already has quotes, so you need to escape the
> those.
>
> thanks,
> Robert
>
>
> On Thu, 17 May 2018 23:20:59 +0200, Naveen Swamy 
> wrote:
>
> Hello there,
>>
>> I have a question regarding maven release plugin. We use codehaus
>> native-plugin to build jni, I want to pass the cflags during release
>> phase.
>> However I see that I am unable to pass any of the arguments through
>> release
>> plugin. Any experience or pointers would help
>> this is mvn command which we call through a makefile similar to
>> https://github.com/apache/incubator-mxnet/blob/48d60908a1fa4
>> 2364a829ac90133d28dd0998219/Makefile#L579
>> ```
>> scalareleasedryrun:
>> (cd $(ROOTDIR)/scala-package; \
>> mvn -X release:prepare -DdryRun=true -DautoVersionSubmodules=true \
>> -P$(SCALA_PKG_PROFILE),$(SCALA_VERSION_PROFILE) \
>> -Darguments=-DskipTests -Dcxx="$(CXX)" \
>> -Drelease.cflags="$(CFLAGS)" -Dldflags="$(LDFLAGS)" \
>> -Dlddeps="$(LIB_DEP) $(ROOTDIR)/lib/libmxnet.a")
>> ```
>> The parent pom file is here
>> https://github.com/apache/incubator-mxnet/blob/master/scala-
>> package/pom.xml
>> and the pom file to compile native code is here
>> https://github.com/apache/incubator-mxnet/blob/master/scala-
>> package/init-native/osx-x86_64/pom.xml#L59
>>
>> I see that cflags variable used in the native pom.xml is coming as null
>> ```
>> [INFO] [INFO] --- native-maven-plugin:1.0-alpha-9:compile
>> (default-compile)
>> @ libmxnet-init-scala-osx-x86_64 ---
>> [INFO] [DEBUG] Configuring mojo
>> org.codehaus.mojo:native-maven-plugin:1.0-alpha-9:compile from plugin
>> realm
>> ClassRealm[extension>org.codehaus.mojo:native-maven-plugin:1.0-alpha-9,
>> parent: sun.misc.Launcher$AppClassLoader@42a57993]
>> [INFO] [DEBUG] Configuring mojo
>> 'org.codehaus.mojo:native-maven-plugin:1.0-alpha-9:compile' with basic
>> configurator -->
>> [INFO] [DEBUG]   (f) compilerEndOptions = [-I../../../include, null]
>> [INFO] [DEBUG]   (f) compilerOutputDirectory =
>> /Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scal
>> a-package/init-native/osx-x86_64/target/objs
>> [INFO] [DEBUG]   (f) compilerProvider = generic-classic
>> [INFO] [DEBUG]   (f) compilerStartOptions = [-std=c++0x]
>> [INFO] [DEBUG]   (f) dependencyIncludeDirectory =
>> /Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scal
>> a-package/init-native/osx-x86_64/target/native/include
>> [INFO] [DEBUG]   (f) javahOS = darwin
>> [INFO] [DEBUG]   (f) jdkIncludePath =
>> /Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/
>> Home/jre/../include
>> [INFO] [DEBUG]   (f) numberOfConcurrentCompilation = 1
>> [INFO] [DEBUG]   (f) project = MavenProject:
>> org.apache.mxnet:libmxnet-init-scala-osx-x86_64:1.2.0-SNAPSHOT @
>> /Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scal
>> a-package/init-native/osx-x86_64/pom.xml
>> [INFO] [DEBUG]   (s) directory =
>> /Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scal
>> a-package/init-native/src/main/native
>> [INFO] [DEBUG]   (s) fileNames = [org_apache_mxnet_init_native_c_api.cc]
>> [INFO] [DEBUG]   (f) sources =
>> [org.codehaus.mojo.natives.NativeSources@1e01b195]
>> [INFO] [DEBUG]   (f) workingDirectory =
>> /Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scal
>> a-package/init-native/osx-x86_64
>>
>> ```
>>
>> I have already tried pass with -Darguments, create properties
>> corresponding
>> to the flags, etc.,
>>
>>
>> Appreciate pointers and advise?
>>
>> -Naveen
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: [maven-release-plugin] Passing additional parameters

2018-05-18 Thread Robert Scholte

Hi,

this is the important part of the commandline that tricked you:
-Darguments=-DskipTests

so -DskipTests is the only argument being passed. If you want to add more,  
you need to quote them, e.g


-Darguments="-DskipTests -Dkey=value"

I noticed -Dcxx="$(CXX)" already has quotes, so you need to escape the  
those.


thanks,
Robert

On Thu, 17 May 2018 23:20:59 +0200, Naveen Swamy   
wrote:



Hello there,

I have a question regarding maven release plugin. We use codehaus
native-plugin to build jni, I want to pass the cflags during release  
phase.
However I see that I am unable to pass any of the arguments through  
release

plugin. Any experience or pointers would help
this is mvn command which we call through a makefile similar to
https://github.com/apache/incubator-mxnet/blob/48d60908a1fa42364a829ac90133d28dd0998219/Makefile#L579
```
scalareleasedryrun:
(cd $(ROOTDIR)/scala-package; \
mvn -X release:prepare -DdryRun=true -DautoVersionSubmodules=true \
-P$(SCALA_PKG_PROFILE),$(SCALA_VERSION_PROFILE) \
-Darguments=-DskipTests -Dcxx="$(CXX)" \
-Drelease.cflags="$(CFLAGS)" -Dldflags="$(LDFLAGS)" \
-Dlddeps="$(LIB_DEP) $(ROOTDIR)/lib/libmxnet.a")
```
The parent pom file is here
https://github.com/apache/incubator-mxnet/blob/master/scala-package/pom.xml
and the pom file to compile native code is here
https://github.com/apache/incubator-mxnet/blob/master/scala-package/init-native/osx-x86_64/pom.xml#L59

I see that cflags variable used in the native pom.xml is coming as null
```
[INFO] [INFO] --- native-maven-plugin:1.0-alpha-9:compile  
(default-compile)

@ libmxnet-init-scala-osx-x86_64 ---
[INFO] [DEBUG] Configuring mojo
org.codehaus.mojo:native-maven-plugin:1.0-alpha-9:compile from plugin  
realm

ClassRealm[extension>org.codehaus.mojo:native-maven-plugin:1.0-alpha-9,
parent: sun.misc.Launcher$AppClassLoader@42a57993]
[INFO] [DEBUG] Configuring mojo
'org.codehaus.mojo:native-maven-plugin:1.0-alpha-9:compile' with basic
configurator -->
[INFO] [DEBUG]   (f) compilerEndOptions = [-I../../../include, null]
[INFO] [DEBUG]   (f) compilerOutputDirectory =
/Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scala-package/init-native/osx-x86_64/target/objs
[INFO] [DEBUG]   (f) compilerProvider = generic-classic
[INFO] [DEBUG]   (f) compilerStartOptions = [-std=c++0x]
[INFO] [DEBUG]   (f) dependencyIncludeDirectory =
/Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scala-package/init-native/osx-x86_64/target/native/include
[INFO] [DEBUG]   (f) javahOS = darwin
[INFO] [DEBUG]   (f) jdkIncludePath =
/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre/../include
[INFO] [DEBUG]   (f) numberOfConcurrentCompilation = 1
[INFO] [DEBUG]   (f) project = MavenProject:
org.apache.mxnet:libmxnet-init-scala-osx-x86_64:1.2.0-SNAPSHOT @
/Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scala-package/init-native/osx-x86_64/pom.xml
[INFO] [DEBUG]   (s) directory =
/Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scala-package/init-native/src/main/native
[INFO] [DEBUG]   (s) fileNames = [org_apache_mxnet_init_native_c_api.cc]
[INFO] [DEBUG]   (f) sources =
[org.codehaus.mojo.natives.NativeSources@1e01b195]
[INFO] [DEBUG]   (f) workingDirectory =
/Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scala-package/init-native/osx-x86_64

```

I have already tried pass with -Darguments, create properties  
corresponding

to the flags, etc.,


Appreciate pointers and advise?

-Naveen


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



[maven-release-plugin] Passing additional parameters

2018-05-17 Thread Naveen Swamy
Hello there,

I have a question regarding maven release plugin. We use codehaus
native-plugin to build jni, I want to pass the cflags during release phase.
However I see that I am unable to pass any of the arguments through release
plugin. Any experience or pointers would help
this is mvn command which we call through a makefile similar to
https://github.com/apache/incubator-mxnet/blob/48d60908a1fa42364a829ac90133d28dd0998219/Makefile#L579
```
scalareleasedryrun:
(cd $(ROOTDIR)/scala-package; \
mvn -X release:prepare -DdryRun=true -DautoVersionSubmodules=true \
-P$(SCALA_PKG_PROFILE),$(SCALA_VERSION_PROFILE) \
-Darguments=-DskipTests -Dcxx="$(CXX)" \
-Drelease.cflags="$(CFLAGS)" -Dldflags="$(LDFLAGS)" \
-Dlddeps="$(LIB_DEP) $(ROOTDIR)/lib/libmxnet.a")
```
The parent pom file is here
https://github.com/apache/incubator-mxnet/blob/master/scala-package/pom.xml
and the pom file to compile native code is here
https://github.com/apache/incubator-mxnet/blob/master/scala-package/init-native/osx-x86_64/pom.xml#L59

I see that cflags variable used in the native pom.xml is coming as null
```
[INFO] [INFO] --- native-maven-plugin:1.0-alpha-9:compile (default-compile)
@ libmxnet-init-scala-osx-x86_64 ---
[INFO] [DEBUG] Configuring mojo
org.codehaus.mojo:native-maven-plugin:1.0-alpha-9:compile from plugin realm
ClassRealm[extension>org.codehaus.mojo:native-maven-plugin:1.0-alpha-9,
parent: sun.misc.Launcher$AppClassLoader@42a57993]
[INFO] [DEBUG] Configuring mojo
'org.codehaus.mojo:native-maven-plugin:1.0-alpha-9:compile' with basic
configurator -->
[INFO] [DEBUG]   (f) compilerEndOptions = [-I../../../include, null]
[INFO] [DEBUG]   (f) compilerOutputDirectory =
/Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scala-package/init-native/osx-x86_64/target/objs
[INFO] [DEBUG]   (f) compilerProvider = generic-classic
[INFO] [DEBUG]   (f) compilerStartOptions = [-std=c++0x]
[INFO] [DEBUG]   (f) dependencyIncludeDirectory =
/Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scala-package/init-native/osx-x86_64/target/native/include
[INFO] [DEBUG]   (f) javahOS = darwin
[INFO] [DEBUG]   (f) jdkIncludePath =
/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre/../include
[INFO] [DEBUG]   (f) numberOfConcurrentCompilation = 1
[INFO] [DEBUG]   (f) project = MavenProject:
org.apache.mxnet:libmxnet-init-scala-osx-x86_64:1.2.0-SNAPSHOT @
/Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scala-package/init-native/osx-x86_64/pom.xml
[INFO] [DEBUG]   (s) directory =
/Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scala-package/init-native/src/main/native
[INFO] [DEBUG]   (s) fileNames = [org_apache_mxnet_init_native_c_api.cc]
[INFO] [DEBUG]   (f) sources =
[org.codehaus.mojo.natives.NativeSources@1e01b195]
[INFO] [DEBUG]   (f) workingDirectory =
/Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/scala-package/init-native/osx-x86_64

```

I have already tried pass with -Darguments, create properties corresponding
to the flags, etc.,


Appreciate pointers and advise?

-Naveen


Re: maven release plugin

2018-03-01 Thread Mark Derricutt
On 1 Mar 2018, at 23:18, Matthew Broadhead wrote:

> Thanks Mark.  looks easy enough.  i may try a maven plugin first though as i 
> like the idea of maven controlling all the git pushes etc

I tend to NOT let maven do the git pushes, for the cases we're doing releases 
on a hot fix, or a support branch - where there is no release branch, and not 
necessarily any back merging, we've found it's easier to just let maven do the 
release on the current branch, and leave any branching/merging to an outside 
force.

On hot fix/support branches we just do a standard `mvn release:prepare 
release:perform`.

Mark


---
"The ease with which a change can be implemented has no relevance at all to 
whether it is the right change for the (Java) Platform for all time." — 
Mark Reinhold.

Mark Derricutt
http://www.theoryinpractice.net
http://www.chaliceofblood.net
http://plus.google.com/+MarkDerricutt
http://twitter.com/talios
http://facebook.com/mderricutt


signature.asc
Description: OpenPGP digital signature


Re: maven release plugin

2018-03-01 Thread Matthew Broadhead

ah i missed the  around the parameters.  it works now

On 01/03/2018 11:22, Matthew Broadhead wrote:
thanks Stephen.  i will give this one a look too.  it looks almost 
identical to jgitflow-maven-plugin.


i have had problems testing jgitflow.  it seems even if i add the 
configuration parameter 
development it still creates a 
branch "develop".  also after release-finish it doesn't delete the 
release branch.  also are these plugins only supposed to be run from 
the master branch?


On 01/03/2018 08:25, Stephen Coy wrote:
I have been using https://github.com/aleksandr-m/gitflow-maven-plugin 
<https://github.com/aleksandr-m/gitflow-maven-plugin> and found that 
it works quite sweetly.


… and it is being actively maintained.

Cheers,

Steve C

On 1 Mar 2018, at 12:56 am, Ben Tatham  
wrote:


Sounds like you're using gitflow (master, develop, feature/* 
branches).  If
so, we use the jgitflow-maven-plugin instead of 
maven-release-plugin, which
handles these transitions and the inherent conflicts caused by the 
maven

versioning.

Unfortunately, the maintainer is no longer working on it (and says 
he's not

even working in java anymore), but it still works well.

https://bitbucket.org/atlassian/jgit-flow/wiki/Home

On Wed, Feb 28, 2018 at 7:18 AM Matthew Broadhead <
matthew.broadh...@nbmlaw.co.uk> wrote:


hi,
not sure if this is the correct place to ask questions about the maven
release plugin
i am trying to set my snapshots and releases properly
i am using git with a master branch and a development branch
how do i work in the snapshot on development and then tag the releases
to master?
if you know any good tutorials online that would help as i tried a few
but they didn't fit my case

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

--

--
Ben Tatham
Software Architect

*Nano**metrics* *Inc.*

Ottawa * I*  Calgary  *I*  Houston  *I*  Beijing

T: +1 613 505 5065  *I*  bentat...@nanometrics.ca
www.nanometrics.ca  *I  *www.microseismicmonitoring.com

This message is intended exclusively for the individual or entity to 
which

it is addressed. This communication may contain information that is
proprietary, privileged, confidential or otherwise legally exempt from
disclosure. If you are not the named addressee, or have been 
inadvertently
and erroneously referenced in the address line, you are not 
authorized to
read, print, retain, copy or disseminate this message or any part of 
it. If

you have received this message in error, please notify the sender
immediately by e-mail and delete all copies of the message.





-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release plugin

2018-03-01 Thread Matthew Broadhead
thanks Stephen.  i will give this one a look too.  it looks almost 
identical to jgitflow-maven-plugin.


i have had problems testing jgitflow.  it seems even if i add the 
configuration parameter 
development it still creates a 
branch "develop".  also after release-finish it doesn't delete the 
release branch.  also are these plugins only supposed to be run from the 
master branch?


On 01/03/2018 08:25, Stephen Coy wrote:

I have been using https://github.com/aleksandr-m/gitflow-maven-plugin 
<https://github.com/aleksandr-m/gitflow-maven-plugin> and found that it works 
quite sweetly.

… and it is being actively maintained.

Cheers,

Steve C


On 1 Mar 2018, at 12:56 am, Ben Tatham  wrote:

Sounds like you're using gitflow (master, develop, feature/* branches).  If
so, we use the jgitflow-maven-plugin instead of maven-release-plugin, which
handles these transitions and the inherent conflicts caused by the maven
versioning.

Unfortunately, the maintainer is no longer working on it (and says he's not
even working in java anymore), but it still works well.

https://bitbucket.org/atlassian/jgit-flow/wiki/Home

On Wed, Feb 28, 2018 at 7:18 AM Matthew Broadhead <
matthew.broadh...@nbmlaw.co.uk> wrote:


hi,
not sure if this is the correct place to ask questions about the maven
release plugin
i am trying to set my snapshots and releases properly
i am using git with a master branch and a development branch
how do i work in the snapshot on development and then tag the releases
to master?
if you know any good tutorials online that would help as i tried a few
but they didn't fit my case

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

--

--
Ben Tatham
Software Architect

*Nano**metrics* *Inc.*

Ottawa * I*  Calgary  *I*  Houston  *I*  Beijing

T: +1 613 505 5065  *I*  bentat...@nanometrics.ca
www.nanometrics.ca  *I  *www.microseismicmonitoring.com

This message is intended exclusively for the individual or entity to which
it is addressed. This communication may contain information that is
proprietary, privileged, confidential or otherwise legally exempt from
disclosure. If you are not the named addressee, or have been inadvertently
and erroneously referenced in the address line, you are not authorized to
read, print, retain, copy or disseminate this message or any part of it. If
you have received this message in error, please notify the sender
immediately by e-mail and delete all copies of the message.





-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release plugin

2018-03-01 Thread Matthew Broadhead
Thanks Mark.  looks easy enough.  i may try a maven plugin first though 
as i like the idea of maven controlling all the git pushes etc


On 01/03/2018 05:05, Mark Derricutt wrote:


On 1 Mar 2018, at 2:56, Ben Tatham wrote:

Sounds like you're using gitflow (master, develop, feature/*
branches). If
so, we use the jgitflow-maven-plugin instead of
maven-release-plugin, which
handles these transitions and the inherent conflicts caused by the
maven
versioning.

Unfortunately, the maintainer is no longer working on it (and says
he's not
even working in java anymore), but it still works well.

For my own git-flow based releases I have the following 
|git-mvnrelease| script I have on the path:


|
#!/bin/sh
if  ! git diff-index --quiet HEAD --;then
 echo  "Git is dirty, clean up your mess!"
 exit  1
fi

VERSION=`xml sel -Nx="http://maven.apache.org/POM/4.0.0";  -t 
-v"/x:project/x:version"  pom.xml`
BASEVERSION=${VERSION%-SNAPSHOT}
ARTIFACTID=`xml sel -Nx="http://maven.apache.org/POM/4.0.0";  -t 
-v"/x:project/x:artifactId"  pom.xml`

echo  "Removing non-scm files..."
git clean -fdi

echo  "Checking master branch for updates..."
git checkout master
git pull origin master

git flow release start$BASEVERSION  &&  mvn release:prepare release:perform&&  git flow release 
finish -n$BASEVERSION  &&  git push origin&&  git push origin --tags
|

This first checks my working directory is clean, just for safety, 
extracts the pom.xml version for use in branch/tag names. Switches to 
my |master| branch and makes sure it's up to date, then does a batch 
release/push.


I don't think I've ever had any issues with maven versioning, unless 
the version number as part of the release/merge has changed to 
something unexpected.


YMMV
Mark



"The ease with which a change can be implemented has no relevance at 
all to whether it is the right change for the (Java) Platform for all 
time." — Mark Reinhold.


Mark Derricutt
http://www.theoryinpractice.net
http://www.chaliceofblood.net
http://plus.google.com/+MarkDerricutt
http://twitter.com/talios
http://facebook.com/mderricutt




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release plugin

2018-02-28 Thread Stephen Coy
I have been using https://github.com/aleksandr-m/gitflow-maven-plugin 
<https://github.com/aleksandr-m/gitflow-maven-plugin> and found that it works 
quite sweetly.

… and it is being actively maintained.

Cheers,

Steve C

> On 1 Mar 2018, at 12:56 am, Ben Tatham  wrote:
> 
> Sounds like you're using gitflow (master, develop, feature/* branches).  If
> so, we use the jgitflow-maven-plugin instead of maven-release-plugin, which
> handles these transitions and the inherent conflicts caused by the maven
> versioning.
> 
> Unfortunately, the maintainer is no longer working on it (and says he's not
> even working in java anymore), but it still works well.
> 
> https://bitbucket.org/atlassian/jgit-flow/wiki/Home
> 
> On Wed, Feb 28, 2018 at 7:18 AM Matthew Broadhead <
> matthew.broadh...@nbmlaw.co.uk> wrote:
> 
>> hi,
>> not sure if this is the correct place to ask questions about the maven
>> release plugin
>> i am trying to set my snapshots and releases properly
>> i am using git with a master branch and a development branch
>> how do i work in the snapshot on development and then tag the releases
>> to master?
>> if you know any good tutorials online that would help as i tried a few
>> but they didn't fit my case
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
>> --
> -- 
> Ben Tatham
> Software Architect
> 
> *Nano**metrics* *Inc.*
> 
> Ottawa * I*  Calgary  *I*  Houston  *I*  Beijing
> 
> T: +1 613 505 5065  *I*  bentat...@nanometrics.ca
> www.nanometrics.ca  *I  *www.microseismicmonitoring.com
> 
> This message is intended exclusively for the individual or entity to which
> it is addressed. This communication may contain information that is
> proprietary, privileged, confidential or otherwise legally exempt from
> disclosure. If you are not the named addressee, or have been inadvertently
> and erroneously referenced in the address line, you are not authorized to
> read, print, retain, copy or disseminate this message or any part of it. If
> you have received this message in error, please notify the sender
> immediately by e-mail and delete all copies of the message.



Re: maven release plugin

2018-02-28 Thread Mark Derricutt
On 1 Mar 2018, at 2:56, Ben Tatham wrote:

> Sounds like you're using gitflow (master, develop, feature/* branches).  If
> so, we use the jgitflow-maven-plugin instead of maven-release-plugin, which
> handles these transitions and the inherent conflicts caused by the maven
> versioning.
>
> Unfortunately, the maintainer is no longer working on it (and says he's not
> even working in java anymore), but it still works well.

For my own git-flow based releases I have the following `git-mvnrelease` script 
I have on the path:

```shell
#!/bin/sh
if ! git diff-index --quiet HEAD --; then
echo "Git is dirty, clean up your mess!"
exit 1
fi

VERSION=`xml sel -N x="http://maven.apache.org/POM/4.0.0"; -t -v 
"/x:project/x:version" pom.xml`
BASEVERSION=${VERSION%-SNAPSHOT}
ARTIFACTID=`xml sel -N x="http://maven.apache.org/POM/4.0.0"; -t -v 
"/x:project/x:artifactId" pom.xml`

echo "Removing non-scm files..."
git clean -fdi

echo "Checking master branch for updates..."
git checkout master
git pull origin master

git flow release start $BASEVERSION && mvn release:prepare release:perform && 
git flow release finish -n $BASEVERSION && git push origin && git push origin 
--tags
```

This first checks my working directory is clean, just for safety, extracts the 
pom.xml version for use in branch/tag names.  Switches to my `master` branch 
and makes sure it's up to date, then does a batch release/push.

I don't think I've ever had any issues with maven versioning, unless the 
version number as part of the release/merge has changed to something unexpected.

YMMV
Mark


---
"The ease with which a change can be implemented has no relevance at all to 
whether it is the right change for the (Java) Platform for all time." — 
Mark Reinhold.

Mark Derricutt
http://www.theoryinpractice.net
http://www.chaliceofblood.net
http://plus.google.com/+MarkDerricutt
http://twitter.com/talios
http://facebook.com/mderricutt


signature.asc
Description: OpenPGP digital signature


Re: maven release plugin

2018-02-28 Thread Matthew Broadhead

thanks Ben that looks just the job

On 28/02/2018 14:56, Ben Tatham wrote:

Sounds like you're using gitflow (master, develop, feature/* branches).  If
so, we use the jgitflow-maven-plugin instead of maven-release-plugin, which
handles these transitions and the inherent conflicts caused by the maven
versioning.

Unfortunately, the maintainer is no longer working on it (and says he's not
even working in java anymore), but it still works well.

https://bitbucket.org/atlassian/jgit-flow/wiki/Home

On Wed, Feb 28, 2018 at 7:18 AM Matthew Broadhead <
matthew.broadh...@nbmlaw.co.uk> wrote:


hi,
not sure if this is the correct place to ask questions about the maven
release plugin
i am trying to set my snapshots and releases properly
i am using git with a master branch and a development branch
how do i work in the snapshot on development and then tag the releases
to master?
if you know any good tutorials online that would help as i tried a few
but they didn't fit my case

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

--



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release plugin

2018-02-28 Thread Ben Tatham
Sounds like you're using gitflow (master, develop, feature/* branches).  If
so, we use the jgitflow-maven-plugin instead of maven-release-plugin, which
handles these transitions and the inherent conflicts caused by the maven
versioning.

Unfortunately, the maintainer is no longer working on it (and says he's not
even working in java anymore), but it still works well.

https://bitbucket.org/atlassian/jgit-flow/wiki/Home

On Wed, Feb 28, 2018 at 7:18 AM Matthew Broadhead <
matthew.broadh...@nbmlaw.co.uk> wrote:

> hi,
> not sure if this is the correct place to ask questions about the maven
> release plugin
> i am trying to set my snapshots and releases properly
> i am using git with a master branch and a development branch
> how do i work in the snapshot on development and then tag the releases
> to master?
> if you know any good tutorials online that would help as i tried a few
> but they didn't fit my case
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
> --
-- 
Ben Tatham
Software Architect

*Nano**metrics* *Inc.*

Ottawa * I*  Calgary  *I*  Houston  *I*  Beijing

T: +1 613 505 5065  *I*  bentat...@nanometrics.ca
 www.nanometrics.ca  *I  *www.microseismicmonitoring.com

This message is intended exclusively for the individual or entity to which
it is addressed. This communication may contain information that is
proprietary, privileged, confidential or otherwise legally exempt from
disclosure. If you are not the named addressee, or have been inadvertently
and erroneously referenced in the address line, you are not authorized to
read, print, retain, copy or disseminate this message or any part of it. If
you have received this message in error, please notify the sender
immediately by e-mail and delete all copies of the message.


maven release plugin

2018-02-28 Thread Matthew Broadhead

hi,
not sure if this is the correct place to ask questions about the maven 
release plugin

i am trying to set my snapshots and releases properly
i am using git with a master branch and a development branch
how do i work in the snapshot on development and then tag the releases 
to master?
if you know any good tutorials online that would help as i tried a few 
but they didn't fit my case


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: how to use both buildnumber-maven-plugin and maven-release-plugin

2017-10-25 Thread Stephen Coy
Doh! 

I misinterpreted the docs and was thinking that the flatten-maven-plugin was 
something only needed for multi-module projects…

Thanks for clearing that up.

 Steve C

> On 25 Oct 2017, at 7:46 pm, Karl Heinz Marbaise  wrote:
> 
> Hi,
> 
> On 25/10/17 08:50, Stephen Coy wrote:
>> Hi Pascal,
>> Unfortunately this method results in pom files being deployed with releases 
>> that do not have corresponding versions in them.
>> In fact, the version is literally:
>>  ${revision}
>> This results in build warnings for consumers of the released artifact.
> 
> If you like to use a property for the version. First you have to use Maven 
> 3.5.0+ and furthermore flatten-maven-plugin as described in the docs about 
> that[1].
> 
> Kind regards
> Karl Heinz Marbaise
> [1]: http://maven.apache.org/maven-ci-friendly.html
> 
>> Cheers,
>> Steve C
>>> On 24 Oct 2017, at 8:27 pm, Pascal  wrote:
>>> 
>>> For me it's hard to understand the problem you are having, it might help to
>>> specify the exact errors you are getting.
>>> 
>>> If you are willing to try something other than the release plugin, have a
>>> look at https://axelfontaine.com/blog/dead-burried.html
>>> 
>>> Cheers,
>>> 
>>> Pascal
>>> 
>>> 
>>> 2017-10-23 18:40 GMT+02:00 Justin Georgeson <
>>> justin.george...@halliburton.com>:
>>> 
 The 'clean verify' invoked by release:prepare fails in
 buildnumber-maven-plugin because pom.xml is modified. I can pass arguments
 to release:prepare have buildnumber-maven-plugin skip the check for
 modifications, but that check is one of the main motivations for using it
 in the first place. What are other people doing here?
 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: how to use both buildnumber-maven-plugin and maven-release-plugin

2017-10-25 Thread Karl Heinz Marbaise

Hi,

On 25/10/17 08:50, Stephen Coy wrote:

Hi Pascal,

Unfortunately this method results in pom files being deployed with releases 
that do not have corresponding versions in them.

In fact, the version is literally:

${revision}

This results in build warnings for consumers of the released artifact.


If you like to use a property for the version. First you have to use 
Maven 3.5.0+ and furthermore flatten-maven-plugin as described in the 
docs about that[1].


Kind regards
Karl Heinz Marbaise
[1]: http://maven.apache.org/maven-ci-friendly.html



Cheers,

Steve C


On 24 Oct 2017, at 8:27 pm, Pascal  wrote:

For me it's hard to understand the problem you are having, it might help to
specify the exact errors you are getting.

If you are willing to try something other than the release plugin, have a
look at https://axelfontaine.com/blog/dead-burried.html

Cheers,

Pascal


2017-10-23 18:40 GMT+02:00 Justin Georgeson <
justin.george...@halliburton.com>:


The 'clean verify' invoked by release:prepare fails in
buildnumber-maven-plugin because pom.xml is modified. I can pass arguments
to release:prepare have buildnumber-maven-plugin skip the check for
modifications, but that check is one of the main motivations for using it
in the first place. What are other people doing here?



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: how to use both buildnumber-maven-plugin and maven-release-plugin

2017-10-24 Thread Stephen Coy
Hi Pascal,

Unfortunately this method results in pom files being deployed with releases 
that do not have corresponding versions in them.

In fact, the version is literally:

${revision}

This results in build warnings for consumers of the released artifact.

Cheers,

Steve C

> On 24 Oct 2017, at 8:27 pm, Pascal  wrote:
> 
> For me it's hard to understand the problem you are having, it might help to
> specify the exact errors you are getting.
> 
> If you are willing to try something other than the release plugin, have a
> look at https://axelfontaine.com/blog/dead-burried.html
> 
> Cheers,
> 
> Pascal
> 
> 
> 2017-10-23 18:40 GMT+02:00 Justin Georgeson <
> justin.george...@halliburton.com>:
> 
>> The 'clean verify' invoked by release:prepare fails in
>> buildnumber-maven-plugin because pom.xml is modified. I can pass arguments
>> to release:prepare have buildnumber-maven-plugin skip the check for
>> modifications, but that check is one of the main motivations for using it
>> in the first place. What are other people doing here?
>> 
>> --
>> This e-mail, including any attached files, may contain confidential and
>> privileged information for the sole use of the intended recipient.  Any
>> review, use, distribution, or disclosure by others is strictly prohibited.
>> If you are not the intended recipient (or authorized to receive information
>> for the intended recipient), please contact the sender by reply e-mail and
>> delete all copies of this message.
>> 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: [EXTERNAL] Re: how to use both buildnumber-maven-plugin and maven-release-plugin

2017-10-24 Thread Justin Georgeson


> -Original Message-
> From: Karl Heinz Marbaise [mailto:khmarba...@gmx.de]
> Sent: Tuesday, October 24, 2017 12:25 PM
> To: Justin Georgeson ;
> i...@soebes.de; Maven Users List 
> Subject: Re: [EXTERNAL] Re: how to use both buildnumber-maven-plugin
> and maven-release-plugin
> 
> External Sender: Use caution with links/attachments.
> 
> 
> 
> Hi,
> 
> On 24/10/17 15:59, Justin Georgeson wrote:
> > I want to enforce in every build (not just release builds)
>  > that the working copy is pristine
>  >
> (ie doCheck=true for buildnumber plugin),
> 
> On a CI server or locally ?

It is enabled globally in the parent POM, as during transition from older Ant 
builds to Maven it has helped remind developers to do things like use resource 
filtering from source folder to build output folder rather than modifying in 
place (whether that be for source code or unit test resources) and also reduced 
pushing incomplete changes forgetting to include some of the modified files. 
I'm guessing this default setting will be the key distinction why people are 
confused how I'm having an issue with the combination.

> > but release:prepare dirties the working copy before running 'clean verify'.
> 
> Of course it does cause it changes the pom files to represent the correct
> version...and commit this state of the change back to version control...

My impression had been that the release plugin was invoking goals from the tag 
that it creates, rather than from a dirty working copy, for guaranteed 
reproducible results. I can see why that would be undesirable for centralized 
VCS like subversion though. 

> > So when I run release:prepare the buildnumber plugin fails. I can work
> > around it by running 'mvn release:prepare
>  >  -Darguments="-Dmaven.buildNumber.doCheck=false"' but that just
> seems hacky, so I was curious if there's a better way.
> 
> 
> You know about the release:prepare goal what it is exactly doing ?
> 
> https://urldefense.proofpoint.com/v2/url?u=http-
> 3A__maven.apache.org_maven-2Drelease_maven-2Drelease-
> 2Dplugin_examples_prepare-
> 2Drelease.html&d=DwICaQ&c=PskvixtEUDK7wuWU-
> tIg6oKuGYBRbrMXk2FZvF0UfTo&r=IaG729QyGh1osYCbh8OX9axItHyepxef_h
> VPx52Ly1s&m=WiG6vQ6aiVWMFCcORnOeArhgldg_TZF7xNV8d1YlECI&s=4f-
> Z8rl_qNhiUE4vBGA0mqAkY7Gb2rBntNqcUT9JwsE&e=

Clearly I didn't know _exactly_ what it was doing :) Most of our internal Maven 
usage has been for the Eclipse Tycho plugins thus far, and that's just not 
really compatible with maven-release-plugin so there's some technical debt I'm 
trying to get rid of to make our parent POMs more friendly to pure maven 
projects.
 
> Maybe I misunderstand your question but it sounds like you are trying to
> resolve a thing which has been solved by maven-release-plugin already?...

I just wanted opinions on the cleanest way to configure the two to work 
together. I still need buildnumber-maven-plugin to run during the release 
build. I now know I have to disable its check when preparing a release. 

If I set project.properties.maven.buildNumber.doCheck to true (instead of 
setting it to doCheck true in the plugin ), then have a profile 
that activates on present of maven-release-plugin temporary files and sets the 
property to false (like in example POM [1], corp proxy blocks pastebin), then 
the release:prepare and release:perform goals seem work without having to 
specify any extra -D command-line arguments and with the added benefit that 
developers should then be able to also set maven.buildNumber.doCheck to false 
in their settings.xml if they want to. Is there a better activation rule (than 
what's in the example POM [1)?

[1] https://paste.ee/p/tKYyh

> Kind regards
> Karl Heinz Marbaise
> 
> >
> > Looks like if I configure a default property value for
> maven.buildNumber.doCheck to true, then I can have a profile activate
> when file https://urldefense.proofpoint.com/v2/url?u=http-
> 3A__release.properties&d=DwICaQ&c=PskvixtEUDK7wuWU-
> tIg6oKuGYBRbrMXk2FZvF0UfTo&r=IaG729QyGh1osYCbh8OX9axItHyepxef_h
> VPx52Ly1s&m=WiG6vQ6aiVWMFCcORnOeArhgldg_TZF7xNV8d1YlECI&s=DzY
> 1956dm73empQx_us9QzZ5BL5yahhbKcjGLKyMT80&e= exists to set the
> doCheck property to false, and that gets me through release:prepare. Any
> pitfalls I might be walking into with something like that?
> >
> > -Original Message-
> > From: Karl Heinz Marbaise [mailto:khmarba...@gmx.de]
> > Sent: Tuesday, October 24, 2017 4:30 AM
> > To: Maven Users List ; Justin Georgeson
> > 
> > Subject: [EXTERNAL] Re: how to use both buildnumber-maven-plugin and
> > maven-release-plugin
> >
> > External Sender: Use caution with links/atta

Re: [EXTERNAL] Re: how to use both buildnumber-maven-plugin and maven-release-plugin

2017-10-24 Thread Karl Heinz Marbaise

Hi,

On 24/10/17 15:59, Justin Georgeson wrote:
I want to enforce in every build (not just release builds) 

> that the working copy is pristine
>
(ie doCheck=true for buildnumber plugin),

On a CI server or locally ?

but release:prepare dirties the working copy before running 'clean verify'. 


Of course it does cause it changes the pom files to represent the 
correct version...and commit this state of the change back to version 
control...




So when I run release:prepare the buildnumber plugin fails. I can work around 
it by running 'mvn release:prepare
>  -Darguments="-Dmaven.buildNumber.doCheck=false"' but that just seems 
hacky, so I was curious if there's a better way.



You know about the release:prepare goal what it is exactly doing ?

http://maven.apache.org/maven-release/maven-release-plugin/examples/prepare-release.html

Maybe I misunderstand your question but it sounds like you are trying to 
resolve a thing which has been solved by maven-release-plugin already?...


Kind regards
Karl Heinz Marbaise



Looks like if I configure a default property value for 
maven.buildNumber.doCheck to true, then I can have a profile activate when file 
release.properties exists to set the doCheck property to false, and that gets 
me through release:prepare. Any pitfalls I might be walking into with something 
like that?

-Original Message-
From: Karl Heinz Marbaise [mailto:khmarba...@gmx.de]
Sent: Tuesday, October 24, 2017 4:30 AM
To: Maven Users List ; Justin Georgeson 

Subject: [EXTERNAL] Re: how to use both buildnumber-maven-plugin and 
maven-release-plugin

External Sender: Use caution with links/attachments.



Hi,

the question is what the real problem is?

Can you have an example project which shows the problem? Or can you describe 
more in detail what exactly does not work or not work like you expect it..

Kind regards
Karl Heinz Marbaise



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: [EXTERNAL] Re: how to use both buildnumber-maven-plugin and maven-release-plugin

2017-10-24 Thread Justin Georgeson
I want to enforce in every build (not just release builds) that the working 
copy is pristine (ie doCheck=true for buildnumber plugin), but release:prepare 
dirties the working copy before running 'clean verify'. So when I run 
release:prepare the buildnumber plugin fails. I can work around it by running 
'mvn release:prepare -Darguments="-Dmaven.buildNumber.doCheck=false"' but that 
just seems hacky, so I was curious if there's a better way. 

Looks like if I configure a default property value for 
maven.buildNumber.doCheck to true, then I can have a profile activate when file 
release.properties exists to set the doCheck property to false, and that gets 
me through release:prepare. Any pitfalls I might be walking into with something 
like that?

-Original Message-
From: Karl Heinz Marbaise [mailto:khmarba...@gmx.de] 
Sent: Tuesday, October 24, 2017 4:30 AM
To: Maven Users List ; Justin Georgeson 

Subject: [EXTERNAL] Re: how to use both buildnumber-maven-plugin and 
maven-release-plugin

External Sender: Use caution with links/attachments.



Hi,

the question is what the real problem is?

Can you have an example project which shows the problem? Or can you describe 
more in detail what exactly does not work or not work like you expect it..

Kind regards
Karl Heinz Marbaise

--
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.


Re: how to use both buildnumber-maven-plugin and maven-release-plugin

2017-10-24 Thread Karl Heinz Marbaise

Hi,

the question is what the real problem is?

Can you have an example project which shows the problem? Or can you 
describe more in detail what exactly does not work or not work like you 
expect it..


Kind regards
Karl Heinz Marbaise

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: how to use both buildnumber-maven-plugin and maven-release-plugin

2017-10-24 Thread Pascal
For me it's hard to understand the problem you are having, it might help to
specify the exact errors you are getting.

If you are willing to try something other than the release plugin, have a
look at https://axelfontaine.com/blog/dead-burried.html

Cheers,

Pascal


2017-10-23 18:40 GMT+02:00 Justin Georgeson <
justin.george...@halliburton.com>:

> The 'clean verify' invoked by release:prepare fails in
> buildnumber-maven-plugin because pom.xml is modified. I can pass arguments
> to release:prepare have buildnumber-maven-plugin skip the check for
> modifications, but that check is one of the main motivations for using it
> in the first place. What are other people doing here?
>
> --
> This e-mail, including any attached files, may contain confidential and
> privileged information for the sole use of the intended recipient.  Any
> review, use, distribution, or disclosure by others is strictly prohibited.
> If you are not the intended recipient (or authorized to receive information
> for the intended recipient), please contact the sender by reply e-mail and
> delete all copies of this message.
>


how to use both buildnumber-maven-plugin and maven-release-plugin

2017-10-23 Thread Justin Georgeson
The 'clean verify' invoked by release:prepare fails in buildnumber-maven-plugin 
because pom.xml is modified. I can pass arguments to release:prepare have 
buildnumber-maven-plugin skip the check for modifications, but that check is 
one of the main motivations for using it in the first place. What are other 
people doing here?

--
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.


Maven release plugin, branch goal behavior

2015-08-25 Thread Bob Hpv
Hi,
I'm trying to use the release plugin (2.5.2 with maven 2.2.1) to perform a
delivery.

I did some tests using the release:perform goal.
In the current branch, it
 - updates the pom with the release version,
 - commit the modification,
 - add a tag,
 -  updates the pom to next snapshot,
 - commit
Which is fully ok for me.

I tried instead to use the release:branch goal (should do the same but use
branch instead).
I see the following behavior
In the current branch, it
 - updates the pom with the SNAPSHOT version (no modification , it's
wired git sees a full modification of the file even if the content is for
my point of view exactly the same),
 - commit the modification,
 - create the branch,
 -  updates the pom to next snapshot,
 - commit

I tried several parameters listed in the documentation to force the release
version in the pom but no way to do it.
How can I update the pom in the release:branch use case ???


Regards
Bob


Re: maven release plugin: help page is showing a deprecated version 2.5

2015-07-31 Thread Karl Heinz Marbaise

Hi Brice,

On 7/31/15 3:56 PM, Brice Vandeputte wrote:

Hi all,

  not sure to be on the good ML but I would like to ask to one of the
maven-release-plugin leader/owner to update some help page about the plugin
version to use.


It is very good to get in contact with us to show there is something 
wrong/could be made better...and yes use the mailing list for this...


Those pages are independent documentation from the 
maven-release-plugin...but




for example, this help page is up-to-date and refers to the latest plugin
vrersion : 2.5.2

http://maven.apache.org/maven-release/maven-release-plugin/examples/prepare-release.html
(others overviews pages are ok)


Those pages are generated during the release of a version of the 
plugin...so shouldn't be a problem..but this should not mean to check if 
see issues etc. please report them...





but this one is not (refers to : 2.5)

   https://maven.apache.org/guides/mini/guide-releasing.html
   maybe this is the only one but that page was my starting point


I have fixed the page content to use the most uptodate version.

Thanks for reporting this issue..


Kind regards
Karl Heinz Marbaise




I m trying to check but I have an issue when releasing with 2.5 version :
  on "release:perform" target, maven release plugin is deploying on
snapshot repo instead of release one.
   this issue has been discussed here:

http://stackoverflow.com/questions/7332580/maven-deploys-to-snapshot-instead-of-release
and rely on this bug:
   http://jira.codehaus.org/browse/MRELEASE-875

Is it possible to update the maven site to show only to the latest version
on each page to avoid confusing (unlucky) end-users like me ;)

Regards
Thanks
Brice Vandeputte




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



maven release plugin: help page is showing a deprecated version 2.5

2015-07-31 Thread Brice Vandeputte
Hi all,

 not sure to be on the good ML but I would like to ask to one of the
maven-release-plugin leader/owner to update some help page about the plugin
version to use.

for example, this help page is up-to-date and refers to the latest plugin
vrersion : 2.5.2

http://maven.apache.org/maven-release/maven-release-plugin/examples/prepare-release.html
   (others overviews pages are ok)


but this one is not (refers to : 2.5)

  https://maven.apache.org/guides/mini/guide-releasing.html
  maybe this is the only one but that page was my starting point


I m trying to check but I have an issue when releasing with 2.5 version :
 on "release:perform" target, maven release plugin is deploying on
snapshot repo instead of release one.
  this issue has been discussed here:

http://stackoverflow.com/questions/7332580/maven-deploys-to-snapshot-instead-of-release
   and rely on this bug:
  http://jira.codehaus.org/browse/MRELEASE-875

Is it possible to update the maven site to show only to the latest version
on each page to avoid confusing (unlucky) end-users like me ;)

Regards
Thanks
Brice Vandeputte


Re: maven-release-plugin: syntax of connectionUrl with git?

2015-05-07 Thread Mirko Friedenhagen
Hi Dan,

thanks, but this feels like a workaround as I have special profiles
defined, when performRelease is set and had defined other goals (deploy
sonar:sonar ticket:create).

Of course for a one time operation this a valid alternative. However than
we should state in the documentation of connectUrl that this is only
supported for Subversion :-) .

Regards
Mirko
-- 
Sent from my mobile
On May 7, 2015 9:30 AM, "Dan Tran"  wrote:

> try scm:bootstrap
>
> make sure to passing the required argument and profile
>
> -D
>
> On Thu, May 7, 2015 at 12:18 AM, Mirko Friedenhagen <
> mfriedenha...@gmail.com
> > wrote:
>
> > Hello,
> >
> > yesterday I already had pushed a git tag by running mvn
> > release:prepare and while I executed release:perform I remembered I
> > had the wrong settings.xml activated.
> >
> > I accidentally deleted release.properties by running release:clean.
> > Now I just wanted to run something like:
> >
> > mvn release-plugin:perform
> > -DconnectionUrl=scm:svn:
> > https://svn.mycompany.com/repos/path/to/myproject/tags/myproject-1.2.3
> >
> > as outlined at
> >
> http://maven.apache.org/maven-release/maven-release-plugin/examples/perform-release.html
> > .
> >
> > But I did not find the correct syntax for GIT. In the end, I created a
> > release.properties with the content scm.tag=myproject-1.2.3 and could
> > run
> > mvn release-plugin:perform
> > -DconnectionUrl=scm:git:git://github.com/ORG/PROJ.git
> >
> > Is there a way to specify the scm.tag on the CLI? I tried
> release.scm.tag.
> >
> >
> > Regards Mirko
> > --
> > http://illegalstateexception.blogspot.com/
> > https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen)
> > https://bitbucket.org/mfriedenhagen/
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
>


Re: maven-release-plugin: syntax of connectionUrl with git?

2015-05-07 Thread Dan Tran
try scm:bootstrap

make sure to passing the required argument and profile

-D

On Thu, May 7, 2015 at 12:18 AM, Mirko Friedenhagen  wrote:

> Hello,
>
> yesterday I already had pushed a git tag by running mvn
> release:prepare and while I executed release:perform I remembered I
> had the wrong settings.xml activated.
>
> I accidentally deleted release.properties by running release:clean.
> Now I just wanted to run something like:
>
> mvn release-plugin:perform
> -DconnectionUrl=scm:svn:
> https://svn.mycompany.com/repos/path/to/myproject/tags/myproject-1.2.3
>
> as outlined at
> http://maven.apache.org/maven-release/maven-release-plugin/examples/perform-release.html
> .
>
> But I did not find the correct syntax for GIT. In the end, I created a
> release.properties with the content scm.tag=myproject-1.2.3 and could
> run
> mvn release-plugin:perform
> -DconnectionUrl=scm:git:git://github.com/ORG/PROJ.git
>
> Is there a way to specify the scm.tag on the CLI? I tried release.scm.tag.
>
>
> Regards Mirko
> --
> http://illegalstateexception.blogspot.com/
> https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen)
> https://bitbucket.org/mfriedenhagen/
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


maven-release-plugin: syntax of connectionUrl with git?

2015-05-07 Thread Mirko Friedenhagen
Hello,

yesterday I already had pushed a git tag by running mvn
release:prepare and while I executed release:perform I remembered I
had the wrong settings.xml activated.

I accidentally deleted release.properties by running release:clean.
Now I just wanted to run something like:

mvn release-plugin:perform
-DconnectionUrl=scm:svn:https://svn.mycompany.com/repos/path/to/myproject/tags/myproject-1.2.3

as outlined at 
http://maven.apache.org/maven-release/maven-release-plugin/examples/perform-release.html.

But I did not find the correct syntax for GIT. In the end, I created a
release.properties with the content scm.tag=myproject-1.2.3 and could
run
mvn release-plugin:perform
-DconnectionUrl=scm:git:git://github.com/ORG/PROJ.git

Is there a way to specify the scm.tag on the CLI? I tried release.scm.tag.


Regards Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen)
https://bitbucket.org/mfriedenhagen/

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



[ANN] Apache Maven Release Plugin 2.5.2 Released

2015-04-22 Thread Robert Scholte
The Apache Maven team is pleased to announce the release of the Apache  
Maven Release Plugin, version 2.5.2


This plugin is used to release a project with Maven, saving a lot of  
repetitive, manual work. Releasing a project is made in two steps: prepare  
and perform.


http://maven.apache.org/maven-release/maven-release-plugin/

You should specify the version in your project's plugin configuration:


  org.apache.maven.plugins
  maven-release-plugin
  2.5.2


NOTE: This version contains an important fix for Maven 3.3.1+ users on  
Windows (see MRELEASE-902)


Release Notes - Maven Release Plugin - Version 2.5.2

** Bug
* [MRELEASE-555] - update versions does not update intermodule  
dependencies
* [MRELEASE-611] - The update-versions goal fails when project is not  
at a SNAPSHOT version
* [MRELEASE-834] - release:prepare fails when a system property  
starting with dependency is given
* [MRELEASE-871] - Release Tag wrongly created when invoked pom.xml  
path contains a '.'
* [MRELEASE-879] - Custom toolchain configuration is not passed to  
forked Maven executions
* [MRELEASE-892] - -Darguments doesn't allow -B to be passed to  
underlying maven executions

* [MRELEASE-902] - release:prepare fails on Windows since Maven-3.3.x

** Improvement
* [MRELEASE-552] - Add useEditMode option to release:update-versions
* [MRELEASE-874] - Improve doc about specifying version of plugin  
could sometimes be required on command-line


** New Feature
* [MRELEASE-901] - Goal stage should take parameter localCheckout as  
well.


** Task
* [MRELEASE-903] - Update maven-shared-invoker to 2.2
* [MRELEASE-906] - Upgrade to SCM 1.9.4


Enjoy,

-The Apache Maven team

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Issue with maven-release-plugin and maven 3.3.1

2015-04-22 Thread cody.a.fyler
That works for me.

Thanks!

Cody Fyler
Lending Grid Build Team
G=Lending Grid Builds
(515) – 441 - 0814

-Original Message-
From: Karl Heinz Marbaise [mailto:khmarba...@gmx.de] 
Sent: Wednesday, April 22, 2015 3:11 PM
To: Maven Users List
Subject: Re: Issue with maven-release-plugin and maven 3.3.1

Hi,

a short solution could be

https://issues.apache.org/jira/browse/MRELEASE-902

after the new release of maven-release-plugin 2.5.2 is there you could change 
to the new release which contains a fix for that...


Kind regards
Karl Heinz Marbaise
On 4/22/15 10:02 PM, cody.a.fy...@wellsfargo.com wrote:
> It appears as though the maven-release-plugin needs to be updated for Maven 
> 3.3.1 (similar to the maven-invoker-plugin)?
>
> I get this error trying a dry run:
>
> [INFO] [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-release-plugin:2.5.1:prepare (default-cli) on 
> project parent: Failed to invoke Maven build. Error configuring command-line. 
> Reason: Maven executable not found at: C:\bin\apache-maven-3.3.1\bin\mvn.bat 
> -> [Help 1]
>
> Cody Fyler
> Lending Grid Build Team
> G=Lending Grid Builds
> (515) - 441 - 0814
>
>
>
>


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Issue with maven-release-plugin and maven 3.3.1

2015-04-22 Thread Karl Heinz Marbaise

Hi,

a short solution could be

https://issues.apache.org/jira/browse/MRELEASE-902

after the new release of maven-release-plugin 2.5.2 is there you could 
change to the new release which contains a fix for that...



Kind regards
Karl Heinz Marbaise
On 4/22/15 10:02 PM, cody.a.fy...@wellsfargo.com wrote:

It appears as though the maven-release-plugin needs to be updated for Maven 
3.3.1 (similar to the maven-invoker-plugin)?

I get this error trying a dry run:

[INFO] [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-release-plugin:2.5.1:prepare (default-cli) on 
project parent: Failed to invoke Maven build. Error configuring command-line. 
Reason: Maven executable not found at: C:\bin\apache-maven-3.3.1\bin\mvn.bat -> 
[Help 1]

Cody Fyler
Lending Grid Build Team
G=Lending Grid Builds
(515) - 441 - 0814







-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Issue with maven-release-plugin and maven 3.3.1

2015-04-22 Thread cody.a.fyler
It appears as though the maven-release-plugin needs to be updated for Maven 
3.3.1 (similar to the maven-invoker-plugin)?

I get this error trying a dry run:

[INFO] [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-release-plugin:2.5.1:prepare (default-cli) on 
project parent: Failed to invoke Maven build. Error configuring command-line. 
Reason: Maven executable not found at: C:\bin\apache-maven-3.3.1\bin\mvn.bat -> 
[Help 1]

Cody Fyler
Lending Grid Build Team
G=Lending Grid Builds
(515) - 441 - 0814





AW: AW: maven-release-plugin / SVN credentials

2015-03-30 Thread Sebastian Oerding
Hello Robert,

svn works perfectly fine using the command line or the installed Tortoise SVN 
or using Subversion.
If invoking maven from the command line I do not have to provide credentials 
(just committed something where a change was sent to the server to verify 
that). Hence the SVN must take the credentials from somewhere which is related 
to the Active Directory / Kerberos ticket.

However this seems to fail if using the maven-release-plugin. However this may 
relate to
https://jira.codehaus.org/browse/MRELEASE-892
as there is also an error message to use --force interactive to make the 
maven-release-plugin to request the credentials.

I'll try with version 2.5.2 of the maven-release-plugin.

With regards
Sebastian

-Ursprüngliche Nachricht-
Von: Robert Scholte [mailto:rfscho...@apache.org] 
Gesendet: Freitag, 27. März 2015 22:02
An: Maven Users List
Betreff: Re: AW: maven-release-plugin / SVN credentials

Hi Sebastian,

this is first of all more an svn commandline issue rather than a Maven / 
maven-release-plugin issue.
For that reason you should start by calling svn directly from the commandline. 
In the end, that's exactly what maven-release-plugin (actually the 
scm-svn-provider) does. Once it can be called from commandline, it should be a 
simple step to make it work with Maven.
"svn status" or "svn up" are easy to verify, but don't always require 
credentials (depends how the access is controlled by the svn server) "svn 
commit" does require authentication.

How credentials are stored: that's all up the the svn client.

thanks,
Robert

Op Fri, 27 Mar 2015 10:35:51 +0100 schreef Sebastian Oerding
:

> Hi Robert,
>
> - I have looked at the Maven SCM project but do not get my problem 
> solved or more hints on it
> - The maven-release-plugin is locked (with version 2.5, not 2.5.1)
> - If running maven with -X according to console no credentials are 
> provided when accessing the SVN
> - If running maven with -Dusername / -Dpassword the credentials are 
> shown (password masked) and it works, however changing the password at 
> least monthly for each run configuration / bat file / ... is no real 
> solution
> - My colleagues encounter the same problem having switched to SVN 1.8
> - How can I get a JIRA account to report a bug?
> - I know that SVN really changes from 1.6 to 1.8, maybe this problem 
> stems from there?
> - I read that  the order of authentication mechanism changes, however 
> trying parameter -Dsvnkit.http.methods=Basic,Digest,Negotiate,NTLM did 
> not help
> - Does the maven-scm-plugin should be able to access SVN with Windows 
> 7
> + Active Directory by using the system's Kerberos / NTLM ticket or was
> there any desupport of this feature?
> - I also had the problem after the last password change but somehow 
> managed it by doing a single commit with Tortoise, saving the 
> credentials (deleting %USER%\AppData\Roaming\Subversion\auth before).
> Afterwards the maven-release worked as expected. Unfortunately this 
> approach seems to work no more. Hence how can I check where are the 
> credentials taken from? Is there some additional kind of extreme 
> logging besides -e / -X switches?
>
> Thanks in advance,
> Sebastian
>
> -Ursprüngliche Nachricht-
> Von: Robert Scholte [mailto:rfscho...@apache.org]
> Gesendet: Freitag, 27. März 2015 08:51
> An: Maven Users List
> Betreff: Re: maven-release-plugin / SVN credentials
>
> Hi Sebastian,
>
> since your issue has to do with svn, one needs to look at the Maven 
> SCM project.[1] That's what the maven-release-plugin is using to the 
> commits, tags and checkouts.
> First ensure you've locked the version of the maven-release-plugin, 
> preferably the lastest (i.e. 2.5.1).
> If you run the plugin with logging level set to debug (by adding the 
> -X
> argument) you'll see the commandline
> which is executed. You should be able to do the same (do strip off the 
> cmdshell specific part). That should give you the same exception and 
> might give you a hint how this could be fixed.
>
> Verify if it is a knows issue in Jira[2], sometimes such issues give 
> extra info.
>
> Verify the SCM Subversion page[3], it also describes some additional 
> configuration.
>
> If this can't be solved by commandline, then there's a svnjava 
> implementation which you could use[4].
>
> thanks,
> Robert
>
> [1] http://maven.apache.org/scm/maven-scm-providers/index.html
> [2] http://jira.codehaus.org/browse/SCM/component/11191
> [3] http://maven.apache.org/scm/subversion.html
> [4]
> https://code.google.com/a/apache-extras.org/p/maven-scm-provider-svnja
> va/wiki/Usage
>
> Op Thu, 26 Mar 2015 08:20:31 +0100 schreef Sebastian Oerding
> :
>
>&

Re: AW: maven-release-plugin / SVN credentials

2015-03-27 Thread Robert Scholte

Hi Sebastian,

this is first of all more an svn commandline issue rather than a Maven /  
maven-release-plugin issue.
For that reason you should start by calling svn directly from the  
commandline. In the end, that's exactly what maven-release-plugin  
(actually the scm-svn-provider) does. Once it can be called from  
commandline, it should be a simple step to make it work with Maven.
"svn status" or "svn up" are easy to verify, but don't always require  
credentials (depends how the access is controlled by the svn server)

"svn commit" does require authentication.

How credentials are stored: that's all up the the svn client.

thanks,
Robert

Op Fri, 27 Mar 2015 10:35:51 +0100 schreef Sebastian Oerding  
:



Hi Robert,

- I have looked at the Maven SCM project but do not get my problem  
solved or more hints on it

- The maven-release-plugin is locked (with version 2.5, not 2.5.1)
- If running maven with -X according to console no credentials are  
provided when accessing the SVN
- If running maven with -Dusername / -Dpassword the credentials are  
shown (password masked) and it works, however changing the password at  
least monthly for each run configuration / bat file / ... is no real  
solution

- My colleagues encounter the same problem having switched to SVN 1.8
- How can I get a JIRA account to report a bug?
- I know that SVN really changes from 1.6 to 1.8, maybe this problem  
stems from there?
- I read that  the order of authentication mechanism changes, however  
trying parameter -Dsvnkit.http.methods=Basic,Digest,Negotiate,NTLM did  
not help
- Does the maven-scm-plugin should be able to access SVN with Windows 7  
+ Active Directory by using the system's Kerberos / NTLM ticket or was  
there any desupport of this feature?
- I also had the problem after the last password change but somehow  
managed it by doing a single commit with Tortoise, saving the  
credentials (deleting %USER%\AppData\Roaming\Subversion\auth before).  
Afterwards the maven-release worked as expected. Unfortunately this  
approach seems to work no more. Hence how can I check where are the  
credentials taken from? Is there some additional kind of extreme logging  
besides -e / -X switches?


Thanks in advance,
Sebastian

-Ursprüngliche Nachricht-
Von: Robert Scholte [mailto:rfscho...@apache.org]
Gesendet: Freitag, 27. März 2015 08:51
An: Maven Users List
Betreff: Re: maven-release-plugin / SVN credentials

Hi Sebastian,

since your issue has to do with svn, one needs to look at the Maven SCM  
project.[1] That's what the maven-release-plugin is using to the  
commits, tags and checkouts.
First ensure you've locked the version of the maven-release-plugin,  
preferably the lastest (i.e. 2.5.1).

If you run the plugin with logging level set to debug (by adding the -X
argument) you'll see the commandline
which is executed. You should be able to do the same (do strip off the  
cmdshell specific part). That should give you the same exception and  
might give you a hint how this could be fixed.


Verify if it is a knows issue in Jira[2], sometimes such issues give  
extra info.


Verify the SCM Subversion page[3], it also describes some additional  
configuration.


If this can't be solved by commandline, then there's a svnjava  
implementation which you could use[4].


thanks,
Robert

[1] http://maven.apache.org/scm/maven-scm-providers/index.html
[2] http://jira.codehaus.org/browse/SCM/component/11191
[3] http://maven.apache.org/scm/subversion.html
[4]
https://code.google.com/a/apache-extras.org/p/maven-scm-provider-svnjava/wiki/Usage

Op Thu, 26 Mar 2015 08:20:31 +0100 schreef Sebastian Oerding
:


Hello,

I have a problem with the maven-release-plugin using the SVN
credentials (details below). I always get an SVN authorization error.
It seems that the release plugin does not use the existing
credentials. Unfortunately I'm even not sure whether it is a problem
of the maven-release-plugin or SVN. How can I check / get a log which
credentials / whether credentials are actually used?

Please explain me how an installed SVN is used (SlikSvn and Tortoise
SVN installed, both with version 1.8 of the subversion protocol).

Details:
I'm in a company where we have Windows 7, 64 bit systems and an Active
Directory for Single Sign On (This Windows Kerberos / NTLM like stuff).

The maven-release-plugin worked fine until switching from subversion
1.6 to subversion 1.8. However I had exactly the same problem last
month after the monthly password change. Surprisingly I was able to
get this solved by making a single commit with Tortoise SVN providing
the credentials (and choosing Tortoise to save them). However after my
laptop has been renewed the same problem occurs again and I can not
solve it using the same trick as before.

Using Google I found a lot of posts on stackoverflow and similar stuff
where users report a problem with the maven-releas

AW: maven-release-plugin / SVN credentials

2015-03-27 Thread Sebastian Oerding
Hi Robert,

- I have looked at the Maven SCM project but do not get my problem solved or 
more hints on it
- The maven-release-plugin is locked (with version 2.5, not 2.5.1)
- If running maven with -X according to console no credentials are provided 
when accessing the SVN
- If running maven with -Dusername / -Dpassword the credentials are shown 
(password masked) and it works, however changing the password at least monthly 
for each run configuration / bat file / ... is no real solution
- My colleagues encounter the same problem having switched to SVN 1.8
- How can I get a JIRA account to report a bug?
- I know that SVN really changes from 1.6 to 1.8, maybe this problem stems from 
there?
- I read that  the order of authentication mechanism changes, however trying 
parameter -Dsvnkit.http.methods=Basic,Digest,Negotiate,NTLM did not help
- Does the maven-scm-plugin should be able to access SVN with Windows 7 + 
Active Directory by using the system's Kerberos / NTLM ticket or was there any 
desupport of this feature? 
- I also had the problem after the last password change but somehow managed it 
by doing a single commit with Tortoise, saving the credentials (deleting 
%USER%\AppData\Roaming\Subversion\auth before). Afterwards the maven-release 
worked as expected. Unfortunately this approach seems to work no more. Hence 
how can I check where are the credentials taken from? Is there some additional 
kind of extreme logging besides -e / -X switches?

Thanks in advance,
Sebastian

-Ursprüngliche Nachricht-
Von: Robert Scholte [mailto:rfscho...@apache.org] 
Gesendet: Freitag, 27. März 2015 08:51
An: Maven Users List
Betreff: Re: maven-release-plugin / SVN credentials

Hi Sebastian,

since your issue has to do with svn, one needs to look at the Maven SCM 
project.[1] That's what the maven-release-plugin is using to the commits, tags 
and checkouts.
First ensure you've locked the version of the maven-release-plugin, preferably 
the lastest (i.e. 2.5.1).
If you run the plugin with logging level set to debug (by adding the -X
argument) you'll see the commandline
which is executed. You should be able to do the same (do strip off the cmdshell 
specific part). That should give you the same exception and might give you a 
hint how this could be fixed.

Verify if it is a knows issue in Jira[2], sometimes such issues give extra info.

Verify the SCM Subversion page[3], it also describes some additional 
configuration.

If this can't be solved by commandline, then there's a svnjava implementation 
which you could use[4].

thanks,
Robert

[1] http://maven.apache.org/scm/maven-scm-providers/index.html
[2] http://jira.codehaus.org/browse/SCM/component/11191
[3] http://maven.apache.org/scm/subversion.html
[4]
https://code.google.com/a/apache-extras.org/p/maven-scm-provider-svnjava/wiki/Usage

Op Thu, 26 Mar 2015 08:20:31 +0100 schreef Sebastian Oerding
:

> Hello,
>
> I have a problem with the maven-release-plugin using the SVN 
> credentials (details below). I always get an SVN authorization error. 
> It seems that the release plugin does not use the existing 
> credentials. Unfortunately I'm even not sure whether it is a problem 
> of the maven-release-plugin or SVN. How can I check / get a log which 
> credentials / whether credentials are actually used?
>
> Please explain me how an installed SVN is used (SlikSvn and Tortoise 
> SVN installed, both with version 1.8 of the subversion protocol).
>
> Details:
> I'm in a company where we have Windows 7, 64 bit systems and an Active 
> Directory for Single Sign On (This Windows Kerberos / NTLM like stuff).
>
> The maven-release-plugin worked fine until switching from subversion 
> 1.6 to subversion 1.8. However I had exactly the same problem last 
> month after the monthly password change. Surprisingly I was able to 
> get this solved by making a single commit with Tortoise SVN providing 
> the credentials (and choosing Tortoise to save them). However after my 
> laptop has been renewed the same problem occurs again and I can not 
> solve it using the same trick as before.
>
> Using Google I found a lot of posts on stackoverflow and similar stuff 
> where users report a problem with the maven-release-plugin and SVN 
> credentials. However all of the solutions presented are unacceptable 
> to me or do not solve my problem. For example I can not store my 
> company wide password in some file which is checked into the SVN. 
> Providing the parameters for each invocation of the 
> maven-release-plugin adjusting them every month would also be somehow 
> risky. At least it would be error-prone - every time when I forget to 
> adjust the password after a monthly change I have to rollback the 
> release, clean up the project, adjust the settings and try again.
>
> In my previous setup where I was able to solve the problem 

Re: maven-release-plugin / SVN credentials

2015-03-27 Thread Robert Scholte

Hi Sebastian,

since your issue has to do with svn, one needs to look at the Maven SCM  
project.[1]
That's what the maven-release-plugin is using to the commits, tags and  
checkouts.
First ensure you've locked the version of the maven-release-plugin,  
preferably the lastest (i.e. 2.5.1).
If you run the plugin with logging level set to debug (by adding the -X  
argument) you'll see the commandline
which is executed. You should be able to do the same (do strip off the  
cmdshell specific part). That should give you the same exception and might  
give you a hint how this could be fixed.


Verify if it is a knows issue in Jira[2], sometimes such issues give extra  
info.


Verify the SCM Subversion page[3], it also describes some additional  
configuration.


If this can't be solved by commandline, then there's a svnjava  
implementation which you could use[4].


thanks,
Robert

[1] http://maven.apache.org/scm/maven-scm-providers/index.html
[2] http://jira.codehaus.org/browse/SCM/component/11191
[3] http://maven.apache.org/scm/subversion.html
[4]  
https://code.google.com/a/apache-extras.org/p/maven-scm-provider-svnjava/wiki/Usage


Op Thu, 26 Mar 2015 08:20:31 +0100 schreef Sebastian Oerding  
:



Hello,

I have a problem with the maven-release-plugin using the SVN credentials  
(details below). I always get an SVN authorization error. It seems that  
the release plugin does not use the existing credentials. Unfortunately  
I'm even not sure whether it is a problem of the maven-release-plugin or  
SVN. How can I check / get a log which credentials / whether credentials  
are actually used?


Please explain me how an installed SVN is used (SlikSvn and Tortoise SVN  
installed, both with version 1.8 of the subversion protocol).


Details:
I'm in a company where we have Windows 7, 64 bit systems and an Active  
Directory for Single Sign On (This Windows Kerberos / NTLM like stuff).


The maven-release-plugin worked fine until switching from subversion 1.6  
to subversion 1.8. However I had exactly the same problem last month  
after the monthly password change. Surprisingly I was able to get this  
solved by making a single commit with Tortoise SVN providing the  
credentials (and choosing Tortoise to save them). However after my  
laptop has been renewed the same problem occurs again and I can not  
solve it using the same trick as before.


Using Google I found a lot of posts on stackoverflow and similar stuff  
where users report a problem with the maven-release-plugin and SVN  
credentials. However all of the solutions presented are unacceptable to  
me or do not solve my problem. For example I can not store my company  
wide password in some file which is checked into the SVN. Providing the  
parameters for each invocation of the maven-release-plugin adjusting  
them every month would also be somehow risky. At least it would be  
error-prone - every time when I forget to adjust the password after a  
monthly change I have to rollback the release, clean up the project,  
adjust the settings and try again.


In my previous setup where I was able to solve the problem by a Tortoise  
commit I noticed that the SVN credentials persisted under  
%USER%\AppData\Roaming\Subversion\auth changed. Before there were only  
empty directories, now there is a directory svn.simple which contains a  
text file with the SVN realm, username and so on as expected. The  
password also seems to be fine but I can not definitely say as it is  
encrypted.


Do you have any further hints on that, maybe a SVN mailing list where to  
go?


With kind regards,

Sebastian Oerding

Entwickler

Robotron Datenbank-Software GmbH
Stuttgarter Straße 29
01189 Dresden
sebastian.oerd...@robotron.de<mailto:sebastian.oerd...@robotron.de>
www.robotron.de<http://www.robotron.de/>


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



maven-release-plugin / SVN credentials

2015-03-26 Thread Sebastian Oerding
Hello,

I have a problem with the maven-release-plugin using the SVN credentials 
(details below). I always get an SVN authorization error. It seems that the 
release plugin does not use the existing credentials. Unfortunately I'm even 
not sure whether it is a problem of the maven-release-plugin or SVN. How can I 
check / get a log which credentials / whether credentials are actually used?

Please explain me how an installed SVN is used (SlikSvn and Tortoise SVN 
installed, both with version 1.8 of the subversion protocol).

Details:
I'm in a company where we have Windows 7, 64 bit systems and an Active 
Directory for Single Sign On (This Windows Kerberos / NTLM like stuff).

The maven-release-plugin worked fine until switching from subversion 1.6 to 
subversion 1.8. However I had exactly the same problem last month after the 
monthly password change. Surprisingly I was able to get this solved by making a 
single commit with Tortoise SVN providing the credentials (and choosing 
Tortoise to save them). However after my laptop has been renewed the same 
problem occurs again and I can not solve it using the same trick as before.

Using Google I found a lot of posts on stackoverflow and similar stuff where 
users report a problem with the maven-release-plugin and SVN credentials. 
However all of the solutions presented are unacceptable to me or do not solve 
my problem. For example I can not store my company wide password in some file 
which is checked into the SVN. Providing the parameters for each invocation of 
the maven-release-plugin adjusting them every month would also be somehow 
risky. At least it would be error-prone - every time when I forget to adjust 
the password after a monthly change I have to rollback the release, clean up 
the project, adjust the settings and try again.

In my previous setup where I was able to solve the problem by a Tortoise commit 
I noticed that the SVN credentials persisted under 
%USER%\AppData\Roaming\Subversion\auth changed. Before there were only empty 
directories, now there is a directory svn.simple which contains a text file 
with the SVN realm, username and so on as expected. The password also seems to 
be fine but I can not definitely say as it is encrypted.

Do you have any further hints on that, maybe a SVN mailing list where to go?

With kind regards,

Sebastian Oerding

Entwickler

Robotron Datenbank-Software GmbH
Stuttgarter Straße 29
01189 Dresden
sebastian.oerd...@robotron.de<mailto:sebastian.oerd...@robotron.de>
www.robotron.de<http://www.robotron.de/>



Re: Maven Release Plugin Unexpected Behaviour

2014-10-23 Thread Stephen Connolly

maven-release-plugin
2.5.1


does the job

as does

mvn org.apache.maven.plugins:maven-release-plugin:2.5.1:prepare
org.apache.maven.plugins:maven-release-plugin:2.5.1:perform

On 23 October 2014 09:51, Vlad Slepukhin  wrote:

> Hello!
>
> I has already posted this question to StackOverflow, though I didn’t get
> much help (expect warning about git requirements for 2.5.x version).
>
> The thing is that I’m trying to set up our project deployment to Nexus
> process via release-plugin. My script is:
>
> git checkout -b release-${RELEASE_VERSION}
> mvn org.apache.maven.plugins:maven-release-plugin:2.4.2:prepare
> -DautoVersionSubmodules=true
> -DdevelopmentVersion=${RELEASE_VERSION}.1-SNAPSHOT -DpushChanges=true
> -DreleaseVersion=${RELEASE_VERSION}.0 -Dtag=v${RELEASE_VERSION}.0
> mvn  org.apache.maven.plugins:maven-release-plugin:2.4.2:perform
>
> The problem is: if this plugin (and its SCM dependency) is not added to
> the main project pom, it is going to push your artifact to snapshot
> repository with wrong name and WONT’T push updates to your branch.
>
> It seems to repeat this problem:
> https://jira.codehaus.org/browse/MRELEASE-812
>
> However, it was closed in 1.9.1 of maven-scm-provider-gitexe, which I’m
> using right now.
>
> Any ideas on solving this issue without adding next lines to main pom:
>
> 
> maven-release-plugin
>2.4.2
>
>  
>org.apache.maven.scm
>maven-scm-provider-gitexe
>  1.9.2
>  
>
>  
>
> --
> Kind Regards,
> Vlad Slepukhin
>
>


Maven Release Plugin Unexpected Behaviour

2014-10-23 Thread Vlad Slepukhin
Hello!

I has already posted this question to StackOverflow, though I didn’t get much 
help (expect warning about git requirements for 2.5.x version).

The thing is that I’m trying to set up our project deployment to Nexus process 
via release-plugin. My script is: 

git checkout -b release-${RELEASE_VERSION}
mvn org.apache.maven.plugins:maven-release-plugin:2.4.2:prepare 
-DautoVersionSubmodules=true -DdevelopmentVersion=${RELEASE_VERSION}.1-SNAPSHOT 
-DpushChanges=true -DreleaseVersion=${RELEASE_VERSION}.0 
-Dtag=v${RELEASE_VERSION}.0
mvn  org.apache.maven.plugins:maven-release-plugin:2.4.2:perform

The problem is: if this plugin (and its SCM dependency) is not added to the 
main project pom, it is going to push your artifact to snapshot repository with 
wrong name and WONT’T push updates to your branch.

It seems to repeat this problem: https://jira.codehaus.org/browse/MRELEASE-812

However, it was closed in 1.9.1 of maven-scm-provider-gitexe, which I’m using 
right now. 

Any ideas on solving this issue without adding next lines to main pom:


    maven-release-plugin
       2.4.2
       
         
           org.apache.maven.scm
           maven-scm-provider-gitexe
             1.9.2
         
       
 

-- 
Kind Regards, 
Vlad Slepukhin



Re: Maven release plugin fail during javadoc generation

2014-09-06 Thread Robert Scholte

Hi,

the plugin causing this problem must be  the maven-javadoc-plugin :)

the release:perform isn't that magic, you can do the same steps by hand:
- check out the code from tag (created by release:prepare)
- go to target/checkout
- execute "mvn deploy site-deploy" (site-deploy depends on the  
availability of a site under distributionManagement)


If you still have the target/checkout folder, run 'mvn site' and you'll  
see your project failing for the same reason as you mentioned.


There's a small difference between calling javadoc:javadoc and site. The  
first one will only get its configuration from the javadoc-plugin as  
specified in the build-section.
However, if the javadoc generation is generated as part of the site phase,  
the configuration is picked up from the reporting-section in the pom.xml.  
This can lead to different results.


Hope this helps you figuring out the real problem.

thanks,
Robert

Op Wed, 03 Sep 2014 09:22:33 +0200 schreef Sylvain Roulet  
:



Hello all,


I've a project since several years and I had not problem to build it.

I recently installed JDK1.7 on my Windows 7 and now my build fail during  
mvn

release:perform !


The build fail saying "unmappable character for encoding utf-8".

That's true as my source file are encoded in ISO-8859-1.


So I've added  ISO-8859-1 => no change

I try to use env variable : JAVA_TOOL_OPTIONS =  
-Dfile.encoding=ISO-8859-1

=> no change

true to not generate javadoc => no change...

...

and a lot of other tests


I finally realized that the option file generated in the folder
/target/checkout/target/apidocs

contains options saying that encoding is UTF-8 !


I don't think it is a maven javadoc plugin problem as if I run mvn
javadoc:javadoc, I runs successfully !


Finnaly if I use JDK 1.6 it runs perfectly... But that's not what I want  
to

do.


Does any one have any idea why options are not taking into account when
maven release:perform is executed


Thanks


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Maven release plugin fail during javadoc generation

2014-09-05 Thread Sylvain Roulet
Hello all, 

 

I've a project since several years and I had not problem to build it.

I recently installed JDK1.7 on my Windows 7 and now my build fail during mvn
release:perform !

 

The build fail saying "unmappable character for encoding utf-8".

That's true as my source file are encoded in ISO-8859-1.

 

So I've added  ISO-8859-1 => no change

I try to use env variable : JAVA_TOOL_OPTIONS = -Dfile.encoding=ISO-8859-1
=> no change

true to not generate javadoc => no change...

... 

and a lot of other tests

 

I finally realized that the option file generated in the folder
/target/checkout/target/apidocs

contains options saying that encoding is UTF-8 !

 

I don't think it is a maven javadoc plugin problem as if I run mvn
javadoc:javadoc, I runs successfully !

 

Finnaly if I use JDK 1.6 it runs perfectly... But that's not what I want to
do.

 

Does any one have any idea why options are not taking into account when
maven release:perform is executed

 

Thanks



Re: Maven Release Plugin and Java 8 issue

2014-09-01 Thread Robert Scholte

Hi,

I guess you configured IntelliJ to compile with Java8 instead of  
instructing Maven to do so.
Did you set the source and target in the configuration of the  
maven-compiler-plugin?[1]
It's not the maven-release-plugin which is responsible for setting the  
java source and target.


thanks,
Robert

[1]  
http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html


Op Fri, 29 Aug 2014 08:46:03 +0200 schreef Vijaysenthil Veeriah  
:



Hi
  I apologize I'm kind of new to maven and I cant figure out how  get the
Maven Release plugin to work for a Java 8 project.  I'm using  version  
2.5

(The maven compiler version is 3.1) . When i just use the compiler plugin
and do a compile it works in fact i can use most of the other plugins  
like

deploy etc but when i try to use the maven release plugin it get the
following error, I'm running this in IntelliJ and the java_home and Maven
runner are all configured to use 1.8, Also like i said if i directly
execute the maven compiler plugin, it works fine


Any help is greatly appreciated
Thanks
Vijay



The info the is spitted out Before the run

/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/java
-Dmaven.home=/usr/share/apache-maven-3.2.2
-Dclassworlds.conf=/usr/share/apache-maven-3.2.2/bin/m2.conf
-Didea.launcher.port=7547  
"-Didea.launcher.bin.path=/Applications/IntelliJ

IDEA 13.app/bin" -Dfile.encoding=UTF-8 -classpath
"/usr/share/apache-maven-3.2.2/boot/plexus-classworlds-2.5.1.jar:/Applications/IntelliJ
IDEA 13.app/lib/idea_rt.jar"  
com.intellij.rt.execution.application.AppMain

org.codehaus.classworlds.Launcher -Didea.version=13.1.3 -e -X
release:prepare -DdryRun=true
Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e;
2014-06-17T06:51:42-07:00)
*Maven home: /usr/share/apache-maven-3.2.2*
*Java version: 1.8.0_05, vendor: Oracle Corporation*
*Java home:
/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre*
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9.4", arch: "x86_64", family: "mac"



The error



 Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project : Fatal error compiling: invalid target
release: 1.8 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project : Fatal error compiling
[INFO] at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
[INFO] at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
[INFO] at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
[INFO] at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
[INFO] at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
[INFO] at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
[INFO] at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
[INFO] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
[INFO] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
[INFO] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
[INFO] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
[INFO] at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO] at java.lang.reflect.Method.invoke(Method.java:597)
[INFO] at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
[INFO] at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
[INFO] at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
[INFO] at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[INFO] Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal
error compiling
[INFO] at
org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:796)
[INFO] at
org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
[INFO] at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
[INFO] at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
[INFO] ... 19 more
[INFO] Caused by: org.codehaus.plexus.compiler.CompilerException: invalid
target release: 1.8
[INFO] at
org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.

Re: Maven Release Plugin - release:branch: branch versions not set as expected

2014-09-01 Thread Graham Leggett
On 1 Sep 2014, at 03:21, Mark Gibson  wrote:

> Ok, thanks Robert.
> 
> Sadly this doesn't fit my expectations or needs.  I'll look to do something a 
> little more manual.

Are you perhaps mixing up tagging and branching?

What you describe sounds like what release:prepare would do.

Regards,
Graham
--


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Maven Release Plugin - release:branch: branch versions not set as expected

2014-09-01 Thread Mark Gibson
Ok, thanks Robert.

Sadly this doesn't fit my expectations or needs.  I'll look to do something a 
little more manual.

Mark

-Original Message-
From: Robert Scholte [mailto:rfscho...@apache.org] 
Sent: 29 August 2014 17:51
To: Maven Users List
Subject: Re: Maven Release Plugin - release:branch: branch versions not set as 
expected

Hi,

IMO branches are mutable, so it makes sense that this will always result in a 
-SNAPSHOT Only tags are considered immutable, so that will get a NON Snapshot.
IIRC only the versions of one of the poms will be updated, either the one 
staying on the trunk or the one moved to the branch.

thanks,
Robert

Op Fri, 29 Aug 2014 17:08:14 +0200 schreef Mark Gibson
:

> (please see bottom of email for environment/version information)
>
> I am trying to use the "release:branch" goal to create a branch, setting  
> the version in the POMs in both the new branch and the working copies.   
> No matter what properties I define on the command line, the release 
> plugin is overriding the branch version information to what it thinks 
> (incorrectly in my opinion) it should be.  It looks like the release 
> version is being set either by calculation from current project 
> version, or supplied development version.
>
> I.e.  when calling Maven with the following (snippet)
>
> -DreleaseVersion=1.0.0
> -DdevelopmentVersion=1.0.1-SNAPSHOT
> -DupdateVersionsToSnapshot=false
> -DdryRun=true
>
> The version in all the pom.xml.next files is as expected 
> (1.0.1-SNAPSHOT), but the version in all the pom.xml.branch files is 
> not as expected (1.0.1-SNAPSHOT when I would expect 1.0.0).
>
> Am I missing something that would explain why the above is correct?  
> Or am I missing something obvious in how to configure the plugin to 
> work as expected?
>
> (I've included a very simple repro in the grey breakout box below )
>
> Thanks
> Mark
>
>
>
> Very simple setup to demonstrate:
>
> Project structure
>
> |   pom.xml
> |
> +---child-one
> |   pom.xml
> |
> \---child-two
> pom.xml
>
> Root pom.xml
>
> http://maven.apache.org/POM/4.0.0";  
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
>
>   4.0.0
>
>   org.gibbo
>   gibbo-pom
>   1.0-SNAPSHOT
>   pom
>   Gibbo Parent POM
>
>
>   
> child-one
> child-two
>   
>
>
>   
> UTF-8
>   
>
>
>   
> 
>   scm:git:ssh://g...@bitbucket.org/mwgibson/gibbo.git
> 
> 
>   scm:git:ssh://g...@bitbucket.org/mwgibson/gibbo.git
> 
> 
>   https://bitbucket.org/mwgibson/gibbo
> 
>   
>
>
>   
> 
>
>   
> org.apache.maven.plugins
> maven-scm-plugin
> 1.9.1
>   
>
>   
> org.apache.maven.plugins
> maven-release-plugin
> 2.5
>   
>
> 
>   
>
> 
>
> child-one pom.xml
>
> http://maven.apache.org/POM/4.0.0";  
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
>
>   4.0.0
>
>   
> org.gibbo
> gibbo-pom
> 1.0-SNAPSHOT
> ../pom.xml
>   
>
>   child-one
>   pom
>   Gibbo Child One POM
>
> 
>
> child-two pom.xml
>
> http://maven.apache.org/POM/4.0.0";  
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
>
>   4.0.0
>
>   
>org.gibbo
> gibbo-pom
> 1.0-SNAPSHOT
> ../pom.xml
>   
>
>   child-two
>   pom
>   Gibbo Child Two POM
>
> 
>
> Command Line
>
> mvn --batch-mode ^
> release:branch ^
> -DautoVersionSubmodules=true ^
> -DupdateBranchVersions=true ^
> -DupdateWorkingCopyVersions=true ^
> -DupdateDependencies=true ^
> -DupdateVersionsToSnapshot=false ^
> -DpushChanges=false ^
> -DremoteTagging=false ^
> -DsuppressCommitBeforeBranch=false ^
> -DbranchName=RELEASE-%1 ^
> -DreleaseVersion=%1 ^
> -DdevelopmentVersion=%2-SNAPSHOT ^
> -DdryRun=true
>
> I've tried specifying all modules independently (with the 
> -Dproject.rel.org.gibbo:child-one etc pattern), but the release 
> versions in the branch are still overridden incorrectly.
>
>
>
>
> mvn --version
> Apache Maven 3.2.2 (45f7c06d68e745d05

Maven Release Plugin and Java 8 issue

2014-08-31 Thread Vijaysenthil Veeriah
Hi
  I apologize I'm kind of new to maven and I cant figure out how  get the
Maven Release plugin to work for a Java 8 project.  I'm using  version 2.5
(The maven compiler version is 3.1) . When i just use the compiler plugin
and do a compile it works in fact i can use most of the other plugins like
deploy etc but when i try to use the maven release plugin it get the
following error, I'm running this in IntelliJ and the java_home and Maven
runner are all configured to use 1.8, Also like i said if i directly
execute the maven compiler plugin, it works fine


Any help is greatly appreciated
Thanks
Vijay



The info the is spitted out Before the run

/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/java
-Dmaven.home=/usr/share/apache-maven-3.2.2
-Dclassworlds.conf=/usr/share/apache-maven-3.2.2/bin/m2.conf
-Didea.launcher.port=7547 "-Didea.launcher.bin.path=/Applications/IntelliJ
IDEA 13.app/bin" -Dfile.encoding=UTF-8 -classpath
"/usr/share/apache-maven-3.2.2/boot/plexus-classworlds-2.5.1.jar:/Applications/IntelliJ
IDEA 13.app/lib/idea_rt.jar" com.intellij.rt.execution.application.AppMain
org.codehaus.classworlds.Launcher -Didea.version=13.1.3 -e -X
release:prepare -DdryRun=true
Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e;
2014-06-17T06:51:42-07:00)
*Maven home: /usr/share/apache-maven-3.2.2*
*Java version: 1.8.0_05, vendor: Oracle Corporation*
*Java home:
/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre*
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9.4", arch: "x86_64", family: "mac"



The error



 Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project : Fatal error compiling: invalid target
release: 1.8 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project : Fatal error compiling
[INFO] at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
[INFO] at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
[INFO] at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
[INFO] at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
[INFO] at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
[INFO] at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
[INFO] at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
[INFO] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
[INFO] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
[INFO] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
[INFO] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
[INFO] at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO] at java.lang.reflect.Method.invoke(Method.java:597)
[INFO] at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
[INFO] at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
[INFO] at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
[INFO] at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[INFO] Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal
error compiling
[INFO] at
org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:796)
[INFO] at
org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
[INFO] at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
[INFO] at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
[INFO] ... 19 more
[INFO] Caused by: org.codehaus.plexus.compiler.CompilerException: invalid
target release: 1.8
[INFO] at
org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:191)
[INFO] at
org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:169)
[INFO] at
org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:785)
[INFO] ... 22 more
[INFO] Caused by: java.lang.IllegalArgumentException: invalid target
release: 1.8
[INFO] at
com.sun.tools.javac.main.RecognizedOptions$GrumpyHelper.error(RecognizedOptions.java:75)
[INFO] at
com.sun.tools.javac.main.RecognizedOptions$14.process(RecognizedOptions.java:380)

Re: Maven Release Plugin - release:branch: branch versions not set as expected

2014-08-29 Thread Robert Scholte

Hi,

IMO branches are mutable, so it makes sense that this will always result  
in a -SNAPSHOT

Only tags are considered immutable, so that will get a NON Snapshot.
IIRC only the versions of one of the poms will be updated, either the one  
staying on the trunk or the one moved to the branch.


thanks,
Robert

Op Fri, 29 Aug 2014 17:08:14 +0200 schreef Mark Gibson  
:



(please see bottom of email for environment/version information)

I am trying to use the "release:branch" goal to create a branch, setting  
the version in the POMs in both the new branch and the working copies.   
No matter what properties I define on the command line, the release  
plugin is overriding the branch version information to what it thinks  
(incorrectly in my opinion) it should be.  It looks like the release  
version is being set either by calculation from current project version,  
or supplied development version.


I.e.  when calling Maven with the following (snippet)

-DreleaseVersion=1.0.0
-DdevelopmentVersion=1.0.1-SNAPSHOT
-DupdateVersionsToSnapshot=false
-DdryRun=true

The version in all the pom.xml.next files is as expected  
(1.0.1-SNAPSHOT), but the version in all the pom.xml.branch files is not  
as expected (1.0.1-SNAPSHOT when I would expect 1.0.0).


Am I missing something that would explain why the above is correct?  Or  
am I missing something obvious in how to configure the plugin to work as  
expected?


(I've included a very simple repro in the grey breakout box below )

Thanks
Mark



Very simple setup to demonstrate:

Project structure

|   pom.xml
|
+---child-one
|   pom.xml
|
\---child-two
pom.xml

Root pom.xml

http://maven.apache.org/POM/4.0.0";  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0  
http://maven.apache.org/xsd/maven-4.0.0.xsd";>


  4.0.0

  org.gibbo
  gibbo-pom
  1.0-SNAPSHOT
  pom
  Gibbo Parent POM


  
child-one
child-two
  


  
UTF-8
  


  

  scm:git:ssh://g...@bitbucket.org/mwgibson/gibbo.git


  scm:git:ssh://g...@bitbucket.org/mwgibson/gibbo.git


  https://bitbucket.org/mwgibson/gibbo

  


  


  
org.apache.maven.plugins
maven-scm-plugin
1.9.1
  

  
    org.apache.maven.plugins
maven-release-plugin
2.5
  


  



child-one pom.xml

http://maven.apache.org/POM/4.0.0";  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0  
http://maven.apache.org/xsd/maven-4.0.0.xsd";>


  4.0.0

  
org.gibbo
gibbo-pom
1.0-SNAPSHOT
../pom.xml
  

  child-one
  pom
  Gibbo Child One POM



child-two pom.xml

http://maven.apache.org/POM/4.0.0";  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0  
http://maven.apache.org/xsd/maven-4.0.0.xsd";>


  4.0.0

  
   org.gibbo
gibbo-pom
1.0-SNAPSHOT
../pom.xml
  

  child-two
  pom
  Gibbo Child Two POM



Command Line

mvn --batch-mode ^
release:branch ^
-DautoVersionSubmodules=true ^
-DupdateBranchVersions=true ^
-DupdateWorkingCopyVersions=true ^
-DupdateDependencies=true ^
-DupdateVersionsToSnapshot=false ^
-DpushChanges=false ^
-DremoteTagging=false ^
-DsuppressCommitBeforeBranch=false ^
-DbranchName=RELEASE-%1 ^
-DreleaseVersion=%1 ^
-DdevelopmentVersion=%2-SNAPSHOT ^
-DdryRun=true

I've tried specifying all modules independently (with the  
-Dproject.rel.org.gibbo:child-one etc pattern), but the release versions  
in the branch are still overridden incorrectly.





mvn --version
Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e;  
2014-06-17T14:51:42+01:00)

Maven home: C:\MyProgramFiles\apache-maven-3.2.2\bin\..
Java version: 1.7.0_60, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_60\jre
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 8", version: "6.2", arch: "amd64", family: "windows"

git --version
git version 1.9.4.msysgit.1

Maven-release-plugin 2.5
Maven-scm-plugin 1.9.1



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Maven Release Plugin - release:branch: branch versions not set as expected

2014-08-29 Thread Mark Gibson
(please see bottom of email for environment/version information)

I am trying to use the "release:branch" goal to create a branch, setting the 
version in the POMs in both the new branch and the working copies.  No matter 
what properties I define on the command line, the release plugin is overriding 
the branch version information to what it thinks (incorrectly in my opinion) it 
should be.  It looks like the release version is being set either by 
calculation from current project version, or supplied development version.

I.e.  when calling Maven with the following (snippet)

-DreleaseVersion=1.0.0
-DdevelopmentVersion=1.0.1-SNAPSHOT
-DupdateVersionsToSnapshot=false
-DdryRun=true

The version in all the pom.xml.next files is as expected (1.0.1-SNAPSHOT), but 
the version in all the pom.xml.branch files is not as expected (1.0.1-SNAPSHOT 
when I would expect 1.0.0).

Am I missing something that would explain why the above is correct?  Or am I 
missing something obvious in how to configure the plugin to work as expected?

(I've included a very simple repro in the grey breakout box below )

Thanks
Mark



Very simple setup to demonstrate:

Project structure

|   pom.xml
|
+---child-one
|   pom.xml
|
\---child-two
pom.xml

Root pom.xml

http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>

  4.0.0

  org.gibbo
  gibbo-pom
  1.0-SNAPSHOT
  pom
  Gibbo Parent POM


  
child-one
child-two
  


  
UTF-8
  


  

  scm:git:ssh://g...@bitbucket.org/mwgibson/gibbo.git


  scm:git:ssh://g...@bitbucket.org/mwgibson/gibbo.git


  https://bitbucket.org/mwgibson/gibbo

  


  


  
org.apache.maven.plugins
maven-scm-plugin
1.9.1
  

  
    org.apache.maven.plugins
maven-release-plugin
2.5
  


  



child-one pom.xml

http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>

  4.0.0

  
org.gibbo
gibbo-pom
1.0-SNAPSHOT
../pom.xml
  

  child-one
  pom
  Gibbo Child One POM



child-two pom.xml

http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>

  4.0.0

  
   org.gibbo
gibbo-pom
1.0-SNAPSHOT
../pom.xml
  

  child-two
  pom
  Gibbo Child Two POM



Command Line

mvn --batch-mode ^
release:branch ^
-DautoVersionSubmodules=true ^
-DupdateBranchVersions=true ^
-DupdateWorkingCopyVersions=true ^
-DupdateDependencies=true ^
-DupdateVersionsToSnapshot=false ^
-DpushChanges=false ^
-DremoteTagging=false ^
-DsuppressCommitBeforeBranch=false ^
-DbranchName=RELEASE-%1 ^
-DreleaseVersion=%1 ^
-DdevelopmentVersion=%2-SNAPSHOT ^
-DdryRun=true

I've tried specifying all modules independently (with the 
-Dproject.rel.org.gibbo:child-one etc pattern), but the release versions in the 
branch are still overridden incorrectly.




mvn --version
Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; 
2014-06-17T14:51:42+01:00)
Maven home: C:\MyProgramFiles\apache-maven-3.2.2\bin\..
Java version: 1.7.0_60, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_60\jre
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 8", version: "6.2", arch: "amd64", family: "windows"

git --version
git version 1.9.4.msysgit.1

Maven-release-plugin 2.5
Maven-scm-plugin 1.9.1




Re: maven-release-plugin: multi module project with multiple git repositories

2014-08-06 Thread Robert Scholte
Short answer: no, that's not possible. The plugin assumes that every  
svn-folder or git-repository is a complete project with its own  
release-cycle.


thanks,
Robert

Op Wed, 06 Aug 2014 18:24:42 +0200 schreef Henning Moll :


Hi,
 i wonder if it's possible to use the maven-release-plugin for a project  
where each child project is served by a different git repository:

 root - pom.xml [stored in git1]
child1 - pom.xml [stored in git2]
child2 - pom.xml [stored in git3]

I searched the web for hours because there are some promising (?)  
comments in

https://jira.codehaus.org/browse/MRELEASE-627?focusedCommentId=247308&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-247308

Unfortunately all my experiments so far failed...

I am subscribed to the list.

Best regards
Henning


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



maven-release-plugin: multi module project with multiple git repositories

2014-08-06 Thread Henning Moll
Hi,
 
i wonder if it's possible to use the maven-release-plugin for a project where 
each child project is served by a different git repository:
 
root - pom.xml [stored in git1]
child1 - pom.xml [stored in git2]
child2 - pom.xml [stored in git3]

I searched the web for hours because there are some promising (?) comments in
https://jira.codehaus.org/browse/MRELEASE-627?focusedCommentId=247308&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-247308

Unfortunately all my experiments so far failed...

I am subscribed to the list.

Best regards
Henning


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven release plugin having trouble with transformations?

2014-05-29 Thread Laird Nelson
On Thu, May 29, 2014 at 8:48 PM, Laird Nelson  wrote:

> Sure enough, I'm never seeing a git commit operation (with -X turned on).
>  How can I get commits to start working again?  Am I overlooking an option?
>

Upgrading the maven-release-plugin version to 2.5 caused commit operations
to start being issued again and I was (finally) able to perform a release
in the same way I've been performing them for years prior.

Other readers: do kindly check your own maven-release-plugin version
stanzas and make sure you're not using version 2.4.2.  When operating the
Apple git client, commits are never sent and you will release the wrong
thing with no errors.

Best,
Laird

-- 
http://about.me/lairdnelson


Re: Maven release plugin having trouble with transformations?

2014-05-29 Thread Laird Nelson
On Thu, May 29, 2014 at 8:15 PM, Laird Nelson  wrote:

> It is as though the transformation is not being committed properly.
>

Sure enough, I'm never seeing a git commit operation (with -X turned on).
 How can I get commits to start working again?  Am I overlooking an option?

[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd /Users/ljnelson/Projects/github/nomen &&
git add -- pom.xml
[INFO] Working directory: /Users/ljnelson/Projects/github/nomen
[INFO] Executing: /bin/sh -c cd /Users/ljnelson/Projects/github/nomen &&
git status
[INFO] Working directory: /Users/ljnelson/Projects/github/nomen
[DEBUG] On branch master
[DEBUG] Your branch is up-to-date with 'origin/master'.
[DEBUG]
[DEBUG] Changes to be committed:
[DEBUG]   (use "git reset HEAD ..." to unstage)
[DEBUG]
[DEBUG] modified:   pom.xml
[DEBUG]
[DEBUG] Untracked files:
[DEBUG]   (use "git add ..." to include in what will be committed)
[DEBUG]
[DEBUG] pom.xml.releaseBackup
[DEBUG] release.properties
[DEBUG]
[INFO] Tagging release with the label nomen-1.0.6...
[DEBUG] ScmTagPhase :: scmTagParameters remotingTag true
[DEBUG] ScmTagPhase :: scmTagParameters scmRevision null
[DEBUG] ScmTagPhase :: fileSet  basedir =
/Users/ljnelson/Projects/github/nomen; files = []
[INFO] Executing: /bin/sh -c cd /Users/ljnelson/Projects/github/nomen &&
git tag -F
/var/folders/6q/r_047dp54lxdh5w7zhcg8044gn/T/maven-scm-174490540.commit
nomen-1.0.6

Best,
Laird

-- 
http://about.me/lairdnelson


Re: Maven release plugin having trouble with transformations?

2014-05-29 Thread Laird Nelson
On Thu, May 29, 2014 at 7:52 PM, Laird Nelson  wrote:

> Now, on a particular project on GitHub, it is incorrectly transforming my
> pom.xml and attempting to release the project as a snapshot.
>

Whittling this down a bit, it looks like the transformation works properly,
because after transformation, the release plugin runs a build, and I can
see in that build that the version is correct (i.e. non-SNAPSHOT).

It appears to be in what is selected for tagging.  The thing that is tagged
(and then checked out later, and then released/deployed) is my original
development pom.xml.

It is as though the transformation is not being committed properly, or that
the tag is being misapplied.  All the other mysterious screwed-up behavior
descends from here.

What could account for this?  Why now?  Is there something GitHub-related
that might have changed (though that seems wrong)?

Best,
Laird

-- 
http://about.me/lairdnelson


Maven release plugin having trouble with transformations?

2014-05-29 Thread Laird Nelson
This is very puzzling.

For years I've used the maven-release-plugin to automate my releases with
no trouble.

Now, on a particular project on GitHub, it is incorrectly transforming my
pom.xml and attempting to release the project as a snapshot.

The project is drop-dead brainlessly simple.  It is a single-module project.

The version is of the form 1.X.X-SNAPSHOT to start with.  Let's say it's at
1.0.3-SNAPSHOT.

I run mvn release:prepare and answer all the prompts with the defaults, as
I have for years.  It correctly surmises that the release version should be
1.0.3 and the new dev version should be 1.0.4-SNAPSHOT.

It then transforms the pom.xml (apparently), and (apparently) tags the repo.

When I investigate the release.properties file, it looks OK.

However, when I look at the contents of the tag just created, it has the
wrong version in it (1.0.3-SNAPSHOT).  I've tried this back to back, and
sometimes the tag has really random old versions: it's almost like the git
checkout command that the release plugin issues is checking out the wrong
branch or otherwise screwing things up--and all of a sudden, for no
discernible reason.

When I then do a release:perform, what gets mvn deploy'ed is a snapshot
version instead of the expected release version.  Investigating
target/checkout shows that the wrong branch--or perhaps the "right"
branch/tag with the wrong contents--is what was "perform"ed on.

This behavior has never happened to me before and I have not added any
settings or changed anything.  I'm using Maven 3.0.5, the release plugin
version 2.4.2 and Apple git 1.8.5.2.  Completely stumped.

This is really just a plea for help with shotgunning in the dark; has
anyone observed behavior remotely like this before?

Thanks,
Best,
Laird

-- 
http://about.me/lairdnelson


Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-29 Thread Ron Wheeler

You don't mention Release Candidate of Milestone Releases.
It seems that some of the versions that are going through to integration 
and end-user testing might fit these categories.
These were mentioned earlier in this thread but seemed to have been 
skipped in the discussion as your process got better described.


Ron

On 29/03/2014 12:50 AM, ghostwolf59 wrote:

So if I understand correctly you want to use SNAPSHOTs because:
- you don't want the artifact to end up in the "releases"-repository yes,

correct


because QA needs to be done first

Not quite - occasionally projects (still in development state but nearing
its end) engage formal internal test teams to conduct tests against what
they delivered (these tests involve performance, integration as well as
functional tests)
All this takes place in an *non* locked down SIT env.
Our formal Archiva release repository is technically not used for other than
resources that is deemed well behaved that passed internal unit tests,
system integration and in some cases systems that have gone through formal
tests by test teams that received a signed off by the internal test team.
Once a delivery has been signed off the official release id done (into our
releases repo) - this release is then pushed out to the locked down UAT env
where the business perform functional tests and once happy and a sign off
have been received that same release is then pushed into PROD.
So in effect our "releases" repo is only used for UAT and PROD.

Releasing a snapshot is a convenient one but I think a snapshot could be
viewed in two different ways, normal & mile stone where mile stone snapshot
releases could include all the info a formal release would include.
- The ability to release snapshot still exists under the latest plugins -
what's now gone missing is the ability to release everything that would be
generated during a formal release i.e javadoc, site info, scm branch tagging
etc.
Even if a snapshot is cleaned out I think it would be very rare occasions
where this would become a problem - the scm branch could in such case be
used to rebuild the lost snapshot release.

I think our bottom line is that we only want to see properly tested and sane
releases in our "prod state" releases repo - any such release have been
formally requested and approved by our Change Management process - snapshots
is managed by individual developers and do not go through a sign off
process.

The way we integrated Archiva, project site info and Subversion works really
well - this latest issue of not being able to build full snapshot releases
would in effect force us to change our current process - either by banning
these sort of mile stones or force developers to
1. manually branch tag the source,
2. build a local site
3. push the locally built site info out to our project web site
4. push out the snapshot to archivas snapshot repo

There's a lot that can (and honestly will) go wrong here - the earlier
version of the plugin took care of most of this (only issue being that a
developer may overwrite the release and scm version at the prompt with wrong
info)
  

What you are looking for is "staging": a concept where you release your
artifacts to the QA-repository. If they accept it, they push it to the
next repository, ... until it is pushed to the company-repository, ready
to be used by everyone.

I will look into this - seem like a sensible way to go about things

Thanks for the advice given by all

cheers



-
good @ being sucked @
--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789950.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org





--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread ghostwolf59
> So if I understand correctly you want to use SNAPSHOTs because:
> - you don't want the artifact to end up in the "releases"-repository yes,  

correct

> because QA needs to be done first

Not quite - occasionally projects (still in development state but nearing
its end) engage formal internal test teams to conduct tests against what
they delivered (these tests involve performance, integration as well as
functional tests)
All this takes place in an *non* locked down SIT env.
Our formal Archiva release repository is technically not used for other than
resources that is deemed well behaved that passed internal unit tests,
system integration and in some cases systems that have gone through formal
tests by test teams that received a signed off by the internal test team.
Once a delivery has been signed off the official release id done (into our
releases repo) - this release is then pushed out to the locked down UAT env
where the business perform functional tests and once happy and a sign off
have been received that same release is then pushed into PROD.
So in effect our "releases" repo is only used for UAT and PROD.

Releasing a snapshot is a convenient one but I think a snapshot could be
viewed in two different ways, normal & mile stone where mile stone snapshot
releases could include all the info a formal release would include.
- The ability to release snapshot still exists under the latest plugins -
what's now gone missing is the ability to release everything that would be
generated during a formal release i.e javadoc, site info, scm branch tagging
etc.
Even if a snapshot is cleaned out I think it would be very rare occasions
where this would become a problem - the scm branch could in such case be
used to rebuild the lost snapshot release.

I think our bottom line is that we only want to see properly tested and sane
releases in our "prod state" releases repo - any such release have been
formally requested and approved by our Change Management process - snapshots
is managed by individual developers and do not go through a sign off
process.

The way we integrated Archiva, project site info and Subversion works really
well - this latest issue of not being able to build full snapshot releases
would in effect force us to change our current process - either by banning
these sort of mile stones or force developers to 
1. manually branch tag the source, 
2. build a local site 
3. push the locally built site info out to our project web site 
4. push out the snapshot to archivas snapshot repo

There's a lot that can (and honestly will) go wrong here - the earlier
version of the plugin took care of most of this (only issue being that a
developer may overwrite the release and scm version at the prompt with wrong
info)
 
> What you are looking for is "staging": a concept where you release your  
> artifacts to the QA-repository. If they accept it, they push it to the  
> next repository, ... until it is pushed to the company-repository, ready  
> to be used by everyone. 

I will look into this - seem like a sensible way to go about things

Thanks for the advice given by all

cheers



-
good @ being sucked @
--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789950.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread Wayne Fay
> Let me join this thread, because that "someone" is me. As said by Stephen:
> the version handling prior to 2.4 contained several issues, so you were
> relying on a bug.

Reminds me of this classic XKCD... :)
https://xkcd.com/1172/

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread Robert Scholte

Hi,
Let me join this thread, because that "someone" is me. As said by Stephen:  
the version handling prior to 2.4 contained several issues, so you were  
relying on a bug.

This has all been done as part of MRELEASE-511[1] and related issues.

There is no such thing as a "formal SNAPSHOT": it's a formal release or a  
SNAPSHOT, not both.
If you want the release to be formal, use version patterns with alpha,  
beta, milestone or release candidate as supported by Maven (through  
Aether)[2]
If you want to  upload to the SNAPSHOT repository, just "deploy" the  
development version
If you want a tag/branch, either use release:branch, scm:branch or  
scm:tag[3]
Keep in mind: the difference in behavior between a release and a SNAPSHOT.  
And versions are considered cheap nowadays.


thanks,
Robert

[1] https://jira.codehaus.org/browse/MRELEASE-511
[2]  
http://sonatype.github.io/sonatype-aether/apidocs/org/sonatype/aether/util/version/GenericVersionScheme.html

[3] http://maven.apache.org/scm/maven-scm-plugin/

Op Fri, 28 Mar 2014 15:12:54 +0100 schreef ghostwolf59  
:



Doing it as I explained did NOT allow you to do a release or refer to it
within other resources during a legic release phase

What you triggered was a release (as if legit) to go into the snapshot  
repo
- cant see any issues with that kind of behavior and have turned out to  
be

very useful when implementing formal test signoffs where exact version
tested against become critical (mind you these test phases is done before
even taken the app to UAT - technically still in a development phase).

Allowing these "formal" snapshots releases to be released into the  
snapshot

repo can hardly affect the normal behavior of releasing local builds
(without any constraint of the build was done against committed data - as
it's currently works)

From what I hear is that someone decided to plug this "feature" =  
personally

(and form an organizational point of view I think you removed useful
functionality)

Next question: if this now is a planned move - why not allow snapshots  
(that
maven does on local uncommitted data) to be processed as if it actually  
is
somewhat legit - without open up the possibility to use this as a prod  
state

resource in the dependency sections ?





-
good @ being sucked @
--
View this message in context:  
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789916.html

Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread Stephen Connolly
release:branch -> yes, release:prepare -> no


On 28 March 2014 13:49, James Nord (jnord)  wrote:

> shouldn't release:branch still support this still though?
>
> If not that's bad as you will end up with a release version on the head of
> either the source branch or the new branch (and both should be used for
> ongoing development so should be snapshots...)
>
> /James
>
> > -Original Message-
> > From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
> > Sent: 28 March 2014 13:32
> > To: Maven Users List
> > Subject: Re: maven release-plugin 2.5 bug - releasing snapshots...
> >
> > Let me rephrase. The release plugin is designed to make release versions.
> > It is not designed to make -SNAPSHOT versions. It was a bug that it let
> you
> > specify a -SNAPSHOT version as the release version. The bug has been
> fixed.
> >
> >
> > On 28 March 2014 13:18, ghostwolf59
> > wrote:
> >
> > > That's a way to general statement to be made  - that also is incorrect
>   !
> > >
> > > A snapshot is not allowed for final release - but could still be
> > > released into a shapshot repo for test purposes !
> > > The question really bogs down to how much control you'd like to have
> > > against a release snapshot.
> > > Anyone can in effect release a snapshot into the remote archiva
> > > snapshot repo but no scm branch tag would take place and the source
> > > this snapshot was based on would be unknown since uncommitted data
> > > could have been used.
> > >
> > > If you go down the path of controlling this (in selected cases) you'd
> > > like to have full control over the source it represent as well be able
> > > to assess the site info linked to this release.
> > >
> > > A simple mvn deploy would not do these things - it would only promote
> > > a local build into archiva's snapshot repository - with a lot of ???
> > > to follow when it comes to QA, source control etc.
> > >
> > >
> > > I am not trying to do a "*/release/*" as such - it's a legit release
> > > of a
> > > */snapshot/* to be used for test purposed in a highly controlled
> > > manner pending official signoffs - once a signoff is received a proper
> > > release for that version would be performed.
> > >
> > > The final release would never be allowed to be a snapshot - nor would
> > > any snapshot dependencies be allowed but that's a side issue and have
> > > absolutely nothing to do with what I am arguing about.
> > >
> > > The snapshot release would end up in a dedicated snapshot repository
> > > so why you go down this path I don't really understand - bogs down to
> > > how v2.2.2 vs higher versions of the release-plugin behaves.
> > >
> > > I have now done some tests going back in history and it shows that all
> > > versions after *v.2.3.2* (my initial test was on v2.2.2) fails when it
> > > comes to this...
> > >
> > > So it appear that v 2.4 onwards all fail when it comes to this
> > >
> > > Succeeds:
> > > <
> > > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> > prompt-
> > > v.2.3.2.jpg
> > > >
> > >
> > > Failures;
> > > <
> > > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> > prompt-
> > > v.2.5-w.version.jpg
> > > >
> > >
> > > <
> > > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> > prompt-
> > > v.2.4.2.jpg
> > > >
> > >
> > > <
> > > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> > prompt-
> > > v.2.4.1.jpg
> > > >
> > >
> > > <
> > > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> > prompt-
> > > v.2.4.jpg
> > > >
> > >
> > >
> > >
> > >
> > >
> > > -
> > > good @ being sucked @
> > > --
> > > View this message in context:
> > > http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-
> > releasin
> > > g-snapshots-tp5789837p5789892.html
> > > Sent from the Maven - Users mailing list archive at Nabble.com.
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > > For additional commands, e-mail: users-h...@maven.apache.org
> > >
> > >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread Robert Scholte

So if I understand correctly you want to use SNAPSHOTs because:
- you don't want the artifact to end up in the "releases"-repository yes,  
because QA needs to be done first
- SNAPSHOTs are cleaned up automatically, so if QA doesn't accept a  
release, it's cleaned up for you.


The SNAPSHOT usage here is some kind of workaround if there would only be  
exactly 1 releases-repository. (assuming you're using a repository manager  
like Nexus, Artifactory or Archiva [1]).
However, nowadays repo manager have features to be able to cope with this  
kind of problems.
What you are looking for is "staging": a concept where you release your  
artifacts to the QA-repository. If they accept it, they push it to the  
next repository, ... until it is pushed to the company-repository, ready  
to be used by everyone.
If one of the testing departments doesn't accept a version, the stage is  
destroyed and the artifact won't be available anymore.
AFAIK all these repo managers support staging, however for some you have  
to pay. (Or there are ways to fake staging, i.e. downloading from one repo  
and uploading to the other...)


The QA should never accept that they test a SNAPSHOT. If they accept it,  
they should also test the released version, just because it is a new  
distribution.


Google a bit more for "artifact repository" + "staging", which is a proven  
concept which seems to match your requirements.


regards,
Robert

[1] http://maven.apache.org/repository-management.html


Op Fri, 28 Mar 2014 17:24:10 +0100 schreef ghostwolf59  
:



Fully agree but with a snapshot not should be treated an release.

The concept of "official snapshots" along with full site info and branch
tagging don't seem wrong where I come from.
If a project going through some stringent QA where formal test teams  
want to

keep track of what they testing against, then I think some kind of "mile
stone snapshot" have a place.

If on the other hand the only way these projects can keep track of these
"mile stones" releases, then it seem that the only option would be to
release something "official" - in effect clogging the "official" prod  
state

repo with non prod state content.

I think this bogs down to convenience - maven release process provide a  
few

steps that makes is fairly simple for developers to deal with and
distinguish between snapshot's and formal releases i.e non tagged release
without the -SNAPSHOT tag

I find it somewhat difficult to understand why earlier versions of the
maven-release-plugin allow for this when at the same time the same plugin
prevent final releases to refer to -snapshot's ?
Fair enough if a line has been drawn between snapshots and formal  
release,

but the convenience factor seem get lost in the discussion.

Exactly what is the rationale behind allowing a snapshot being released
without the site info and scm branches being created? - apart from this
being a quick release - it's not complete and auditing this release  
becomes

troublesome lacking scm branch and site info to audit.
These snapshots don;t even have to be committed back to your scm, so what
happens if test teams sign off on such milestone - at the time this is
committed back, the source may have changed.

Personally I think it would be better to release a "mile stone" snapshot
with full information (such as a scm branch and site info being generated
and deployed)

If snapshots (as a concept) is problematic then why not open up for a  
"mile

stone" snapshot concept ?
A "mile stone" released into the official releases repo is still not to  
be

treated as a release so no dependencies should be allowed to exists to
snapshot or "mile stone" ref's when you perform an official release.

Another point to make is that a snapshot repo can / and will be cleaned  
on
regular basis - after all a snapshot *or if "mile stone" snapshot is  
deemed

as short lived resources never meant for prod.

Have I got this concept completely wrong or do we need to introduce yet  
more

layers on what we have at our disposal ?

cheers





-
good @ being sucked @
--
View this message in context:  
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789928.html

Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread ghostwolf59
Fully agree but with a snapshot not should be treated an release.

The concept of "official snapshots" along with full site info and branch
tagging don't seem wrong where I come from.
If a project going through some stringent QA where formal test teams want to
keep track of what they testing against, then I think some kind of "mile
stone snapshot" have a place.

If on the other hand the only way these projects can keep track of these
"mile stones" releases, then it seem that the only option would be to
release something "official" - in effect clogging the "official" prod state
repo with non prod state content.

I think this bogs down to convenience - maven release process provide a few
steps that makes is fairly simple for developers to deal with and
distinguish between snapshot's and formal releases i.e non tagged release
without the -SNAPSHOT tag

I find it somewhat difficult to understand why earlier versions of the
maven-release-plugin allow for this when at the same time the same plugin
prevent final releases to refer to -snapshot's ?
Fair enough if a line has been drawn between snapshots and formal release,
but the convenience factor seem get lost in the discussion.

Exactly what is the rationale behind allowing a snapshot being released
without the site info and scm branches being created? - apart from this
being a quick release - it's not complete and auditing this release becomes
troublesome lacking scm branch and site info to audit.
These snapshots don;t even have to be committed back to your scm, so what
happens if test teams sign off on such milestone - at the time this is
committed back, the source may have changed.

Personally I think it would be better to release a "mile stone" snapshot
with full information (such as a scm branch and site info being generated
and deployed)

If snapshots (as a concept) is problematic then why not open up for a "mile
stone" snapshot concept ?
A "mile stone" released into the official releases repo is still not to be
treated as a release so no dependencies should be allowed to exists to
snapshot or "mile stone" ref's when you perform an official release.

Another point to make is that a snapshot repo can / and will be cleaned on
regular basis - after all a snapshot *or if "mile stone" snapshot is deemed
as short lived resources never meant for prod.

Have I got this concept completely wrong or do we need to introduce yet more
layers on what we have at our disposal ?

cheers





-
good @ being sucked @
--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789928.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread James Nord (jnord)
shouldn't release:branch still support this still though?

If not that's bad as you will end up with a release version on the head of 
either the source branch or the new branch (and both should be used for ongoing 
development so should be snapshots...)

/James

> -Original Message-
> From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
> Sent: 28 March 2014 13:32
> To: Maven Users List
> Subject: Re: maven release-plugin 2.5 bug - releasing snapshots...
> 
> Let me rephrase. The release plugin is designed to make release versions.
> It is not designed to make -SNAPSHOT versions. It was a bug that it let you
> specify a -SNAPSHOT version as the release version. The bug has been fixed.
> 
> 
> On 28 March 2014 13:18, ghostwolf59
> wrote:
> 
> > That's a way to general statement to be made  - that also is incorrect   !
> >
> > A snapshot is not allowed for final release - but could still be
> > released into a shapshot repo for test purposes !
> > The question really bogs down to how much control you'd like to have
> > against a release snapshot.
> > Anyone can in effect release a snapshot into the remote archiva
> > snapshot repo but no scm branch tag would take place and the source
> > this snapshot was based on would be unknown since uncommitted data
> > could have been used.
> >
> > If you go down the path of controlling this (in selected cases) you'd
> > like to have full control over the source it represent as well be able
> > to assess the site info linked to this release.
> >
> > A simple mvn deploy would not do these things - it would only promote
> > a local build into archiva's snapshot repository - with a lot of ???
> > to follow when it comes to QA, source control etc.
> >
> >
> > I am not trying to do a "*/release/*" as such - it's a legit release
> > of a
> > */snapshot/* to be used for test purposed in a highly controlled
> > manner pending official signoffs - once a signoff is received a proper
> > release for that version would be performed.
> >
> > The final release would never be allowed to be a snapshot - nor would
> > any snapshot dependencies be allowed but that's a side issue and have
> > absolutely nothing to do with what I am arguing about.
> >
> > The snapshot release would end up in a dedicated snapshot repository
> > so why you go down this path I don't really understand - bogs down to
> > how v2.2.2 vs higher versions of the release-plugin behaves.
> >
> > I have now done some tests going back in history and it shows that all
> > versions after *v.2.3.2* (my initial test was on v2.2.2) fails when it
> > comes to this...
> >
> > So it appear that v 2.4 onwards all fail when it comes to this
> >
> > Succeeds:
> > <
> > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> prompt-
> > v.2.3.2.jpg
> > >
> >
> > Failures;
> > <
> > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> prompt-
> > v.2.5-w.version.jpg
> > >
> >
> > <
> > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> prompt-
> > v.2.4.2.jpg
> > >
> >
> > <
> > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> prompt-
> > v.2.4.1.jpg
> > >
> >
> > <
> > http://maven.40175.n5.nabble.com/file/n5789892/release-version-
> prompt-
> > v.2.4.jpg
> > >
> >
> >
> >
> >
> >
> > -
> > good @ being sucked @
> > --
> > View this message in context:
> > http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-
> releasin
> > g-snapshots-tp5789837p5789892.html
> > Sent from the Maven - Users mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread ghostwolf59
Doing it as I explained did NOT allow you to do a release or refer to it
within other resources during a legic release phase

What you triggered was a release (as if legit) to go into the snapshot repo
- cant see any issues with that kind of behavior and have turned out to be
very useful when implementing formal test signoffs where exact version
tested against become critical (mind you these test phases is done before
even taken the app to UAT - technically still in a development phase).

Allowing these "formal" snapshots releases to be released into the snapshot
repo can hardly affect the normal behavior of releasing local builds
(without any constraint of the build was done against committed data - as
it's currently works) 

>From what I hear is that someone decided to plug this "feature" = personally
(and form an organizational point of view I think you removed useful
functionality)

Next question: if this now is a planned move - why not allow snapshots (that
maven does on local uncommitted data) to be processed as if it actually is
somewhat legit - without open up the possibility to use this as a prod state
resource in the dependency sections ?





-
good @ being sucked @
--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789916.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread Stephen Connolly
Let me rephrase. The release plugin is designed to make release versions.
It is not designed to make -SNAPSHOT versions. It was a bug that it let you
specify a -SNAPSHOT version as the release version. The bug has been fixed.


On 28 March 2014 13:18, ghostwolf59 wrote:

> That's a way to general statement to be made  - that also is incorrect   !
>
> A snapshot is not allowed for final release - but could still be released
> into a shapshot repo for test purposes !
> The question really bogs down to how much control you'd like to have
> against
> a release snapshot.
> Anyone can in effect release a snapshot into the remote archiva snapshot
> repo but no scm branch tag would take place and the source this snapshot
> was
> based on would be unknown since uncommitted data could have been used.
>
> If you go down the path of controlling this (in selected cases) you'd like
> to have full control over the source it represent as well be able to assess
> the site info linked to this release.
>
> A simple mvn deploy would not do these things - it would only promote a
> local build into archiva's snapshot repository - with a lot of ??? to
> follow
> when it comes to QA, source control etc.
>
>
> I am not trying to do a "*/release/*" as such - it's a legit release of a
> */snapshot/* to be used for test purposed in a highly controlled manner
> pending official signoffs - once a signoff is received a proper release for
> that version would be performed.
>
> The final release would never be allowed to be a snapshot - nor would any
> snapshot dependencies be allowed but that's a side issue and have
> absolutely
> nothing to do with what I am arguing about.
>
> The snapshot release would end up in a dedicated snapshot repository so why
> you go down this path I don't really understand - bogs down to how v2.2.2
> vs
> higher versions of the release-plugin behaves.
>
> I have now done some tests going back in history and it shows that all
> versions after *v.2.3.2* (my initial test was on v2.2.2) fails when it
> comes
> to this...
>
> So it appear that v 2.4 onwards all fail when it comes to this
>
> Succeeds:
> <
> http://maven.40175.n5.nabble.com/file/n5789892/release-version-prompt-v.2.3.2.jpg
> >
>
> Failures;
> <
> http://maven.40175.n5.nabble.com/file/n5789892/release-version-prompt-v.2.5-w.version.jpg
> >
>
> <
> http://maven.40175.n5.nabble.com/file/n5789892/release-version-prompt-v.2.4.2.jpg
> >
>
> <
> http://maven.40175.n5.nabble.com/file/n5789892/release-version-prompt-v.2.4.1.jpg
> >
>
> <
> http://maven.40175.n5.nabble.com/file/n5789892/release-version-prompt-v.2.4.jpg
> >
>
>
>
>
>
> -
> good @ being sucked @
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789892.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread ghostwolf59
That's a way to general statement to be made  - that also is incorrect   ! 

A snapshot is not allowed for final release - but could still be released
into a shapshot repo for test purposes !
The question really bogs down to how much control you'd like to have against
a release snapshot.
Anyone can in effect release a snapshot into the remote archiva snapshot
repo but no scm branch tag would take place and the source this snapshot was
based on would be unknown since uncommitted data could have been used.

If you go down the path of controlling this (in selected cases) you'd like
to have full control over the source it represent as well be able to assess
the site info linked to this release.

A simple mvn deploy would not do these things - it would only promote a
local build into archiva's snapshot repository - with a lot of ??? to follow
when it comes to QA, source control etc.


I am not trying to do a "*/release/*" as such - it's a legit release of a
*/snapshot/* to be used for test purposed in a highly controlled manner
pending official signoffs - once a signoff is received a proper release for
that version would be performed.

The final release would never be allowed to be a snapshot - nor would any
snapshot dependencies be allowed but that's a side issue and have absolutely
nothing to do with what I am arguing about.

The snapshot release would end up in a dedicated snapshot repository so why
you go down this path I don't really understand - bogs down to how v2.2.2 vs
higher versions of the release-plugin behaves.

I have now done some tests going back in history and it shows that all
versions after *v.2.3.2* (my initial test was on v2.2.2) fails when it comes
to this...

So it appear that v 2.4 onwards all fail when it comes to this 

Succeeds:
<http://maven.40175.n5.nabble.com/file/n5789892/release-version-prompt-v.2.3.2.jpg>
 

Failures;
<http://maven.40175.n5.nabble.com/file/n5789892/release-version-prompt-v.2.5-w.version.jpg>
 

<http://maven.40175.n5.nabble.com/file/n5789892/release-version-prompt-v.2.4.2.jpg>
 

<http://maven.40175.n5.nabble.com/file/n5789892/release-version-prompt-v.2.4.1.jpg>
 

<http://maven.40175.n5.nabble.com/file/n5789892/release-version-prompt-v.2.4.jpg>
 





-
good @ being sucked @
--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789892.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread Stephen Connolly
You do know you are not allowed to release a version containing a -SNAPSHOT
don't you?


On 28 March 2014 12:23, ghostwolf59 wrote:

> Sorry for that - I was just in the process of updating this a simple
> copy/paste mistake
>
> I am using 2.5 when the problem occur - as illustrated on the image below
>
> <
> http://maven.40175.n5.nabble.com/file/n5789868/release-version-prompt-v.2.5-w.version.jpg
> >
>
> As you can see the prompt "What is the release version for " ... keep
> coming
> back - v2.5 does not accept me overwriting this.
>
> Using v.2.2.2 allow me to overwrite this with anything that then takes me
> to
> the scm prompt and so on - which ultimately allow me to do what I really
> want.
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789868.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread ghostwolf59
Sorry for that - I was just in the process of updating this a simple
copy/paste mistake 

I am using 2.5 when the problem occur - as illustrated on the image below

<http://maven.40175.n5.nabble.com/file/n5789868/release-version-prompt-v.2.5-w.version.jpg>
 

As you can see the prompt "What is the release version for " ... keep coming
back - v2.5 does not accept me overwriting this.

Using v.2.2.2 allow me to overwrite this with anything that then takes me to
the scm prompt and so on - which ultimately allow me to do what I really
want.



--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789868.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread Stephen Connolly
On 28 March 2014 11:12, ghostwolf59 wrote:

> 2.2.2


Then you are not using version 2.5


Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread ghostwolf59
I don't think this issue have been rectified.

The maven release plugin I use (downloaded from maven central via my plugin)
is as follows...

This fail:


org.apache.maven.plugins
    maven-release-plugin
2.2.2

{my svn url and 
path}/${project.artifactId}/releases



This work:

org.apache.maven.plugins
    maven-release-plugin
2.2.2

{my svn url and 
path}/${project.artifactId}/releases




The clean - as I understand it - would ensure you always have a clean
workspace derived from the remote source at release time - removing the
chance that someone committed something between now and when I perform my
release - that makes perfect sense to me and is a good safeguard







--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837p5789843.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread Baptiste Mathus
Weird, many users reported the 2.5 had fixed their issues.

What (version) are you actually using for:
* maven
* maven-release-plugin (triple-check you hadn't redefined maven-scm-*
dependency somewhere)
* svn ? Git ? Something else ?

On a unrelated subject : issuing a "mvn clean install deploy" command shows
a tiny misunderstanding of how Maven works. You're asking maven to install
twice (said differently "deploy" already includes the steps from "install").

Cheers


2014-03-28 10:59 GMT+01:00 ghostwolf59 
:

> Hi,Occasionally we have a need to perform a formal release on unfinished
> work
> so it can be tracked.These snapshot releases would in effect be releases
> identical to a formal release with the exception that the snapshot for a
> set
> release is tagged with a time stamp when released into archiva's snapshot
> repository.We used to get around this by issuing the mvn clean
> release:prepare release:perform where we overwrite the proposed/suggested
> release at the prompt by qualifying the release number followed by
> appending
> "-SNAPSHOT"The build would be done identical to a formal release where the
> scm branch is created for the snapshot in  our svn source repo and the
> built
> snapshot would be released into our internal "snapshot" repo (oppose to
> formal non snapshot releases that ends up in the "releases" repo)This used
> to work really well but recently I don't seem to be able to overwrite the
> version at the prompt - when I do it simple prompts me again
> <
> http://maven.40175.n5.nabble.com/file/n5789837/release-version-prompt-v.2.5.jpg
> >
> It's a weird one - this have been proven to be working previously but
> suddenly it don't seem to work any more.The release plugin i currently use
> is v2.5 - in the past I used v 2.2.2 successfully.By reverting back to
> v2.2.2 of org.apache.maven.plugins.maven.release-plugin this work perfectly
> <
> http://maven.40175.n5.nabble.com/file/n5789837/release-version-prompt-v2.2.2.jpg
> >
> Is this a known issue and is it linked to v2.5 of the maven release plugin
> ?I can do snapshot releases using mvn clean install deploy but that would
> not branch tag the source and would not generate site infoBottom line -
> does
> anyone know how this can be done using the most recent
> maven-release-plugin?
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> --
> Baptiste  MATHUS - http://batmat.net
> Sauvez un arbre,
> Mangez un castor ! nbsp;!


maven release-plugin 2.5 bug - releasing snapshots...

2014-03-28 Thread ghostwolf59
Hi,Occasionally we have a need to perform a formal release on unfinished work
so it can be tracked.These snapshot releases would in effect be releases
identical to a formal release with the exception that the snapshot for a set
release is tagged with a time stamp when released into archiva's snapshot
repository.We used to get around this by issuing the mvn clean
release:prepare release:perform where we overwrite the proposed/suggested
release at the prompt by qualifying the release number followed by appending
"-SNAPSHOT"The build would be done identical to a formal release where the
scm branch is created for the snapshot in  our svn source repo and the built
snapshot would be released into our internal "snapshot" repo (oppose to 
formal non snapshot releases that ends up in the "releases" repo)This used
to work really well but recently I don't seem to be able to overwrite the
version at the prompt - when I do it simple prompts me again
<http://maven.40175.n5.nabble.com/file/n5789837/release-version-prompt-v.2.5.jpg>
It's a weird one - this have been proven to be working previously but
suddenly it don't seem to work any more.The release plugin i currently use
is v2.5 - in the past I used v 2.2.2 successfully.By reverting back to
v2.2.2 of org.apache.maven.plugins.maven.release-plugin this work perfectly
<http://maven.40175.n5.nabble.com/file/n5789837/release-version-prompt-v2.2.2.jpg>
Is this a known issue and is it linked to v2.5 of the maven release plugin
?I can do snapshot releases using mvn clean install deploy but that would
not branch tag the source and would not generate site infoBottom line - does
anyone know how this can be done using the most recent maven-release-plugin? 



--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-release-plugin-2-5-bug-releasing-snapshots-tp5789837.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Maven Release Plugin releases SNAPSHOT instead of STABLE version

2014-03-15 Thread Cemo
Hi,

We are suffering from SCM-740 [1]. Is there any chance to apply the
attached patch?

Thanks

[1]: http://jira.codehaus.org/browse/SCM-740


Re: Maven Release Plugin throws Authentication Required error

2014-03-06 Thread Baptiste Mathus
Hi,
First try do to that without using Jenkins at all. This is a pure maven
configuration thing. You just seem to be missing the  authentication part
(see username and password parameters maybe).

When you manage to release some dummy versions of your project, then and
only then try doing it from Jenkins or any other automated system.

Cheers
Le 6 mars 2014 15:14, "D Vijay"  a écrit :

> Dear All,
>
>
> I need help in configuring the Maven Release plugin. I am trying to
> configure the plugin in Jenkins job. I am getting authentication exception.
> For invoking maven release plugin do we need to have svn client from where
> we are invoking the release? PFA the errors & the configuration that I used
> for this.
>
> My requirement is to configure maven release plugin as follows:
>
> 1. My current version is at 1.0.0-SNAPSHOT and once testing is done and
> ready for movement to production the maven release plugin will be invoked
> from Jenkins job to move the code from branch to trunk.
> 2. The configuration has to check out the source from branch, update all
> the POMs to version 1.0.0, tag the source code and check in the code at
> trunk location. The tags folder will contain the tagged version at 1.0.0
> (as best practice we need to change the version from 1.0.0-SNAPSHOT to
> 1.0.0 once the product is ready for production, right? or while moving to
> UAT itself it should be done?).
> 3. Also, the next snapshot version will be updated to 1.0.1-SNAPSHOT(which
> is configurable in release plugin) and checked in at branch level for the
> next development.
>
> I am able to configure this, but somehow it is not working. I am getting
> authentication exception.
> svn: Authentication required for 
> '<https://server-mydomain.com:443<https://server-mydomain.com/>
> >'.
>
>
> Thank you,
>
> Vijay.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>


Problems with dependencyManagement in maven-release-plugin

2014-03-01 Thread Santiago Gala
Hi, we are in the following (simplified and inherited) situation:

* we use git (wth gerrit) as SCM and review system
* we have a parent project, (let's call it com.example:P) with dependency
management and all our internal and external dependencies there (except for
the partent itself)
* let's say we have a 'son' project com.example.test:A without other
dependencies

P version 1.0.0-SNAPSHOT POM specifies A version as ${project.version}, so
it moves in synchronicity with P

we want to use maven release plugin to prepare two local changes for its
release. I use shell to illustrate, but the process can equally be done by
hand

export VERSION=1.0.0
export NEW_VERSION=1.0.1-SNAPSHOT

# Release the parent with 1.0
mvn -B -Dmaven.repo.local=${LOCAL_REPO} release:clean release:prepare
-DreleaseVersion=${VERSION} -Dtag=P-${VERSION}
-DdevelopmentVersion=${NEW_VERSION} -DpushChanges=false
#... it works

Now, after I approve the changes in P, I got for A
# clone and cd to A working copy
mvn -B release:clean release:prepare -DreleaseVersion=${VERSION}
-Dtag=${project}-${VERSION} -DdevelopmentVersion=${NEW_VERSION}
-DpushChanges=false -Dproject.rel.com.example.test.P=${VERSION}
-Dproject.dev.com.example.test.P=${NEW_VERSION}
# it does not work

It refuses to release or to take those values from the parametes. I must do
the release without the -B, using "yes\n\n", "1.0.0", "1.0.1-SNAPSHOT",
"A-1.0.0\n"

In case there are other dependencies (say, B that depends on P and A), the
plugin will ask for the versions of A, and the will not use them. It looks
like a separate issue, which could be summarized as
* maven-release-plugin does not recompute effective POM after new parent
version is give.

The first one could be summarized ad:
* maven-release-plugin does not allow to script versions for the parent
element in the POM.

All tests done with maven 3.0.4 and maven release plugin 2.4.1 and 2.4.2,
just in case.

Any clue?

Regards
Santiago


Re: Unable to use the maven-release-plugin to release

2014-02-05 Thread Martijn Dashorst
To fix this I had to add



org.apache.maven.scm
maven-scm-provider-gitexe
1.9



to the plugin definition of the m-r-p (version 2.4.1).

Martijn



On Wed, Feb 5, 2014 at 5:44 PM, Martijn Dashorst  wrote:

> This is still an issue. Can someone please fix the maven-release-plugin to
> work with a decent version of git?
>
> Martijn
>
>
> On Sat, Dec 28, 2013 at 4:22 PM, Robert Scholte wrote:
>
>> Hi,
>>
>> it depends on the type of problem you're facing.
>>
>> as said before, these are probably the best options:
>>
>> - try maven-release-plugin 2.4
>> - use an older version of GIT with English locale.
>>
>> For details see https://jira.codehaus.org/browse/MRELEASE-812
>>
>> Robert
>>
>> Op Sat, 28 Dec 2013 15:34:26 +0100 schreef Julien Nicoulaud <
>> julien.nicoul...@gmail.com>:
>>
>>
>>  Hi,
>>>
>>> I tried the workaround (release plugin 2.4.2 + maven-scm-provider-gitexe
>>> 1.8.1) without success, still messing up releases with snapshot versions.
>>> I'm on git 1.8.5.2.
>>>
>>> Am I missing something else ?
>>> Here is my parent pom with the release profile I use if this can help:
>>> https://gitorious.org/net-ju-n-parent-pom/net-ju-n-parent-pom
>>>
>>> Cheers
>>>
>>>
>>> 2013/12/26 Mark Derricutt 
>>>
>>>  You're correct - 1.8.1 is not related to Git 1.8, however it is the
>>>> latest
>>>> release - and a fix that SUPPORTS Git 1.8 was actually released back in
>>>> something like scm-provider 1.5 earlier in the year - only the Maven
>>>> Release Plugin DOES NOT USE IT.
>>>>
>>>> We should really have a new release of m-r-p that forces the use of
>>>> current scm-providers cause I can see this problem only increasing as
>>>> more
>>>> people a) upgrade git or b) move to git and get pissed off with
>>>> maven+git
>>>>
>>>> This work around works, but really - goes against convention over
>>>> configuration.
>>>>
>>>>
>>>> On 27 Dec 2013, at 1:43, Robert Scholte wrote:
>>>>
>>>> > I don't think this will fix the issue.
>>>> >
>>>> > SCM 1.8.1[1] is not related to GIT 1.8.x
>>>> >
>>>> > It's a coincidence that the most recent version of SVN, GIT and SCM
>>>> are
>>>> all 1.8.x
>>>> >
>>>> > Robert
>>>>
>>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com


Re: Unable to use the maven-release-plugin to release

2014-02-05 Thread Martijn Dashorst
This is still an issue. Can someone please fix the maven-release-plugin to
work with a decent version of git?

Martijn


On Sat, Dec 28, 2013 at 4:22 PM, Robert Scholte wrote:

> Hi,
>
> it depends on the type of problem you're facing.
>
> as said before, these are probably the best options:
>
> - try maven-release-plugin 2.4
> - use an older version of GIT with English locale.
>
> For details see https://jira.codehaus.org/browse/MRELEASE-812
>
> Robert
>
> Op Sat, 28 Dec 2013 15:34:26 +0100 schreef Julien Nicoulaud <
> julien.nicoul...@gmail.com>:
>
>
>  Hi,
>>
>> I tried the workaround (release plugin 2.4.2 + maven-scm-provider-gitexe
>> 1.8.1) without success, still messing up releases with snapshot versions.
>> I'm on git 1.8.5.2.
>>
>> Am I missing something else ?
>> Here is my parent pom with the release profile I use if this can help:
>> https://gitorious.org/net-ju-n-parent-pom/net-ju-n-parent-pom
>>
>> Cheers
>>
>>
>> 2013/12/26 Mark Derricutt 
>>
>>  You're correct - 1.8.1 is not related to Git 1.8, however it is the
>>> latest
>>> release - and a fix that SUPPORTS Git 1.8 was actually released back in
>>> something like scm-provider 1.5 earlier in the year - only the Maven
>>> Release Plugin DOES NOT USE IT.
>>>
>>> We should really have a new release of m-r-p that forces the use of
>>> current scm-providers cause I can see this problem only increasing as
>>> more
>>> people a) upgrade git or b) move to git and get pissed off with maven+git
>>>
>>> This work around works, but really - goes against convention over
>>> configuration.
>>>
>>>
>>> On 27 Dec 2013, at 1:43, Robert Scholte wrote:
>>>
>>> > I don't think this will fix the issue.
>>> >
>>> > SCM 1.8.1[1] is not related to GIT 1.8.x
>>> >
>>> > It's a coincidence that the most recent version of SVN, GIT and SCM are
>>> all 1.8.x
>>> >
>>> > Robert
>>>
>>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com


Re: maven-release-plugin updates modules with wrong versioning

2014-02-03 Thread Stephen Connolly
nevermind... wrong question that this is the answer for


On 3 February 2014 15:57, Stephen Connolly
wrote:

> are you using git 1.8.5.x?
>
>
> On 3 February 2014 15:56, Simone Tripodi  wrote:
>
>> Hi all mates,
>>
>> in Apache Oltu we have a commons modules set[1] which I am trying to cut a
>> release, but I am experiencing for the first time a strange issue: when
>> installing all modules from /trunk, versions respect what it is specified
>> in project.version field in the POM, but when releasing them, all modules
>> inherit the version from the parent.
>>
>> Can I kindly ask you an extra pair of eyes that would help me detecting
>> why
>> this is happening?
>>
>> Many thanks in advance, all the best!
>> -Simo
>>
>> [1] https://svn.apache.org/repos/asf/oltu/trunk/commons/
>>
>> http://people.apache.org/~simonetripodi/
>> http://twitter.com/simonetripodi
>>
>
>


Re: maven-release-plugin updates modules with wrong versioning

2014-02-03 Thread Stephen Connolly
are you using git 1.8.5.x?


On 3 February 2014 15:56, Simone Tripodi  wrote:

> Hi all mates,
>
> in Apache Oltu we have a commons modules set[1] which I am trying to cut a
> release, but I am experiencing for the first time a strange issue: when
> installing all modules from /trunk, versions respect what it is specified
> in project.version field in the POM, but when releasing them, all modules
> inherit the version from the parent.
>
> Can I kindly ask you an extra pair of eyes that would help me detecting why
> this is happening?
>
> Many thanks in advance, all the best!
> -Simo
>
> [1] https://svn.apache.org/repos/asf/oltu/trunk/commons/
>
> http://people.apache.org/~simonetripodi/
> http://twitter.com/simonetripodi
>


maven-release-plugin updates modules with wrong versioning

2014-02-03 Thread Simone Tripodi
Hi all mates,

in Apache Oltu we have a commons modules set[1] which I am trying to cut a
release, but I am experiencing for the first time a strange issue: when
installing all modules from /trunk, versions respect what it is specified
in project.version field in the POM, but when releasing them, all modules
inherit the version from the parent.

Can I kindly ask you an extra pair of eyes that would help me detecting why
this is happening?

Many thanks in advance, all the best!
-Simo

[1] https://svn.apache.org/repos/asf/oltu/trunk/commons/

http://people.apache.org/~simonetripodi/
http://twitter.com/simonetripodi


Re: Unable to use the maven-release-plugin to release

2013-12-28 Thread Robert Scholte

Hi,

it depends on the type of problem you're facing.

as said before, these are probably the best options:
- try maven-release-plugin 2.4
- use an older version of GIT with English locale.

For details see https://jira.codehaus.org/browse/MRELEASE-812

Robert

Op Sat, 28 Dec 2013 15:34:26 +0100 schreef Julien Nicoulaud  
:



Hi,

I tried the workaround (release plugin 2.4.2 + maven-scm-provider-gitexe
1.8.1) without success, still messing up releases with snapshot versions.
I'm on git 1.8.5.2.

Am I missing something else ?
Here is my parent pom with the release profile I use if this can help:
https://gitorious.org/net-ju-n-parent-pom/net-ju-n-parent-pom

Cheers


2013/12/26 Mark Derricutt 

You're correct - 1.8.1 is not related to Git 1.8, however it is the  
latest

release - and a fix that SUPPORTS Git 1.8 was actually released back in
something like scm-provider 1.5 earlier in the year - only the Maven
Release Plugin DOES NOT USE IT.

We should really have a new release of m-r-p that forces the use of
current scm-providers cause I can see this problem only increasing as  
more
people a) upgrade git or b) move to git and get pissed off with  
maven+git


This work around works, but really - goes against convention over
configuration.


On 27 Dec 2013, at 1:43, Robert Scholte wrote:

> I don't think this will fix the issue.
>
> SCM 1.8.1[1] is not related to GIT 1.8.x
>
> It's a coincidence that the most recent version of SVN, GIT and SCM  
are

all 1.8.x
>
> Robert


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Unable to use the maven-release-plugin to release

2013-12-28 Thread Julien Nicoulaud
Hi,

I tried the workaround (release plugin 2.4.2 + maven-scm-provider-gitexe
1.8.1) without success, still messing up releases with snapshot versions.
I'm on git 1.8.5.2.

Am I missing something else ?
Here is my parent pom with the release profile I use if this can help:
https://gitorious.org/net-ju-n-parent-pom/net-ju-n-parent-pom

Cheers


2013/12/26 Mark Derricutt 

> You're correct - 1.8.1 is not related to Git 1.8, however it is the latest
> release - and a fix that SUPPORTS Git 1.8 was actually released back in
> something like scm-provider 1.5 earlier in the year - only the Maven
> Release Plugin DOES NOT USE IT.
>
> We should really have a new release of m-r-p that forces the use of
> current scm-providers cause I can see this problem only increasing as more
> people a) upgrade git or b) move to git and get pissed off with maven+git
>
> This work around works, but really - goes against convention over
> configuration.
>
>
> On 27 Dec 2013, at 1:43, Robert Scholte wrote:
>
> > I don't think this will fix the issue.
> >
> > SCM 1.8.1[1] is not related to GIT 1.8.x
> >
> > It's a coincidence that the most recent version of SVN, GIT and SCM are
> all 1.8.x
> >
> > Robert
>


Re: Unable to use the maven-release-plugin to release

2013-12-26 Thread Mark Derricutt
You're correct - 1.8.1 is not related to Git 1.8, however it is the latest 
release - and a fix that SUPPORTS Git 1.8 was actually released back in 
something like scm-provider 1.5 earlier in the year - only the Maven Release 
Plugin DOES NOT USE IT.

We should really have a new release of m-r-p that forces the use of current 
scm-providers cause I can see this problem only increasing as more people a) 
upgrade git or b) move to git and get pissed off with maven+git

This work around works, but really - goes against convention over configuration.


On 27 Dec 2013, at 1:43, Robert Scholte wrote:

> I don't think this will fix the issue.
>
> SCM 1.8.1[1] is not related to GIT 1.8.x
>
> It's a coincidence that the most recent version of SVN, GIT and SCM are all 
> 1.8.x
>
> Robert


signature.asc
Description: OpenPGP digital signature


Re: Unable to use the maven-release-plugin to release

2013-12-26 Thread Robert Scholte

I don't think this will fix the issue.

SCM 1.8.1[1] is not related to GIT 1.8.x

It's a coincidence that the most recent version of SVN, GIT and SCM are  
all 1.8.x


Robert

[1]  
https://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=10527&version=18930


Op Thu, 26 Dec 2013 10:59:42 +0100 schreef Mark Derricutt  
:



My guess is you've got a new/recent git?

If so, you'll need to add:


  
org.apache.maven.scm
maven-scm-provider-gitexe
1.8.1
  


so that you get the new version that actually picks up modified files (  
git 1.8.x finally drops the leading # from its output and broke the old  
scm provider.



On 26 Dec 2013, at 1:28, Martijn Dashorst wrote:


I have tried to revert to maven-release-plugin:2.3.2 (the 6.12.0
release was baked with this one), I have tried to apply apache-parent
pom v13, and both failed with the same result.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Unable to use the maven-release-plugin to release

2013-12-26 Thread Mark Derricutt
My guess is you've got a new/recent git?

If so, you'll need to add:


  
org.apache.maven.scm
maven-scm-provider-gitexe
1.8.1
  


so that you get the new version that actually picks up modified files ( git 
1.8.x finally drops the leading # from its output and broke the old scm 
provider.


On 26 Dec 2013, at 1:28, Martijn Dashorst wrote:

> I have tried to revert to maven-release-plugin:2.3.2 (the 6.12.0
> release was baked with this one), I have tried to apply apache-parent
> pom v13, and both failed with the same result.


signature.asc
Description: OpenPGP digital signature


RE: Unable to use the maven-release-plugin to release

2013-12-25 Thread Martin Gainty


  


> To: users@maven.apache.org
> Subject: Re: Unable to use the maven-release-plugin to release
> Date: Wed, 25 Dec 2013 13:46:43 +0100
> From: rfscho...@apache.org
> 
> Hi,
MG>Guten Tag
> 
> the problem you're facing has to do with the version of the git-client.
> They've changed the output, which is parsed to detect commit differences.
> We've tried to switch to the '--porcelain' option in m-release-p 2.4, but 
> that caused more problems. So that has been reverted in 2.4.1.
> 
> You have 2 options:
> - try maven-release-plugin 2.4
> - use an older version of GIT with English locale.
MG>Currently using GIT-1.8.5.2 ..which version GIT do you recommend?
MG>http://git-scm.com/download 
MG>Frohe Weihnachten
MG>Martin-

> For details see https://jira.codehaus.org/browse/MRELEASE-812
> 
> Robert
> 
> 
> Op Wed, 25 Dec 2013 13:28:26 +0100 schreef Martijn Dashorst 
> :
> 
> > I'm currently in week 4 of trying to release Apache Wicket and I am 
> > giving up.
> >
> > The release plugin fails to tag the updated release poms but instead
> > tags the SNAPSHOT version. Then the release plugin starts to release
> > the tag which unfortunately points to the SNAPSHOT version.
> >
> > My best guess is that Maven fails to commit the updated release poms
> > and continues to tag and release the 6.13.0-SNAPSHOT versions.
> >
> > I have upgraded to maven 3.1.1, the release plugin runs at 2.4.2 and
> > our specified configuration is:
> >
> > 
> > org.apache.maven.plugins
> > maven-release-plugin
> > 2.4.2
> > true
> > 
> > false
> > wicket-@{project.version}
> > false
> > 
> > 
> >
> > When merged with the Apache parent pom (v10), this results in:
> >
> > 
> > maven-release-plugin
> > 2.4.2
> > true
> > 
> > false
> > wicket-@{project.version}
> > false
> > false
> > deploy
> > -Papache-release
> > 
> > 
> >
> > A couple of observations: up til our 6.12.0 release, the process
> > worked without a glitch. Since then I got a new laptop and have
> > migrated all settings to my new box.
> >
> > I have tried to revert to maven-release-plugin:2.3.2 (the 6.12.0
> > release was baked with this one), I have tried to apply apache-parent
> > pom v13, and both failed with the same result.
> >
> > I am currently at a loss...
> >
> > Does anyone have a solution?
> >
> > Thanks,
> >
> > Martijn
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
  

Re: Unable to use the maven-release-plugin to release

2013-12-25 Thread Robert Scholte

Hi,

the problem you're facing has to do with the version of the git-client.
They've changed the output, which is parsed to detect commit differences.
We've tried to switch to the '--porcelain' option in m-release-p 2.4, but  
that caused more problems. So that has been reverted in 2.4.1.


You have 2 options:
- try maven-release-plugin 2.4
- use an older version of GIT with English locale.

For details see https://jira.codehaus.org/browse/MRELEASE-812

Robert


Op Wed, 25 Dec 2013 13:28:26 +0100 schreef Martijn Dashorst  
:


I'm currently in week 4 of trying to release Apache Wicket and I am  
giving up.


The release plugin fails to tag the updated release poms but instead
tags the SNAPSHOT version. Then the release plugin starts to release
the tag which unfortunately points to the SNAPSHOT version.

My best guess is that Maven fails to commit the updated release poms
and continues to tag and release the 6.13.0-SNAPSHOT versions.

I have upgraded to maven 3.1.1, the release plugin runs at 2.4.2 and
our specified configuration is:


    org.apache.maven.plugins
maven-release-plugin
2.4.2
true

false
wicket-@{project.version}
false



When merged with the Apache parent pom (v10), this results in:


maven-release-plugin
2.4.2
true

false
wicket-@{project.version}
false
false
deploy
-Papache-release



A couple of observations: up til our 6.12.0 release, the process
worked without a glitch. Since then I got a new laptop and have
migrated all settings to my new box.

I have tried to revert to maven-release-plugin:2.3.2 (the 6.12.0
release was baked with this one), I have tried to apply apache-parent
pom v13, and both failed with the same result.

I am currently at a loss...

Does anyone have a solution?

Thanks,

Martijn

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Unable to use the maven-release-plugin to release

2013-12-25 Thread Martijn Dashorst
I'm currently in week 4 of trying to release Apache Wicket and I am giving up.

The release plugin fails to tag the updated release poms but instead
tags the SNAPSHOT version. Then the release plugin starts to release
the tag which unfortunately points to the SNAPSHOT version.

My best guess is that Maven fails to commit the updated release poms
and continues to tag and release the 6.13.0-SNAPSHOT versions.

I have upgraded to maven 3.1.1, the release plugin runs at 2.4.2 and
our specified configuration is:


org.apache.maven.plugins
maven-release-plugin
2.4.2
true

false
wicket-@{project.version}
false



When merged with the Apache parent pom (v10), this results in:


maven-release-plugin
2.4.2
true

false
wicket-@{project.version}
false
false
deploy
-Papache-release



A couple of observations: up til our 6.12.0 release, the process
worked without a glitch. Since then I got a new laptop and have
migrated all settings to my new box.

I have tried to revert to maven-release-plugin:2.3.2 (the 6.12.0
release was baked with this one), I have tried to apply apache-parent
pom v13, and both failed with the same result.

I am currently at a loss...

Does anyone have a solution?

Thanks,

Martijn

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



  1   2   3   4   5   6   7   8   9   >