Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Maven buiild using Build Forge

How to do,Maven build using Build Forge.

Plz provide steps for this.

0 votes


Accepted answer

Permanent link
 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

1 vote

Comments

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
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

0 votes


Permanent link
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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Dec 01 '11, 3:30 a.m.

Question was seen: 7,157 times

Last updated: Apr 11 '13, 6:39 p.m.

Confirmation Cancel Confirm