How to get started?
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: How to get started?
by Agetian » 02 Aug 2011, 05:06
Trying to get Git to cooperate with Eclipse, followed the tutorial at "How to Get Started Developing" up till the "Typical Development Usage" so far, got eGit up and running, cloned the repository successfully and imported the project into Eclipse, but it's giving me 434 build errors, most of them being like this:
Assert cannot be resolved
Log cannot be resolved
JXMultiSplitPane cannot be resolved to a type
Generator cannot be resolved to a type
etc.
Do you know what could I potentially be doing wrong? :\
- Agetian
Assert cannot be resolved
Log cannot be resolved
JXMultiSplitPane cannot be resolved to a type
Generator cannot be resolved to a type
etc.
Do you know what could I potentially be doing wrong? :\
- Agetian
- Agetian
- Programmer
- Posts: 3489
- Joined: 14 Mar 2011, 05:58
- Has thanked: 684 times
- Been thanked: 572 times
Re: How to get started?
by friarsol » 02 Aug 2011, 11:59
If I had to guess, I'd say your maven plugin is either a) not functioning appropriately or b) not installed. But you may want to wait for someone who is more familiar with the suggested setup.Agetian wrote:Trying to get Git to cooperate with Eclipse, followed the tutorial at "How to Get Started Developing" up till the "Typical Development Usage" so far, got eGit up and running, cloned the repository successfully and imported the project into Eclipse, but it's giving me 434 build errors, most of them being like this:
Assert cannot be resolved
Log cannot be resolved
JXMultiSplitPane cannot be resolved to a type
Generator cannot be resolved to a type
etc.
Do you know what could I potentially be doing wrong? :\
- Agetian
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: How to get started?
by Rob Cashwalker » 02 Aug 2011, 13:39
yep, that's a maven thing.
Make sure you're running the latest Eclipse, Indigo. It has maven integrated correctly. I had some build errors, then deleted my maven cache (Documents and Settings\{user}\.m2\ or /home/{user}/.m2/) then maven rebuilt its cache and the build errors were gone.
Make sure you're running the latest Eclipse, Indigo. It has maven integrated correctly. I had some build errors, then deleted my maven cache (Documents and Settings\{user}\.m2\ or /home/{user}/.m2/) then maven rebuilt its cache and the build errors were gone.
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: How to get started?
by Agetian » 02 Aug 2011, 14:20
Hmm I installed the latest Eclipse Classic (3.7 Indigo), made extra sure I got both eGit and m2e (Maven integration), then followed the steps again but I'm still having the same issues... Is there anything specific I need to do about Maven in order to get it to function properly?..
- Agetian
- Agetian
- Agetian
- Programmer
- Posts: 3489
- Joined: 14 Mar 2011, 05:58
- Has thanked: 684 times
- Been thanked: 572 times
Re: How to get started?
by Rob Cashwalker » 02 Aug 2011, 14:57
I'd try clearing out your .m2 folder, then do a maven -> update dependencies from the Forge project item.
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: How to get started?
by Agetian » 02 Aug 2011, 15:21
Hmm, deleted the .m2 folder, ran maven->update dependencies, it quickly jumped down from 434 errors 19 warnings to 434 errors 17 warnings, then back to the count of 434/19 and still keeps bugging me with the issues... :\Rob Cashwalker wrote:I'd try clearing out your .m2 folder, then do a maven -> update dependencies from the Forge project item.
- Agetian
- Agetian
- Programmer
- Posts: 3489
- Joined: 14 Mar 2011, 05:58
- Has thanked: 684 times
- Been thanked: 572 times
Re: How to get started?
by Agetian » 02 Aug 2011, 15:27
Ok, after doing that one more time it seems to have worked, but I'm still getting two errors:
The project was not built since its build path is incomplete. Cannot find the class file for
com.mortennobel.imagescaling.AdvancedResizeOp. Fix the build path then try building this project.
The type com.mortennobel.imagescaling.AdvancedResizeOp cannot be resolved. It is indirectly referenced from required .class files.
I tried tinkering with the "Build path" configuration but I can't figure out what exactly is required from me... can you please assist?
- Agetian
The project was not built since its build path is incomplete. Cannot find the class file for
com.mortennobel.imagescaling.AdvancedResizeOp. Fix the build path then try building this project.
The type com.mortennobel.imagescaling.AdvancedResizeOp cannot be resolved. It is indirectly referenced from required .class files.
I tried tinkering with the "Build path" configuration but I can't figure out what exactly is required from me... can you please assist?
- Agetian
- Agetian
- Programmer
- Posts: 3489
- Joined: 14 Mar 2011, 05:58
- Has thanked: 684 times
- Been thanked: 572 times
Re: How to get started?
by Braids » 02 Aug 2011, 15:43
also, keep an eye on the Progress View in eclipse. maven can take a long time downloading and analyzing its dependencies.
"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. 

