It is currently 16 Apr 2024, 17:47
   
Text Size

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

Postby Chris H. » 14 Aug 2011, 21:44

In message Re: Are Git & cardforge ready for a beta?

jendave wrote:I added the ability to upload snapshot builds to ftp.cardforge.org.

Code: Select all
mvn clean install deploy -P windows-linux,osx
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.
`
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

:?:
User avatar
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

Postby 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
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
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: The SVN, nightly builds and biweekly betas

Postby 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. :)
User avatar
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

Postby Chris H. » 15 Aug 2011, 14:26

OK, tried it and got an error:

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 658 times
User avatar
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

Postby 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.
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: The SVN, nightly builds and biweekly betas

Postby 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.
User avatar
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

Postby jendave » 15 Aug 2011, 16:34

Chris 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.
For what it is worth, I was able to do a snapshot build and upload of the Maven site to cardforge.org
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: The SVN, nightly builds and biweekly betas

Postby 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 647 times
User avatar
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

Postby jendave » 15 Aug 2011, 17:29

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.

`
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.
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: The SVN, nightly builds and biweekly betas

Postby 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.
User avatar
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

Postby jendave » 15 Aug 2011, 19:35

Chris 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.
If you run Maven from the command line, you should put this in your ~/.bash_profile

Code: Select all
export MAVEN_OPTS=-Xmx1024m
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: The SVN, nightly builds and biweekly betas

Postby Chris H. » 15 Aug 2011, 19:47

jendave wrote:
Chris 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.
If you run Maven from the command line, you should put this in your ~/.bash_profile

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.
User avatar
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

Postby jendave » 15 Aug 2011, 20:26

Chris 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.
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 size
Attachments
maven-build-eclipse3.png
maven-build-eclipse2.png
maven-build-eclipse1.png
Last edited by jendave on 15 Aug 2011, 20:46, edited 1 time in total.
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: The SVN, nightly builds and biweekly betas

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

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 640 times
User avatar
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

Postby 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
Code: Select all
        <server>
            <id>cardforge-snapshot-repo</id>
            <username>releases@cardforge.org</username>
            <password>thepassword</password>
        </server>
That would go between
Code: Select all
<servers></servers>
tag
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Next

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 52 guests


Who is online

In total there are 52 users online :: 0 registered, 0 hidden and 52 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 52 guests

Login Form