Cant compile source
Moderators: North, BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, CCGHQ Admins
Cant compile source
by JotaPeRL » 07 Mar 2015, 03:15
Hi guys,
I'm using netbeans 8.0.2 and Java 8. I cloned the git repository, as specified at "Developer getting started".
When I try to build, I get the following error:
Failed to execute goal on project mage-server: Could not resolve dependencies for project org.mage:mage-server:jar:1.3.0: The following artifacts could not be resolved: org.mage:mage-player-ai:jar:1.3.0, org.mage:mage-player-aiminimax:jar:1.3.0, org.mage:mage-player-ai-ma:jar:1.3.0, org.mage:mage-tournament-boosterdraft:jar:1.3.0, org.mage:mage-tournament-sealed:jar:1.3.0, org.mage:mage-tournament-constructed:jar:1.3.0, org.mage:mage-player-ai-draftbot:jar:1.3.0: Failure to find org.mage:mage-player-ai:jar:1.3.0 in [removed url because it was not allowing me to post] was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repository has elapsed or updates are forced -> [Help 1]
Any advice?
Thanks,
JP
I'm using netbeans 8.0.2 and Java 8. I cloned the git repository, as specified at "Developer getting started".
When I try to build, I get the following error:
Failed to execute goal on project mage-server: Could not resolve dependencies for project org.mage:mage-server:jar:1.3.0: The following artifacts could not be resolved: org.mage:mage-player-ai:jar:1.3.0, org.mage:mage-player-aiminimax:jar:1.3.0, org.mage:mage-player-ai-ma:jar:1.3.0, org.mage:mage-tournament-boosterdraft:jar:1.3.0, org.mage:mage-tournament-sealed:jar:1.3.0, org.mage:mage-tournament-constructed:jar:1.3.0, org.mage:mage-player-ai-draftbot:jar:1.3.0: Failure to find org.mage:mage-player-ai:jar:1.3.0 in [removed url because it was not allowing me to post] was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repository has elapsed or updates are forced -> [Help 1]
Any advice?
Thanks,
JP
Re: Cant compile source
by LevelX » 07 Mar 2015, 08:35
Sounds like some projects are not build yet.
And you did a "Clean and build" on the "Mage Root" project before?
And you did a "Clean and build" on the "Mage Root" project before?
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
Re: Cant compile source
by JotaPeRL » 08 Mar 2015, 02:22
Thanks for your reply.
I did a clean and built on the mage root project. It finishes w/o success. That's the error I get:
------------------------------------------------------------------------
Building Mage Server 1.3.0
------------------------------------------------------------------------
The POM for org.mage:mage-player-ai:jar:1.3.0 is missing, no dependency information available
The POM for org.mage:mage-player-aiminimax:jar:1.3.0 is missing, no dependency information available
The POM for org.mage:mage-player-ai-ma:jar:1.3.0 is missing, no dependency information available
The POM for org.mage:mage-tournament-boosterdraft:jar:1.3.0 is missing, no dependency information available
The POM for org.mage:mage-tournament-sealed:jar:1.3.0 is missing, no dependency information available
The POM for org.mage:mage-tournament-constructed:jar:1.3.0 is missing, no dependency information available
The POM for org.mage:mage-player-ai-draftbot:jar:1.3.0 is missing, no dependency information available
------------------------------------------------------------------------
Reactor Summary:
Mage Root ......................................... SUCCESS [0.336s]
Mage Framework .................................... SUCCESS [24.749s]
Mage Common Classes ............................... SUCCESS [2.276s]
Mage Plugins ...................................... SUCCESS [0.010s]
Mage Counter Plugin ............................... SUCCESS [1.113s]
Mage Client ....................................... SUCCESS [13.019s]
Mage Theme Plugin ................................. SUCCESS [0.743s]
Mage Sets ......................................... SUCCESS [3:20.037s]
Mage Server Plugins ............................... SUCCESS [0.010s]
Mage Deck Constructed ............................. SUCCESS [0.738s]
Mage Deck Limited ................................. SUCCESS [0.995s]
Mage Game Commander Two Player .................... SUCCESS [0.669s]
Mage Game Commander Free For All .................. SUCCESS [0.333s]
Mage Game Free For All ............................ SUCCESS [0.903s]
Mage Game Two Player .............................. SUCCESS [0.703s]
Mage Player Human ................................. SUCCESS [0.713s]
Mage Game Tiny Leaders Two Player ................. SUCCESS [0.625s]
Mage Server ....................................... FAILURE [0.060s]
Mage Server Console ............................... SKIPPED
Mage Tests ........................................ SKIPPED
Mage Updater ...................................... SKIPPED
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
I did a clean and built on the mage root project. It finishes w/o success. That's the error I get:
------------------------------------------------------------------------
Building Mage Server 1.3.0
------------------------------------------------------------------------
The POM for org.mage:mage-player-ai:jar:1.3.0 is missing, no dependency information available
The POM for org.mage:mage-player-aiminimax:jar:1.3.0 is missing, no dependency information available
The POM for org.mage:mage-player-ai-ma:jar:1.3.0 is missing, no dependency information available
The POM for org.mage:mage-tournament-boosterdraft:jar:1.3.0 is missing, no dependency information available
The POM for org.mage:mage-tournament-sealed:jar:1.3.0 is missing, no dependency information available
The POM for org.mage:mage-tournament-constructed:jar:1.3.0 is missing, no dependency information available
The POM for org.mage:mage-player-ai-draftbot:jar:1.3.0 is missing, no dependency information available
------------------------------------------------------------------------
Reactor Summary:
Mage Root ......................................... SUCCESS [0.336s]
Mage Framework .................................... SUCCESS [24.749s]
Mage Common Classes ............................... SUCCESS [2.276s]
Mage Plugins ...................................... SUCCESS [0.010s]
Mage Counter Plugin ............................... SUCCESS [1.113s]
Mage Client ....................................... SUCCESS [13.019s]
Mage Theme Plugin ................................. SUCCESS [0.743s]
Mage Sets ......................................... SUCCESS [3:20.037s]
Mage Server Plugins ............................... SUCCESS [0.010s]
Mage Deck Constructed ............................. SUCCESS [0.738s]
Mage Deck Limited ................................. SUCCESS [0.995s]
Mage Game Commander Two Player .................... SUCCESS [0.669s]
Mage Game Commander Free For All .................. SUCCESS [0.333s]
Mage Game Free For All ............................ SUCCESS [0.903s]
Mage Game Two Player .............................. SUCCESS [0.703s]
Mage Player Human ................................. SUCCESS [0.713s]
Mage Game Tiny Leaders Two Player ................. SUCCESS [0.625s]
Mage Server ....................................... FAILURE [0.060s]
Mage Server Console ............................... SKIPPED
Mage Tests ........................................ SKIPPED
Mage Updater ...................................... SKIPPED
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Re: Cant compile source
by JotaPeRL » 08 Mar 2015, 15:20
I managed to build the project, but I had to edit the pom.xml file at the Mage.Server.Plugins project. I added the following lines:
- Code: Select all
<module>Mage.Player.AI</module>
<module>Mage.Player.AI.DraftBot</module>
<module>Mage.Player.AI.MA</module>
<module>Mage.Player.AIMCTS</module>
<module>Mage.Player.AIMinimax</module>
<module>Mage.Tournament.BoosterDraft</module>
<module>Mage.Tournament.Constructed</module>
<module>Mage.Tournament.Sealed</module>
Re: Cant compile source
by LevelX » 08 Mar 2015, 22:30
What happens (or happened) if you build the projects you added to the POM (like Mage.Player.AI)?
Did they build without error?
I can only say I had never such a problem if I clean and build the Mage Root project.
Did they build without error?
I can only say I had never such a problem if I clean and build the Mage Root project.
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
Re: Cant compile source
by JotaPeRL » 09 Mar 2015, 03:14
The projects build without error.
I'm sure it should not be needed, since nobody else complained about it.
I don't know maven, I think it would work out of the box, since it didn't, I just did an ugly hack to make it work. I may look into it again in the future, to figure out what was wrong.
I'm sure it should not be needed, since nobody else complained about it.
I don't know maven, I think it would work out of the box, since it didn't, I just did an ugly hack to make it work. I may look into it again in the future, to figure out what was wrong.
Re: Cant compile source
by LevelX » 11 Mar 2015, 10:21
About two weeks ago there were deleted unintened some project references in the pom.xml files.
That explains your problems.
They are readded now to the project repository.
So pull again and try to build.
That explains your problems.
They are readded now to the project repository.
So pull again and try to build.
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
Re: Cant compile source
by JotaPeRL » 11 Mar 2015, 14:43
To be honest, I was doing a few things wrong. I don't have experience with git or github. I didn't have a github account, and didn't have a fork of the project.
Anyway, I restarted from scratch and it worked fine. I submitted a card a couple days ago, and you merged it. It was a simple card, I implemented just to get used with the workflow.
Right now I'm trying to implement another card. I think I got it right, but I can't properly test it. I'm probably doing something wrong again. The point is that I am getting errors and odd behavior with the mage client that I compiled from the project. Lot's of UI errors. The deck editor does not open and the client enters and infinite loop complaining about some UI issues. I deleted the logs, since they were growing too large, but I can recreate if necessary.
The card I'm trying to test, Anthem of Rakdos, has a triggered ability that affects creatures attacking. If I attack with a single creature it works fine. If I attack with multiple cratures, I get an UI error. The popup window to place the triggers on the stack never shows up.
I tried a similiar trigger with an already implemented card, Krosan, Stonebrow Hero. Same thing happens. With a single attacker it works fine, but I get a UI error when I should get the popup window.
I tested Krosan at the released xmage client, and it worked fine.
Now, I don't know if there's some code been worked on the development mage-client, or if there are additional files that I must place at the client folder to make it work properly.
I was thinking is if it's possible to test new cards with the stable client/server. I tried to simple copy the mage-sets jar file, but it didn't work. The server didn't launch.
Any help is appreciated.
JP
Anyway, I restarted from scratch and it worked fine. I submitted a card a couple days ago, and you merged it. It was a simple card, I implemented just to get used with the workflow.
Right now I'm trying to implement another card. I think I got it right, but I can't properly test it. I'm probably doing something wrong again. The point is that I am getting errors and odd behavior with the mage client that I compiled from the project. Lot's of UI errors. The deck editor does not open and the client enters and infinite loop complaining about some UI issues. I deleted the logs, since they were growing too large, but I can recreate if necessary.
The card I'm trying to test, Anthem of Rakdos, has a triggered ability that affects creatures attacking. If I attack with a single creature it works fine. If I attack with multiple cratures, I get an UI error. The popup window to place the triggers on the stack never shows up.
I tried a similiar trigger with an already implemented card, Krosan, Stonebrow Hero. Same thing happens. With a single attacker it works fine, but I get a UI error when I should get the popup window.
I tested Krosan at the released xmage client, and it worked fine.
Now, I don't know if there's some code been worked on the development mage-client, or if there are additional files that I must place at the client folder to make it work properly.
I was thinking is if it's possible to test new cards with the stable client/server. I tried to simple copy the mage-sets jar file, but it didn't work. The server didn't launch.
Any help is appreciated.
JP
Re: Cant compile source
by LevelX » 11 Mar 2015, 15:51
Maybe too less memory assigned to the VM of the XMage client.
Did you set the client project VM parameters like described under point 7) from the "Steps to retrieve, build and run" section of the https://github.com/magefree/mage/wiki/Developer-Getting-Started XMage developers wiki page?
Did you set the client project VM parameters like described under point 7) from the "Steps to retrieve, build and run" section of the https://github.com/magefree/mage/wiki/Developer-Getting-Started XMage developers wiki page?
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
Re: Cant compile source
by JotaPeRL » 12 Mar 2015, 04:30
I changed my jdk today to 1.7. Still got the same errors.
That's the log when the client crashes.
That's the log when the client crashes.
- Code: Select all
FATAL 2015-03-11 20:34:31,790 Client error
=>[AWT-EventQueue-0] CallbackClientImpl.handleException
java.lang.NullPointerException
at org.mage.plugins.card.CardPluginImpl.getMageCard(CardPluginImpl.java:93)
at mage.client.plugins.impl.Plugins.getMageCard(Plugins.java:105)
at mage.client.cards.CardArea.addCard(CardArea.java:125)
at mage.client.cards.CardArea.loadCardsFew(CardArea.java:110)
at mage.client.cards.CardArea.loadCards(CardArea.java:85)
at mage.client.dialog.ShowCardsDialog.loadCards(ShowCardsDialog.java:94)
at mage.client.game.GamePanel.showCards(GamePanel.java:931)
at mage.client.game.GamePanel.pickTarget(GamePanel.java:852)
at mage.client.remote.CallbackClientImpl$1.run(CallbackClientImpl.java:221)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:702)
at java.awt.EventQueue$3.run(EventQueue.java:696)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
- Code: Select all
-Xverify:none -client -Xss2m -Xms512m -Xmx512m -XX:+PerfBypassFileSystemCheck
Re: Cant compile source
by LevelX » 12 Mar 2015, 07:31
It's not a specific problem of you.
Seems to be a problem in the client code with triggered abilities.
I'm investigating.
Seems to be a problem in the client code with triggered abilities.
I'm investigating.
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
11 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 11 guests