-
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: How to get started?
by Braids » 02 Aug 2011, 15:45
the 400+ errors happened for me in the beginning, too. looking at the Progress View, i could see that maven was busy at work.
is anything going on in your Progress View?
is anything going on in your Progress View?
"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. 

-
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: How to get started?
by Agetian » 02 Aug 2011, 16:05
Yep, as I mentioned in another message above, apparently it was a matter of time, but even after all the dependencies are updated, I still get these two errors and I'm not sure what needs to be done:Braids wrote:the 400+ errors happened for me in the beginning, too. looking at the Progress View, i could see that maven was busy at work.
is anything going on in your Progress View?
com.mortennobel.imagescaling.AdvancedResizeOp. Fix the build path then try building this project.
The type com.mortennobel.imagescaling.AdvancedResizeOp cannot be resolved. It is indirectly referenced from required .class files.
Thanks for your assistance!
- Agetian
- Programmer
- Posts: 3489
- Joined: 14 Mar 2011, 05:58
- Has thanked: 684 times
- Been thanked: 572 times
Re: maven woes
by Braids » 02 Aug 2011, 16:25
maven is a bit out of my league, but i know a couple more things to try.
please keep an eye on the Progress View and the Console during all this.
in Package Explorer, in the project's top folder, right click pom.xml, Run As, 1 Maven Build.
if that doesn't work, try
right click pom.xml, Run As, 3 Maven Clean.
right click pom.xml, Run As, 1 Maven Build.
if it's still broken, you might want to send a PM to jendave (Dave).
please keep an eye on the Progress View and the Console during all this.
in Package Explorer, in the project's top folder, right click pom.xml, Run As, 1 Maven Build.
if that doesn't work, try
right click pom.xml, Run As, 3 Maven Clean.
right click pom.xml, Run As, 1 Maven Build.
if it's still broken, you might want to send a PM to jendave (Dave).
"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. 

-
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 woes
by Agetian » 02 Aug 2011, 16:35
Umm tried these, but still the same issues, the console view also says build failure. Ok, I'll see if anyone (perhaps Dave) can help with it. Thanks again!Braids wrote:maven is a bit out of my league, but i know a couple more things to try.
please keep an eye on the Progress View and the Console during all this.
...

- Agetian
- Programmer
- Posts: 3489
- Joined: 14 Mar 2011, 05:58
- Has thanked: 684 times
- Been thanked: 572 times
Re: maven woes
by jeffwadsworth » 02 Aug 2011, 16:57
Try this...fixed my issues.Agetian wrote:Umm tried these, but still the same issues, the console view also says build failure. Ok, I'll see if anyone (perhaps Dave) can help with it. Thanks again!Braids wrote:maven is a bit out of my league, but i know a couple more things to try.
please keep an eye on the Progress View and the Console during all this.
...
viewtopic.php?f=52&t=5006&start=165#p66716
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: How to get started?
by Agetian » 02 Aug 2011, 18:14
@ jeffwadsworth: Hmm, tried it but it didn't help...
Thanks for trying to help though!

- Agetian
- Programmer
- Posts: 3489
- Joined: 14 Mar 2011, 05:58
- Has thanked: 684 times
- Been thanked: 572 times
Re: How to get started?
by jendave » 02 Aug 2011, 18:21
Try to removeAgetian wrote:@ jeffwadsworth: Hmm, tried it but it didn't help...Thanks for trying to help though!
- Code: Select all
.m2/repository/com/mortennobel
- Code: Select all
mvn -U clean install
Who is online
Users browsing this forum: No registered users and 17 guests