It is currently 28 Aug 2025, 19:47
   
Text Size

Maven build file - generation of OSX, Windows, Linux files

Post MTG Forge Related Programming Questions Here

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

Re: Maven build file - generation of OSX, Windows, Linux fil

Postby Chris H. » 01 Jul 2011, 19:31

jendave wrote:Please do an svn update. I fixed the pom.xml yesterday. It "works for me" but let me know. The jyield.jar os the new dep for braid's code. I uploaded it into my Maven repo I use to support Forge.

On another front - I changed the Maven build so that it zips up the cardsfolder and includes only the zip file. I also am not including res/lib since those files are bundled in the jar-with-dependencies. This results in a build time that is *much* faster (~x4 for me) and *much* smaller release packages (50% of the previous size).
`
I updated to the current head rev 10272 and I am still getting the same error:

Code: Select all
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge 1.0.15-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.google.code.jyield:jyield:jar:1.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.688s
[INFO] Finished at: Fri Jul 01 15:28:38 EDT 2011
[INFO] Final Memory: 3M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project forge: Could not resolve dependencies for project forge:forge:jar:1.0.15-SNAPSHOT: Could not find artifact com.google.code.jyield:jyield:jar:1.0-SNAPSHOT -> [Help 1]
[ERROR]
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: Maven build file - generation of OSX, Windows, Linux fil

Postby jendave » 01 Jul 2011, 19:37

Chris H. wrote:
jendave wrote:Please do an svn update. I fixed the pom.xml yesterday. It "works for me" but let me know. The jyield.jar os the new dep for braid's code. I uploaded it into my Maven repo I use to support Forge.

On another front - I changed the Maven build so that it zips up the cardsfolder and includes only the zip file. I also am not including res/lib since those files are bundled in the jar-with-dependencies. This results in a build time that is *much* faster (~x4 for me) and *much* smaller release packages (50% of the previous size).
`
I updated to the current head rev 10272 and I am still getting the same error:

Code: Select all
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge 1.0.15-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.google.code.jyield:jyield:jar:1.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.688s
[INFO] Finished at: Fri Jul 01 15:28:38 EDT 2011
[INFO] Final Memory: 3M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project forge: Could not resolve dependencies for project forge:forge:jar:1.0.15-SNAPSHOT: Could not find artifact com.google.code.jyield:jyield:jar:1.0-SNAPSHOT -> [Help 1]
[ERROR]
please update one more time (r10274) and try it again. I enabled the use of SNAPSHOT jar dependencies (i.e. jyield)
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: Maven build file - generation of OSX, Windows, Linux fil

Postby Chris H. » 01 Jul 2011, 19:48

