Page 1 of 1

Eclipse, Maven and Compile

Posted: Thu Jan 17, 2008 11:09 am
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?

Posted: Thu Jan 17, 2008 3:38 pm
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.