mvn clean test scm:commit -Dmessage=I am great
On 15 February 2013 12:51, Alberto Ivo alberto...@gmail.com wrote:
Hello,
Nowadays When I change the code, I manually run the unit test (suite) and
then commit using Eclipse IDE.
But I would like to do it via Maven. The code can be committed
I'm sorry.. I'm noob.. I didn't get it.
Is there a way to do it inside the pom.xml?
Ivo
On Fri, Feb 15, 2013 at 11:15 AM, Stephen Connolly
stephen.alan.conno...@gmail.com wrote:
mvn clean test scm:commit -Dmessage=I am great
On 15 February 2013 12:51, Alberto Ivo alberto...@gmail.com
Just bind the maven-scm-plugin with that goalconf (which actually seems to
be checkin instead of commit) onto the right phase (here it may be test).
Look at the Maven lifecycle to understand what a phase is
http://maven.apache.org/scm/maven-scm-plugin/checkin-mojo.html#message(search
for default
OT. this blind man on a galloping horse cannot tell the exact scm goal
names ;-)
On 15 February 2013 15:41, Baptiste MATHUS m...@batmat.net wrote:
Just bind the maven-scm-plugin with that goalconf (which actually seems to
be checkin instead of commit) onto the right phase (here it may be
-Original Message-
From: Alberto Ivo [mailto:alberto...@gmail.com]
Sent: Friday, February 15, 2013 4:52 AM
To: Maven Users List
Subject: Run unit tests before commiting
Hello,
Nowadays When I change the code, I manually run the unit test (suite) and
then commit using Eclipse
True.
The hard part, you did, Luke ;-)
2013/2/15 Stephen Connolly stephen.alan.conno...@gmail.com
OT. this blind man on a galloping horse cannot tell the exact scm goal
names ;-)
On 15 February 2013 15:41, Baptiste MATHUS m...@batmat.net wrote:
Just bind the maven-scm-plugin with that
Thanks, everyone!
Ivo
On Fri, Feb 15, 2013 at 2:10 PM, Baptiste MATHUS m...@batmat.net wrote:
True.
The hard part, you did, Luke ;-)
2013/2/15 Stephen Connolly stephen.alan.conno...@gmail.com
OT. this blind man on a galloping horse cannot tell the exact scm goal
names ;-)
On 15
Alberto,
you could bind to the phase verify as well, which will package your
artifacts and runs integration-tests (e.g. started with the
failsafe-plugin) additionally.
Regards Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/