It is currently 11 Sep 2025, 11:52
   
Text Size

Eclipse and Maven

Post MTG Forge Related Programming Questions Here

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

Re: Eclipse and Maven

Postby jendave » 25 Jul 2011, 18:24

jendave wrote:
Please send me the jars. Most of the ones that Forge depends on are on in a standard Maven repo (http://mvnrepository.com), but the ones that were not (jyield), I put into a repo I maintain at http://arcane.googlecode.com/svn/trunk/repository. Since my repo is already a part of the current Forge Maven build, all we have to do is add your mantis jars and we should be good.
Nevermind. I found the mantisconnect jar and uploaded to the Arcane remote repo. I also added it to the Maven pom.xml file. Let me know once you add code that uses it. If there are any problems, let me know.

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

Re: Eclipse and Maven

Postby Rob Cashwalker » 25 Jul 2011, 20:44

I had just sent it to you before reading this. The library I'm expecting to use also requires a number of others, so they may need to be worked in as well.
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: Eclipse and Maven

Postby Rob Cashwalker » 28 Jul 2011, 04:43

Nevermind... I spent a while trying to execute the mantis library, expecting errors to point me to which libraries it really needed, and I did my best trying out different matches from the Maven-based versions until I got no errors and a successful bug report. Working on actual implementation and GUI now.
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: Eclipse and Maven

Postby jendave » 04 Aug 2011, 14:21

I have reorganized the root project directory to make it more Maven friendly. Please do a 'git pull' and 'refresh' the project in Eclipse. You will see that all the main source code is under src/main/java and the test code is under /src/test/java.
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: Eclipse and Maven

Postby Braids » 04 Aug 2011, 22:10

jendave wrote:I have reorganized the root project directory to make it more Maven friendly. Please do a 'git pull' and 'refresh' the project in Eclipse. You will see that all the main source code is under src/main/java and the test code is under /src/test/java.
holy Flux!

this is a test . . . of my EGit skills. i see right through you, Dave. :twisted: {UB} :wink:
"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: Eclipse and Maven

Postby Rob Cashwalker » 05 Aug 2011, 01:57

I now have three nodes with code in them: src/main/java, src/test/java and src. src has conflicts, compared to my local copy, the differences are in the Bug Reporting update I pushed last night. Looks like I have to delete and re-pull again...
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: Eclipse and Maven

Postby Braids » 05 Aug 2011, 02:03

Rob Cashwalker wrote:I now have three nodes with code in them: src/main/java, src/test/java and src. src has conflicts, compared to my local copy, the differences are in the Bug Reporting update I pushed last night. Looks like I have to delete and re-pull again...
that should be OK. does src have any java files in it? it shouldn't.

edit: you should be able to move your code from the src folder into the corresponding package within the {src/main/java} folder.
edit 2: the only thing i learned this evening about EGit is that sometimes, if pulling fails, and merging fails, push still might work just fine. sounds dangerous, but it actually was smart enough in a particular case where i had done too many hard resets.
edit 3: oh, and that anything involving EGit and "synchronization" is either a wretched hive of scum and villainy or more powerful than i could possibly imagine. i'm leaning toward the former.
"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: Eclipse and Maven

Postby Rob Cashwalker » 05 Aug 2011, 02:32

yeah, no actual code, just the two files I had last modified.

I moved them over, did an add, then did a commit, only to find that it thought ALL the files had been changed.

So, yeah, seems like the smartest thing is to dump and run...
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

Previous

Return to Developer's Corner

Who is online

Users browsing this forum: Bing [Bot] and 25 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 26 users online :: 1 registered, 0 hidden and 25 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: Bing [Bot] and 25 guests

Login Form