jendave wrote:please update one more time (r10274) and try it again. I enabled the use of SNAPSHOT jar dependencies (i.e. jyield)
`
I updated and tried again and it works. Thank you once again. :D
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

Do deprecation warnings mess up the maven build?

Postby Braids » 03 Jul 2011, 00:09

do deprecation warnings mess up the maven build? or any other compiler warnings, for that matter? it seems to be rather sensitive.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: Maven build file - generation of OSX, Windows, Linux fil

Postby Chris H. » 05 Jul 2011, 11:20

I am working on another build and release. In rev 10391 Dave moved main into the unit test. During the build and release there was a pause with a test window with the "Error" word visible.

We are now at a later pause and it is generating a checkstyle report, and there are 35686 checkstyle errors.

I see that we are generating a number of reports. We have 882 warnings. I think that this will finish and a working archive will be uploaded to googlecode cardforge.

It is interesting to watch the data in the terminal window.


EDIT:

It looks like the two archives are now on googlecode cardforge. Various reports are now being sent which I assume is related to the recent tests that were added to forge.


EDIT 2:

Rev 10396 [maven-svn-wagon] site
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: Do deprecation warnings mess up the maven build?

Postby jendave » 05 Jul 2011, 18:21

Braids wrote:do deprecation warnings mess up the maven build? or any other compiler warnings, for that matter? it seems to be rather sensitive.
No. Neither deprecations nor warnings will mess up the maven build.

Dave
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: Maven build file - generation of OSX, Windows, Linux fil

Postby friarsol » 12 Jul 2011, 03:22

Hey Dave, did you see this Issue posted? http://code.google.com/p/cardforge/issues/detail?id=150

I know you mentioned something about ant earlier but I can't seem to find it now.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Maven build file - generation of OSX, Windows, Linux fil

Postby jendave » 12 Jul 2011, 08:37

friarsol wrote:Hey Dave, did you see this Issue posted? http://code.google.com/p/cardforge/issues/detail?id=150

I know you mentioned something about ant earlier but I can't seem to find it now.
Applied and closed. Thanks
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: Maven build file - generation of OSX, Windows, Linux fil

Postby Chris H. » 15 Jul 2011, 12:39

OK, we have a new beta out. I noticed that the archives a somewhat bigger than before.

During the tests that are now a part of the Maven build process I get an error exception window. A choose dialog window comes up and asks me to select from two choices. One labeled "a" and the other "b".

I look at this in a puzzled state for a couple of seconds and these windows close and the Maven build process continues. I guess that the results of these tests will appear on the site that you mentioned a couple of weeks ago. Wish I had bookmarked that site.

In case anyone is interested, here is the console text from the Maven script run:
Attachments
Maven console.zip
(51.8 KiB) Downloaded 379 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: Maven build file - generation of OSX, Windows, Linux fil

Postby jendave » 15 Jul 2011, 15:00

Chris H. wrote:OK, we have a new beta out. I noticed that the archives a somewhat bigger than before.

During the tests that are now a part of the Maven build process I get an error exception window. A choose dialog window comes up and asks me to select from two choices. One labeled "a" and the other "b".

I look at this in a puzzled state for a couple of seconds and these windows close and the Maven build process continues. I guess that the results of these tests will appear on the site that you mentioned a couple of weeks ago. Wish I had bookmarked that site.

In case anyone is interested, here is the console text from the Maven script run:
I took all of the "tests" from the course, which were simply main() methods buried in the src, and copied them into "test/java". I know very quick and dirty. Since many were basic gui tests, I have them timeout so you do not have to interact with them. I also disabled tests that try to load the entire universe of cards. Hopefully, I can take a look at the tests soon to clean them up.
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: Maven build file - generation of OSX, Windows, Linux fil

Postby Chris H. » 15 Jul 2011, 15:13

As long as the Maven script results in a successful build and release then I am not too concerned. This test process is another example of a work in progress. It is fun to watch and it occupies me while I wait for the process to complete.

Can you give us that URL for the test results again? At least I will bookmark it this time.
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: Maven build file - generation of OSX, Windows, Linux fil

Postby Rob Cashwalker » 15 Jul 2011, 15:24

Chris, as far as archive size, there are a few items causing the inflation:

The foil overlays added 2.9 MB... but they look so good...

There's a file mtg-data.txt. I'm guessing it's used by one of Sol's python scripts, but we probably don't need to include it in the beta release.

I think we can eliminate the pics_link folder, since that functionality has been removed.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: Maven build file - generation of OSX, Windows, Linux fil

Postby jendave » 15 Jul 2011, 15:26

Chris H. wrote:As long as the Maven script results in a successful build and release then I am not too concerned. This test process is another example of a work in progress. It is fun to watch and it occupies me while I wait for the process to complete.

Can you give us that URL for the test results again? At least I will bookmark it this time.
I added links to the wiki.

http://www.slightlymagic.net/wiki/MTG_Forge#Development_Reports
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: Maven build file - generation of OSX, Windows, Linux fil

Postby Chris H. » 15 Jul 2011, 16:34

Rob Cashwalker wrote:Chris, as far as archive size, there are a few items causing the inflation:

The foil overlays added 2.9 MB... but they look so good...

There's a file mtg-data.txt. I'm guessing it's used by one of Sol's python scripts, but we probably don't need to include it in the beta release.

I think we can eliminate the pics_link folder, since that functionality has been removed.
`
Besides the foil overlays I think that there may have been some increase in the lib folder. And I am not about to suggest that we remove the foil overlays, they are a nice addition.

There may be several old files located in the draft folder that are no longer of use.
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: Maven build file - generation of OSX, Windows, Linux fil

Postby Chris H. » 15 Jul 2011, 16:37

`
Thank you Dave, those links on the first wiki page are helpful.
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 46 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 46 users online :: 0 registered, 0 hidden and 46 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 46 guests

Login Form