Eclipse, Maven and Compile

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Cresceus
Posts: 238
Joined: Tue Jan 15, 2008 8:20 am
Location: Germany

Eclipse, Maven and Compile

Post by Cresceus »

Hello Guys!

I hope this is the right location for my question.

I've downloaded Maven, Eclipse install them and the plugins and i've tried to compile. so i ran cmd and maven but i got this error...

Code: Select all

-------------------------------------------------------------------------------
Test set: net.sf.l2j.gameserver.templates.TestL2NpcTemplate
-------------------------------------------------------------------------------
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.33 sec <<< FAILURE!
testCreationWithStatSet(net.sf.l2j.gameserver.templates.TestL2NpcTemplate)  Time elapsed: 0.23 sec  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<UNKNOWN> but was:<NONE>
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.failNotEquals(Assert.java:282)
	at junit.framework.Assert.assertEquals(Assert.java:64)
	at junit.framework.Assert.assertEquals(Assert.java:71)
	at net.sf.l2j.gameserver.templates.TestL2NpcTemplate.testCreationWithStatSet(TestL2NpcTemplate.java:105)

testCreationWithDefaultValueForSomeStats(net.sf.l2j.gameserver.templates.TestL2NpcTemplate)  Time elapsed: 0 sec  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<UNKNOWN> but was:<NONE>
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.failNotEquals(Assert.java:282)
	at junit.framework.Assert.assertEquals(Assert.java:64)
	at junit.framework.Assert.assertEquals(Assert.java:71)
	at net.sf.l2j.gameserver.templates.TestL2NpcTemplate.testCreationWithDefaultValueForSomeStats(TestL2NpcTemplate.java:168)


After that i ran the debugger with this result:

Code: Select all

C:\Dokumente und Einstellungen\Administrator\workspace>set INT_MAVEN_OPTS= -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
Preparing to Execute Maven in Debug Mode
Listening for transport dt_socket at address: 8000
After that i ran the assembly:assembly again and got the same error as described above.


Can someone give me some advise?
User avatar
Serra
Posts: 37
Joined: Tue Oct 11, 2005 4:00 pm
Location: Malaysia

Post by Serra »

l2j use build.xml .............. only l2jfree use maven to compile

the best way is to use ant build rather than using maven if you want to compile l2j build.
I run..run ..run...run..run...run...run then I stop.... hahahahahaha
Post Reply