maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erwin Mueller <erwin.muel...@deventm.org>
Subject Re: mvn release is failing with git
Date Fri, 05 Aug 2011 01:05:58 GMT
Hi,

    you are saying because of mvn release plugin I can't use any of my own profiles in settings.xml?
That sounds to me like a bug, why would you ever want that? Do you have a workaround for it?
Maybe I need to activate the profile from the command line?


----- "Stephen Connolly" <stephen.alan.connolly@gmail.com> 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, <erwin.mueller@deventm.org> 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, erwin.mueller@deventm.org
> > http://www.global-scaling-institute.de/
> > http://www.deventm.org
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >

-- 
Erwin Mueller, erwin.mueller@deventm.org
http://www.global-scaling-institute.de/
http://www.deventm.org

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


Mime
View raw message