Hello,
do you think it's a bug in the maven plugin or did I did something wrong? I
tested it on other projects and it's always the same. At the end it tries to
use the URL git://localhost/~devent with is missing the part of the repository.
It should be git://localhost/~devent/rssconjava.git
For now I'm using my own script to tag and deploy the project.
Erwin.
----- "Erwin Mueller" <[email protected]> wrote:
> Hi,
>
> I tried with
>
> <activeProfiles>
> <activeProfile>repository-root-urls-local</activeProfile>
> <activeProfile>repository-proxy-local</activeProfile>
> </activeProfiles>
>
> and it works ony partial. Why is the release plugin only using git
> push *git://localhost/~devent* rssconjava-parent-2.2? Where is the
> rest of the URL? In the previous invocation it is using the full URL
> git://localhost/~devent/rssconjava.git
> Here is the log:
>
> [INFO] Checking in modified POMs...
> [INFO] Executing: /bin/sh -c cd
> /mnt/read/projects/com.globalscalingsoftware/rsscon/rssconjava/rssconjava-parent
> && git add -- pom.xml
> /mnt/read/projects/com.globalscalingsoftware/rsscon/rssconjava/rssconjava-api/pom.xml
> /mnt/read/projects/com.globalscalingsoftware/rsscon/rssconjava/rssconjava-native/pom.xml
> [INFO] Working directory:
> /mnt/read/projects/com.globalscalingsoftware/rsscon/rssconjava/rssconjava-parent
> [INFO] Executing: /bin/sh -c cd
> /mnt/read/projects/com.globalscalingsoftware/rsscon/rssconjava/rssconjava-parent
> && git status
> [INFO] Working directory:
> /mnt/read/projects/com.globalscalingsoftware/rsscon/rssconjava/rssconjava-parent
> [INFO] Executing: /bin/sh -c cd
> /mnt/read/projects/com.globalscalingsoftware/rsscon/rssconjava/rssconjava-parent
> && git commit --verbose -F /tmp/maven-scm-119610202.commit pom.xml
> /mnt/read/projects/com.globalscalingsoftware/rsscon/rssconjava/rssconjava-api/pom.xml
> /mnt/read/projects/com.globalscalingsoftware/rsscon/rssconjava/rssconjava-native/pom.xml
> [INFO] Working directory:
> /mnt/read/projects/com.globalscalingsoftware/rsscon/rssconjava/rssconjava-parent
> [INFO] Executing: /bin/sh -c cd
> /mnt/read/projects/com.globalscalingsoftware/rsscon/rssconjava/rssconjava-parent
> && git symbolic-ref HEAD
> [INFO] Working directory:
> /mnt/read/projects/com.globalscalingsoftware/rsscon/rssconjava/rssconjava-parent
> [INFO] Executing: /bin/sh -c cd
> /mnt/read/projects/com.globalscalingsoftware/rsscon/rssconjava/rssconjava-parent
> && git push git://localhost/~devent/rssconjava.git master:master
> [INFO] Working directory:
> /mnt/read/projects/com.globalscalingsoftware/rsscon/rssconjava/rssconjava-parent
> [INFO] Tagging release with the label rssconjava-parent-2.2...
> [INFO] Executing: /bin/sh -c cd
> /mnt/read/projects/com.globalscalingsoftware/rsscon/rssconjava && git
> tag -F /tmp/maven-scm-729109272.commit rssconjava-parent-2.2
> [INFO] Working directory:
> /mnt/read/projects/com.globalscalingsoftware/rsscon/rssconjava
> [INFO] Executing: /bin/sh -c cd
> /mnt/read/projects/com.globalscalingsoftware/rsscon/rssconjava && *git
> push git://localhost/~devent rssconjava-parent-2.2*
> [INFO] Working directory:
> /mnt/read/projects/com.globalscalingsoftware/rsscon/rssconjava
> ...
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-release-plugin:2.0:prepare
> (default-cli) on project rssconjava-parent: Unable to tag SCM
> [ERROR] Provider message:
> [ERROR] The git-push command failed.
> [ERROR] Command output:
> [ERROR] fatal: The remote end hung up unexpectedly
> [ERROR] -> [Help 1]
>
> In the release.properties file it have the full URL:
>
> #release configuration
> #Fri Aug 05 20:39:50 PHT 2011
> project.dev.com.globalscalingsoftware.rsscon\:rssconjava-native=2.3-SNAPSHOT
> scm.commentPrefix=[maven-release-plugin]
> project.scm.com.globalscalingsoftware.rsscon\:rssconjava-parent.tag=HEAD
> project.dev.com.globalscalingsoftware.rsscon\:rssconjava-api=2.3-SNAPSHOT
> scm.tag=rssconjava-parent-2.2
> project.rel.com.globalscalingsoftware.rsscon\:rssconjava-api=2.2
> remoteTagging=true
> exec.additionalArguments=-Dmaven.test.skip\=true -P
> repository-root-urls-local,repository-proxy-local
> project.scm.com.globalscalingsoftware.rsscon\:rssconjava-parent.url=scm\:git\:git\://localhost/~devent/rssconjava.git
> project.scm.com.globalscalingsoftware.rsscon\:rssconjava-native.empty=true
> scm.url=scm\:git\:git\://localhost/~devent/rssconjava.git
> project.scm.com.globalscalingsoftware.rsscon\:rssconjava-parent.connection=scm\:git\:git\://localhost/~devent/rssconjava.git
> project.scm.com.globalscalingsoftware.rsscon\:rssconjava-api.empty=true
> preparationGoals=clean verify
> project.rel.com.globalscalingsoftware.rsscon\:rssconjava-parent=2.2
> project.scm.com.globalscalingsoftware.rsscon\:rssconjava-parent.developerConnection=scm\:git\:git\://localhost/~devent/rssconjava.git
> project.dev.com.globalscalingsoftware.rsscon\:rssconjava-parent=2.3-SNAPSHOT
> project.rel.com.globalscalingsoftware.rsscon\:rssconjava-native=2.2
> completedPhase=scm-commit-release
>
> Kind regards, Erwin.
>
>
> ----- "Ansgar Konermann" <[email protected]> wrote:
>
> > Am 05.08.2011 03:05, schrieb Erwin Mueller:
> > > Hi,
> > >
> > > Maybe I need to activate the profile from the command line?
> >
> > Either that or use <activeProfiles> in your settings.xml instead of
> > activeByDefault. The latter is is *only* relevant if no other
> > profiles
> > are activated (as the release plugin does). This is documented
> > behaviour
> > according to [1].
> >
> > Best regards,
> >
> > Ansgar
> >
> > [1]
> >
> http://maven.apache.org/guides/introduction/introduction-to-profiles.html
> >
> > >
> > > ----- "Stephen Connolly" <[email protected]> wrote:
> > >
> > >> release activates some profiles which will result in the active
> by
> > >> default
> > >> profiles no longer being so
> > >>
> > >> - Stephen
> > >>
> > >> ---
> > >> Sent from my Android phone, so random spelling mistakes, random
> > >> nonsense
> > >> words and other nonsense are a direct result of using swype to
> type
> > on
> > >> the
> > >> screen
> > >> On 4 Aug 2011 03:10, <[email protected]> wrote:
> > >>> Hallo,
> > >>>
> > >>> I have an error in maven release plugin (mvn release:prepare):
> > >>>
> > >>> [ERROR] The git-push command failed.
> > >>> [ERROR] Command output:
> > >>> [ERROR] fatal: The remote end hung up unexpectedly
> > >>>
> > >>> But I'm sure that the remote repository works just fine. Is
> there
> > >> difficulties with the git protocol? I post my settings.xml and
> > >> pom.xml:
> > >>> @----------------- settings.xml
> > >>> <settings>
> > >>>
> > >>> <profiles>
> > >>> <profile>
> > >>> <id>Repository Root Locations Local</id>
> > >>> <activation>
> > >>> <activeByDefault>true</activeByDefault>
> > >>> </activation>
> > >>> <properties>
> > >>> <archiva.repository.root>http://localhost:8080/archiva
> > >> </archiva.repository.root>
> > >>>
> > <git.repository.root>git://localhost/~devent</git.repository.root>
> > >>> </properties>
> > >>> </profile>
> > >>> ...
> > >>> -----------------@
> > >>>
> > >>> @----------------- pom.xml
> > >>> <scm>
> > >>> <connection>scm:git:${git.repository.root}/xmlstorage.git
> > >> </connection>
> > >>>
> > <developerConnection>scm:git:${git.repository.root}/xmlstorage.git
> > >> </developerConnection>
> > >>> <url>scm:git:scm:git:${git.repository.root}/xmlstorage.git
> </url>
> > >>> </scm>
> > >>>
> > >>> <distributionManagement>
> > >>> <repository>
> > >>> <id>globalscaling.com-public</id>
> > >>>
> > >>
> >
> <url>${archiva.repository.root}/repository/globalscaling.com-public/</url>
> > >>> </repository>
> > >>> <snapshotRepository>
> > >>> <id>globalscaling.com-public-snapshots</id>
> > >>>
> > >>
> >
> <url>${archiva.repository.root}/repository/globalscaling.com-public-snapshots/</url>
> > >>> </snapshotRepository>
> > >>> </distributionManagement>
> > >>> -----------------@
> > >>>
> > >>> I have them in properties because I like to change them without
> > to
> > >> touch
> > >> the pom.xml. Sometimes I work at home, there I have a good
> > internet
> > >> connection, but sometimes I work with my laptop with no/bad
> > >> connection. So I
> > >> setup a git repository and Archiva on localhost.
> > >>> git pull and git push works, and mvn deploy works, too. mvn scm
> > >> update
> > >> works, too. So I don't understand, if I use the ssh protocol in
> > the
> > >> URLs,
> > >> mvn release works just fine. Is it an issue with the git
> protocol?
> > >>> Kind regards, Erwin.
> > >>>
> > >>> --
--
Erwin Mueller, [email protected]
http://www.global-scaling-institute.de/
http://www.deventm.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]