Hi all,

I'm pretty new to building xwiki from source and ran into a little problem.

When I did 'mvn package' in xwiki-platform-core i get the following output,

=====================================================================

[asiri@asiri-desktop xwiki-dev]$ cd xwiki-platform-core/
[asiri@asiri-desktop xwiki-platform-core]$ mvn package
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building XWiki Platform - Core
[INFO]    task-segment: [package]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://maven.xwiki.org/externals/groovy/groovy-all-1.0-jsr/06/groovy-all-1.0-jsr-06.pom
Downloading: http://maven.xwiki.org/releases/groovy/groovy-all-1.0-jsr/06/groovy-all-1.0-jsr-06.pom
Downloading: http://repo1.maven.org/maven2/groovy/groovy-all-1.0-jsr/06/groovy-all-1.0-jsr-06.pom
[WARNING] While downloading xml-apis:xml-apis:2.0.2
  This artifact has been relocated to xml-apis:xml-apis:1.0.b2.


[INFO] [compiler:compile]
[INFO] Compiling 520 source files to /home/asiri/projects/xwiki-dev/xwiki-platform-core/target/classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 15 source files to /home/asiri/projects/xwiki-dev/xwiki-platform-core/target/test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: /home/asiri/projects/xwiki-dev/xwiki-platform-core/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.xpn.xwiki.content.parsers.LinkParserTest
Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.137 sec
Running com.xpn.xwiki.web.XWikiMessageToolTest
Tests run: 9, Failures: 0, Errors: 9, Skipped: 0, Time elapsed: 0.176 sec <<< FAILURE!
Running com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImplTest
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.023 sec <<< FAILURE!
Running com.xpn.xwiki.doc.XWikiDocumentTest
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.068 sec <<< FAILURE!
Running com.xpn.xwiki.doc.XWikiDocumentArchiveTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.09 sec
Running com.xpn.xwiki.store.XWikiHibernateStoreTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04 sec
Running com.xpn.xwiki.content.LinkTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
Running com.xpn.xwiki.render.XWikiRadeoxRendererTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.02 sec <<< FAILURE!
Running com.xpn.xwiki.render.XWikiVelocityRendererTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.018 sec <<< FAILURE!
Running com.xpn.xwiki.content.parsers.RenamePageReplaceLinkHandlerTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
Running com.xpn.xwiki.content.parsers.DocumentParserTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec
Running com.xpn.xwiki.plugin.packaging.PackageTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.014 sec <<< FAILURE!
Running com.xpn.xwiki.plugin.captcha.CaptchaPluginTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.013 sec <<< FAILURE!
Running com.xpn.xwiki.atom.WSSEHeaderTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec
Running com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest
Tests run: 10, Failures: 0, Errors: 7, Skipped: 0, Time elapsed: 0.034 sec <<< FAILURE!

Results :

Tests in error:
  testGetWhenPreferenceDoesNotExist(com.xpn.xwiki.web.XWikiMessageToolTest)
  testGetWhenNoTranslationAvailable(com.xpn.xwiki.web.XWikiMessageToolTest )
  testGetWhenKeyIsNull(com.xpn.xwiki.web.XWikiMessageToolTest)
  testGetWhenInXWikiPreferences(com.xpn.xwiki.web.XWikiMessageToolTest)
  testGetWhenInXWikiConfigurationFile(com.xpn.xwiki.web.XWikiMessageToolTest )
  testGetWithParameters(com.xpn.xwiki.web.XWikiMessageToolTest)
  testGetDocumentBundlesWhenDocumentDoesNotExist(com.xpn.xwiki.web.XWikiMessageToolTest)
  testGetReturnsFromCacheWhenCalledTwice(com.xpn.xwiki.web.XWikiMessageToolTest )
  testGetWhenDocumentModifiedAfterItIsInCache(com.xpn.xwiki.web.XWikiMessageToolTest)
  testAuthenticateWithSuperAdminWhenSuperAdminPasswordIsTurnedOff(com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImplTest)
  testAuthenticateWithSuperAdminPrefixedWithXWikiWhenSuperAdminPasswordIsTurnedOff( com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImplTest)
  testAuthenticateWithSuperAdminWithWhiteSpacesWhenSuperAdminPasswordIsTurnedOff(com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImplTest)
  testGetDisplayTitleWhenNoTitleAndNoContent( com.xpn.xwiki.doc.XWikiDocumentTest)
  testGetDisplayWhenTitleExists(com.xpn.xwiki.doc.XWikiDocumentTest)
  testGetDisplayWhenNoTitleButSectionExists(com.xpn.xwiki.doc.XWikiDocumentTest)
  testRenderWithSimpleText( com.xpn.xwiki.render.XWikiRadeoxRendererTest)
  testRenderLinkToNewPage(com.xpn.xwiki.render.XWikiRadeoxRendererTest)
  testRenderWithSimpleText(com.xpn.xwiki.render.XWikiVelocityRendererTest)
  testRenderWithVelocityContent( com.xpn.xwiki.render.XWikiVelocityRendererTest)
  testImportWithHeterogeneousEncodingInFiles(com.xpn.xwiki.plugin.packaging.PackageTest)
  testVerifyCaptchaUsingTextWithValidAnswerAndAnonymousUser(com.xpn.xwiki.plugin.captcha.CaptchaPluginTest )
  testVerifyCaptchaUsingTextWhenInvalidAnswerAndAnonymousUser(com.xpn.xwiki.plugin.captcha.CaptchaPluginTest)
  testDownloadAttachmentWithInvalidZipURL(com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest)
  testDownloadAttachment( com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest)
  testDownloadAttachmentWhenURLIsNotZipFile(com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest)
  testDownloadAttachmentWhenURLIsZipButNotPointingInsideZip(com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest )
  testGetFileList(com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest)
  testGetFileTreeList(com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest)
  testGetFileLink(com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest)

Tests run: 65, Failures: 0, Errors: 29, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11 seconds
[INFO] Finished at: Mon Jul 16 07:38:28 LKT 2007
[INFO] Final Memory: 8M/56M
[INFO] ------------------------------------------------------------------------

======================================================================================

Then one of my friends did the following and got it working,,

'mvn package -Dmaven.test.skip=true'

But I believe i'm doing something wrong to cause those tests to fail, so please help me out.

Also, i need to know how to get that stand-alone version (HSQLDB, Jetty and so on) of XWiki built out of XWiki sources. So far I couldn't figure it out. Any help would be highly appreciated.

Thanks a lot.

- Asiri