The SVN, nightly builds and biweekly betas
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
The SVN, nightly builds and biweekly betas
by Chris H. » 14 Aug 2011, 21:44
In message Re: Are Git & cardforge ready for a beta?
I think that I am ready to try a nightly build test using this Maven goal.
Would the URL for this (if it works) be
cardforge.org/releases/snapshots/forge/forge/1.1.2-SNAPSHOT
`jendave wrote:I added the ability to upload snapshot builds to ftp.cardforge.org.This will upload a 1.1.x-SNAPSHOT build to the ftp server. It does not tag the source nor iterate the version number so it is good for nightly builds. Take a look in ftp.cardforge.org/snapshots to see how it would look. I did a simple build (i.e. jars only as a test) and it was uploaded via Maven.
- Code: Select all
mvn clean install deploy -P windows-linux,osx
I think that I am ready to try a nightly build test using this Maven goal.
Would the URL for this (if it works) be
cardforge.org/releases/snapshots/forge/forge/1.1.2-SNAPSHOT
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: The SVN, nightly builds and biweekly betas
by jendave » 15 Aug 2011, 03:44
http://cardforge.org/releases/snapshots/forge/forge/1.1.2-SNAPSHOT/
If you are interested in uploading a snapshot version of the maven reporting site
If you are interested in uploading a snapshot version of the maven reporting site
- Code: Select all
mvn clean install site deploy site:deploy -P windows-linux,osx
Last edited by Chris H. on 15 Aug 2011, 12:52, edited 1 time in total.
Reason: Added tags
Reason: Added tags
Re: The SVN, nightly builds and biweekly betas
by Chris H. » 15 Aug 2011, 12:53
`jendave wrote:http://cardforge.org/releases/snapshots/forge/forge/1.1.2-SNAPSHOT/
If you are interested in uploading a snapshot version of the maven reporting site
- Code: Select all
mvn clean install site deploy site:deploy -P windows-linux,osx
I will try this out today. I expect that I will need to add in the username and the password at the end of this goal.
Thank you Dave.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: The SVN, nightly builds and biweekly betas
by Chris H. » 15 Aug 2011, 14:26
OK, tried it and got an error:
I am running Dave's Maven goal from above under the Snow Leopard OS.
I added the username and password data to the end of the goal.
Do I need to run a goal that will clean and revert the pom?
The contents from my console is below. It might provide additional info.
Oh, Rob, do you see any reports at the cardforge site?
`
- Code: Select all
[INFO] Generating "Developer Activity" report --- maven-changelog-plugin:2.2
[INFO] Generating changed sets xml to: /Users/ChrisH/Workspace_SVN/ForgeSVN/target/changelog.xml
[INFO] Executing: /bin/sh -c cd /Users/ChrisH/Workspace_SVN/ForgeSVN && svn --username releases@cardforge.org --password '*****' --non-interactive log -v -r '{2011-07-16 14:14:03 +0000}:{2011-08-16 14:14:03 +0000}' http://svn.slightlymagic.net/forge/trunk
[INFO] Working directory: /Users/ChrisH/Workspace_SVN/ForgeSVN
[ERROR] Java heap space -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
I am running Dave's Maven goal from above under the Snow Leopard OS.
I added the username and password data to the end of the goal.
Do I need to run a goal that will clean and revert the pom?
The contents from my console is below. It might provide additional info.
Oh, Rob, do you see any reports at the cardforge site?
`
- Attachments
-
- console log.zip
- (6.91 KiB) Downloaded 665 times
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: The SVN, nightly builds and biweekly betas
by jendave » 15 Aug 2011, 15:08
Therer appears to be a problem with the Coburtura report. I remove it for the time being. I'll look at it.
Re: The SVN, nightly builds and biweekly betas
by Chris H. » 15 Aug 2011, 16:23
`jendave wrote:Therer appears to be a problem with the Coburtura report. I remove it for the time being. I'll look at it.
Thank you Dave. I will try it again.
I will have to do a Maven clean first.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: The SVN, nightly builds and biweekly betas
by jendave » 15 Aug 2011, 16:34
For what it is worth, I was able to do a snapshot build and upload of the Maven site to cardforge.orgChris H. wrote:`jendave wrote:Therer appears to be a problem with the Coburtura report. I remove it for the time being. I'll look at it.
Thank you Dave. I will try it again.
I will have to do a Maven clean first.
Re: The SVN, nightly builds and biweekly betas
by Chris H. » 15 Aug 2011, 16:52
`jendave wrote:For what it is worth, I was able to do a snapshot build and upload of the Maven site to cardforge.org
Thank you for being patient as I try to work this out.
I did a clean and made sure that I was synced up to the latest rev. Retried the Maven build with the goal + username & password. Another java heap space error.
`
- Attachments
-
- console text num 2.zip
- (6.18 KiB) Downloaded 659 times
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: The SVN, nightly builds and biweekly betas
by jendave » 15 Aug 2011, 17:29
Hmm. The error is not very illuminating. For now, skip doing the site deploy. Worst case, I can do it for the release. I'll keep taking a look at the issue.Chris H. wrote:`jendave wrote:For what it is worth, I was able to do a snapshot build and upload of the Maven site to cardforge.org
Thank you for being patient as I try to work this out.
I did a clean and made sure that I was synced up to the latest rev. Retried the Maven build with the goal + username & password. Another java heap space error.
`
Re: The SVN, nightly builds and biweekly betas
by Chris H. » 15 Aug 2011, 18:06
`jendave wrote:Hmm. The error is not very illuminating. For now, skip doing the site deploy. Worst case, I can do it for the release. I'll keep taking a look at the issue.
I seem to remember that there is a way to increase the vm heap space used by Eclipse. This does not increase the heap for the java apps that we run from within Eclipse, it just gives more heap space to Eclipse itself. Not sure if this would help or not.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: The SVN, nightly builds and biweekly betas
by jendave » 15 Aug 2011, 19:35
If you run Maven from the command line, you should put this in your ~/.bash_profileChris H. wrote:`jendave wrote:Hmm. The error is not very illuminating. For now, skip doing the site deploy. Worst case, I can do it for the release. I'll keep taking a look at the issue.
I seem to remember that there is a way to increase the vm heap space used by Eclipse. This does not increase the heap for the java apps that we run from within Eclipse, it just gives more heap space to Eclipse itself. Not sure if this would help or not.
- Code: Select all
export MAVEN_OPTS=-Xmx1024m
Re: The SVN, nightly builds and biweekly betas
by Chris H. » 15 Aug 2011, 19:47
`jendave wrote:If you run Maven from the command line, you should put this in your ~/.bash_profileChris H. wrote:`jendave wrote:Hmm. The error is not very illuminating. For now, skip doing the site deploy. Worst case, I can do it for the release. I'll keep taking a look at the issue.
I seem to remember that there is a way to increase the vm heap space used by Eclipse. This does not increase the heap for the java apps that we run from within Eclipse, it just gives more heap space to Eclipse itself. Not sure if this would help or not.
- Code: Select all
export MAVEN_OPTS=-Xmx1024m
I am not quiet the command line pro, more of a point and click kinda of guy.
I am attempting to do this through Eclipse. I right clicked on the Eclipse.app icon and choose Show Package Contents. I was able to find the eclipse ini file and I increased "-Xmx512m" to "-Xmx1024m" and tried again. Same result, java heap space error.
I guess that I should reboot back into Snow Leopard and modify a copy of the old Forge.command file. Adding in your idea might make a difference. Worth a shot I guess.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: The SVN, nightly builds and biweekly betas
by jendave » 15 Aug 2011, 20:26
you may want to create new Run target in Eclipse. I included a couple of screenshots. Look at the maven-build-eclipse2.png and maven-build-eclipse3.png where the environment variable is set to 1024 for the java heap sizeChris H. wrote:I am not quiet the command line pro, more of a point and click kinda of guy.
I am attempting to do this through Eclipse. I right clicked on the Eclipse.app icon and choose Show Package Contents. I was able to find the eclipse ini file and I increased "-Xmx512m" to "-Xmx1024m" and tried again. Same result, java heap space error.
I guess that I should reboot back into Snow Leopard and modify a copy of the old Forge.command file. Adding in your idea might make a difference. Worth a shot I guess.
Last edited by jendave on 15 Aug 2011, 20:46, edited 1 time in total.
Re: The SVN, nightly builds and biweekly betas
by Chris H. » 15 Aug 2011, 20:31
It looks like I am getting somewhat closer. I looked inside of my home folder and found a file named .bash_history but no file named .bash_profile. I found an archived bash_profile file from an earlier CCGH conversation. I added your material to the file and placed it inside of my home folder.
the contents of Macintosh HD/Users/chrish/.bash_profile is:
The above may need some editing, not sure.
I have a command file that I can launch from the Finder. It's contents:
And here is the log from the Terminal:
the contents of Macintosh HD/Users/chrish/.bash_profile is:
- Code: Select all
export M2_HOME=/usr/local/apache-maven/apache-maven-3.0.3
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
export JAVA_HOME=/System/Library/Frameworks/JavaVM.Framework/Versions/1.6.0/Home
export MAVEN_OPTS=-Xmx1024m
The above may need some editing, not sure.
I have a command file that I can launch from the Finder. It's contents:
- Code: Select all
#!/bin/sh
cd /Users/chrish/Workspace_SVN/ForgeSVN/
mvn clean install site deploy site:deploy -P windows-linux,osx -Dusername=releases@cardforge.org -Dpassword=TheOfficialPassword
And here is the log from the Terminal:
- Attachments
-
- Terminal log.zip
- (30.5 KiB) Downloaded 649 times
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: The SVN, nightly builds and biweekly betas
by jendave » 15 Aug 2011, 20:51
I was able to replicate the problem from Eclipse. When I created a new Maven Run config and set the JRE and Env Variables per the screenshots above, I got the build to work.
From your log file you are getting an error when passing the password. Try adding this to your ~/.m2/settings.xml file
From your log file you are getting an error when passing the password. Try adding this to your ~/.m2/settings.xml file
- Code: Select all
<server>
<id>cardforge-snapshot-repo</id>
<username>releases@cardforge.org</username>
<password>thepassword</password>
</server>
- Code: Select all
<servers></servers>
Who is online
Users browsing this forum: No registered users and 102 guests