It is currently 12 Nov 2025, 23:02
   
Text Size

The SVN, nightly builds and biweekly betas

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins

Re: The SVN, nightly builds and biweekly betas

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

jendave wrote: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
`
Ugh, my settings file has

Code: Select all
        <server>
            <id>forge-ftp-repository</id>
            <username>releases@cardforge.org</username>
`
So, let me try this again.
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, 21:17

Chris H. wrote:Ugh, my settings file has

Code: Select all
        <server>
            <id>forge-ftp-repository</id>
            <username>releases@cardforge.org</username>
`
So, let me try this again.
You should have a section like

Code: Select all
<servers>
        <server>
            <id>cardforge-snapshot-repo</id>
            <username>releases@cardforge.org</username>
            <password>thepassword</password>
        </server>
</servers>
You may end up with multiple <server> entries over time...
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, 21:26

Thank you Dave, the line with the

Code: Select all
forge-ftp-repository
`
was the problem. I corrected that line and the other two lines are correct. I am in the process of running my next test.
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, 21:33

Chris H. wrote:Thank you Dave, the line with the

Code: Select all
forge-ftp-repository
`
was the problem. I corrected that line and the other two lines are correct. I am in the process of running my next test.
Cool. I also changed the name of the release repo. It is now -

Code: Select all
        <server>
            <id>cardforge-repo</id>
            <username>releases@cardforge.org</username>
            <password>thePassword</password>
        </server>
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, 22:22

I tried another test using the run config in Eclipse and got a Maven java heap space error. I guess that I can try to figure out a little later.

With the settings file mod I decided to re-try the command file approach one more time. This time I get a

Code: Select all
Error uploading site: Password not specified for repository cardforge-site
`
Attachments
Term log 2.txt.zip
(29.68 KiB) Downloaded 502 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, 22:39

Chris H. wrote:I tried another test using the run config in Eclipse and got a Maven java heap space error. I guess that I can try to figure out a little later.

With the settings file mod I decided to re-try the command file approach one more time. This time I get a

Code: Select all
Error uploading site: Password not specified for repository cardforge-site
`
To setting.xml add
Code: Select all
        <server>
            <id>cardforge-site</id>
            <username>releases@cardforge.org</username>
            <password>thePassword</password>
        </server>
In your settings file, you should have username/password entries for:
cardforge-site
cardforge-snapshot-repo
cardforge-repo

That will cover everything.
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, 22:57

jendave wrote:To setting.xml add
Code: Select all
        <server>
            <id>cardforge-site</id>
            <username>releases@cardforge.org</username>
            <password>thePassword</password>
        </server>
In your settings file, you should have username/password entries for:
cardforge-site
cardforge-snapshot-repo
cardforge-repo

That will cover everything.
Oh, I think that I understand now.

I will make sure that the setting file has 3 copies with each one having a different id.
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. » 16 Aug 2011, 12:36

Dave, I sent you a pm with my goal, settings file and the console log with the latest error. I suspect that my settings file might be the problem and I want you to take a quick look at it to see if you find anything wrong with it.
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 » 16 Aug 2011, 15:02

Chris H. wrote:Dave, I sent you a pm with my goal, settings file and the console log with the latest error. I suspect that my settings file might be the problem and I want you to take a quick look at it to see if you find anything wrong with it.
Thanks. Strange error. I sent a PM back.
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. » 16 Aug 2011, 16:16

I right clicked on the pom.xml file and tried a Team -> Update to Head and ran the Maven goal ... got that same strange error:

Code: Select all
Could not transfer artifact forge:forge:jar:1.1.2-20110816.000412-1 from/to cardforge-snapshot-repo (ftp.cardforge.org/snapshots): Required directory: 'napshots' is missing -> [Help 1]
`
If the problem is not in the settings file then where else could the path be broken? I am not sure what I should check for next.
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. » 16 Aug 2011, 16:20

One more thing to try.

Right click on the project and select Maven -> Update Depedancies... -> and check the box which states Force Update of Snapshots/Releases.

I feel like I am grasping at straws. :)
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 » 16 Aug 2011, 17:27

Chris H. wrote:One more thing to try.

Right click on the project and select Maven -> Update Depedancies... -> and check the box which states Force Update of Snapshots/Releases.

I feel like I am grasping at straws. :)
I know that you tend not to use the command line much, but if you could give it a try and see what happens. This would rule out if it is a Maven problem or an Eclipse/Maven problem. That would be a big help.

Also, check your pom.xml file and make sure it is the latest and without edits.

What is the command you are executing from Eclipse?

Dave
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 Huggybaby » 16 Aug 2011, 19:04

Looks like a typo:
Required directory: 'napshots' is missing ->
Shouldn't that be "snapshots"?
User avatar
Huggybaby
Administrator
 
Posts: 3230
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 756 times
Been thanked: 601 times

Re: The SVN, nightly builds and biweekly betas

Postby jendave » 16 Aug 2011, 19:07

Huggybaby wrote:Looks like a typo:
Required directory: 'napshots' is missing ->
Shouldn't that be "snapshots"?
Yes. What we are trying to figure out is where is the typo?
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. » 16 Aug 2011, 19:09

Hmmm, The Maven goal when used in Eclipse gives me that strange missing dir error.

So, like Dave suggested, I entered the same exact Maven goal as part of a shell script and it looks like it is now sending data to cardforge. The last portion of the text displayed in the terminal log:

Code: Select all
Reply received: 227 Entering Passive Mode (74,55,207,114,103,126)

Command sent: STOR team-list.html

Reply received: 150 Accepted data connection

Reply received: 226-File successfully transferred
226 0.251 seconds (measured here), 28.45 Kbytes per second

completed = /Users/chrish/Workspace_SVN/ForgeSVN/target/site/team-list.html
Command sent: CDUP

Reply received: 250 OK. Current directory is /

completed = /Users/chrish/Workspace_SVN/ForgeSVN/target/site
ftp.cardforge.org/site/ - Session: Disconnecting 
ftp.cardforge.org/site/ - Session: Disconnected
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27:42.889s
[INFO] Finished at: Tue Aug 16 15:03:10 EDT 2011
[INFO] Final Memory: 58M/344M
[INFO] ------------------------------------------------------------------------
logout

[Process completed]
`
So, it looks like the problem is in Eclipse.


If I am correct, there should now be two archives at cardforge that were built and transferred from my local copy. The archives on my end are named:

forge-1.1.2-SNAPSHOT-osx.tar.bz2
forge-1.1.2-SNAPSHOT.tar.bz2

Does anyone have any idea what the url in front of the 2 archives would be?



OH, Dave, I sent the goal to you via a pm as it contains the password.
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

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 27 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 27 users online :: 0 registered, 0 hidden and 27 guests (based on users active over the past 10 minutes)
Most users ever online was 9824 on 10 Nov 2025, 04:33

Users browsing this forum: No registered users and 27 guests

Login Form