It's all about the answers!

Ask a question

Maven buiild using Build Forge


kalai arasi (212824) | asked Dec 01 '11, 3:30 a.m.
How to do,Maven build using Build Forge.

Plz provide steps for this.

Accepted answer


permanent link
Sean G Wilbur (87222421) | answered Apr 11 '13, 1:23 a.m.
JAZZ DEVELOPER
 This should be no different than your maven builds today, depending on your SCM provider you could do this in two steps.

Some environment data:
USER=user
PASSWORD=secret$
JAZZ_REPO=https://example.com/ccm
WORKSPACE_NAME=ProjectX Workspace

1.
scm login -c -n rw -r ${JAZZ_REPO} -u ${USER} -P ${PASSWORD}
scm load -r rw "${WORKSPACE_NAME}"

2.
cd <project_dir>
mvn clean install ...

3
... do anything else you need to do


  -Sean

Ralph Schoon selected this answer as the correct answer

Comments
Spencer Murata commented Apr 11 '13, 11:17 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

Step one should be split up in different steps, but the overall approach is the right one. There would be no change between this and doing it from the command line.  Just replicate whatever your build scripts do now in BF.

2 other answers



permanent link
Josh Crawford (984615) | answered Apr 11 '13, 2:18 p.m.
There is a developer works article on this as well.

https://www.ibm.com/developerworks/mydeveloperworks/blogs/32f9d388-7f35-4598-a08a-7cd6c0bd3841/entry/a_jazz_based_maven_build_with_ibm_rational_team_concert_v4_using_jazz_hub27?lang=en

permanent link
Bruce Albrecht (6624) | answered Apr 11 '13, 6:39 p.m.
We run mvn deploy to upload artifacts to a remote repository, so we have logic to check for snapshots, and always run mvn deploy when it's a snapshot version, and to use mvn dependency:copy when it's a release version and the release version has already been uploaded to the repository.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.