Hi Hoani,
I may add that you rarely need to compile everything. Hudson compiles
them for you and maven downloads them as dependencies. So my advice
is
to build only the modules you're working on (and maybe the modules
that
depend on them, but you can avoid this sometimes by copy&pasting the
resulting artifact, usually a jar, for the target directory to the
required place, usually WEB-INF/lib in XE).
Hope this helps,
Marius
Vincent Massol wrote:
Hi Hoani,
When you have problems like this the first thing to check is hudson:
http://hudson.xwiki.org/
You should check if hudson succeeds or not in building the module
you
want to build. If it does then it means the problem is most likely
on
your side.
Things you can check:
* make sure your local workspave is up to date: svn up
* make sure you're using the correct version of maven. right now I'd
recommend using 2.1.0-M1
You certainly don't need to touch any source file to build xwiki.
BTW
if you ever want to run without tests simply run with -
Dmaven.test.skip=true as is the standard in any maven build.
Let us know how it goes.
Thanks
-Vincent
On Feb 14, 2009, at 5:38 PM, Hoani Cross wrote:
> Hi !
>
> Since a few days, I'm trying to compile the latest source code of
> xwiki
> fetching it from the SVN. Following the tutorial from the xwiki
> website
> first, I encounter major problems (like the TestCase class cannot
> be
> found
> !) but it resolves as magic a few days after by just updating the
> code.
>
> My last try was tomorrow, because I wanted to look at the last
> XWiki
> GWT
> impl. It took 2 hours to resolve problems and have the core module
> compiled
> and installed through maven. Here are the problems I encountered :
>
> - the sablecc plugin from the xwiki-core-query-jpql-parser module
> give me
> some trouble especially having the generated classes available for
> the test
> classes, my solution was to disable tests for this module (I
> wanted to go as
> fast as possible),
> - the project xwiki-core-query-xwql had problems in test cases
> getting
> some classes from the previous project : disabling the test was
> also my
> solution,
> - the xwiki-core tests fails at this test :
>
> public void testGetLinkedPages10()
> {
>
> this.mockXWiki.stubs().method("exists").will(returnValue(true));
>
> this.document
>
> .setContent("[TargetPage][TargetLabel>TargetPage]
> [TargetSpace.TargetPage][TargetLabel>TargetSpace.TargetPage?
> param=value#anchor][
>
http://externallink][mailto:mailto]")uot;);
>
> List<String> linkedPages =
> this.document.getLinkedPages(getContext());
>
> assertEquals(Arrays.asList("Space.TargetPage",
> "Space.TargetPage",
> "TargetSpace.TargetPage",
> "TargetSpace.TargetPage"), linkedPages);
> }
>
> As you may noticed, I just adapt the assertEquals() line, even if
> the
> expected result is not exact : I want to have the product
> installed,
> point.
>
> Then I re-run maven from the root, let it go and went to bed.
>
> This morning I even get another test failed on xwiki-plugin-
> spacemanager...
> :(
>
> What do you suggests me ? Deactivating the tests for all the
> modules
> as a
> env. var ? I don't want to spend hours just for compiling xwiki...
> Thx in
> advance !
>
> --
> Hoani CROSS
> Globotraders Tahiti Founder [
http://globotraders-tahiti.com]
> _______________________________________________
> devs mailing list
> devs(a)xwiki.org
>
http://lists.xwiki.org/mailman/listinfo/devs
Thanks
-Vincent
http://xwiki.com
http://xwiki.org
http://massol.net
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
devs(a)xwiki.org