On Wed, Jun 29, 2011 at 00:24, Chamika Weerasinghe <chamikaw(a)gmail.com> wrote:
Hi,
I modified navigator in xwiki-android-components so that it will
communicate to XWiki instance via xwiki-android-rest. But it cannot be
tested due to following problems.
1. After building xwiki-android-rest library it doesn't have GSON
library. Therefore REST isn't working since GSON classes are not found
withing the library. I searched a method to include gson (or any
other) jar file to add to my custom library. It is said that if we use
scope of the dependency of the maven configuration as "compile" it
will include jar files in our build. But it doesn't work for me.
2. Since xwiki-android-component use xwiki-android-rest, I want to
import rest library to the component. I've done this in eclipse. But
cannot figure it out how should I do this in maven.
Due to above issues current repository give build errors.
You can find a example of complex project with this use case among
other things in
https://github.com/jayway/maven-android-plugin-samples/archives/stable.
Look at "morseflash" one.
Don't take it exactly like that without looking at the details since
it's doing lots of things. But as far as I can see it does not seems
to do anything special to embed dependencies.
Note that xwiki-android-component is supposed to be a library and not
an application so there is no reason for it to embed everything, you
should start the final application and use it as example of how to use
of your component and rest libraries.
I planned to develop object/class editor component in next few days
since xwiki-navigator is almost finish.
Eduard suggested, it should be an "open objects and classes (in a
separate and configurable object/class editor widget) ". Can you
describe about this widget further so that I can get a clear idea
about it.
Same question as Asiri and same suggestion: look at XWiki object/class
editor UI.
Best Regards,
Chamika Weerasinghe
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
Here are some comments not related with your question:
* anything used by all submodules should be moved in the root pom of
your project: android plugin, maven-compiler-plugin
* are you sure setting the <finalName> is needed ? Seems useless to me.
* <sourceDirectory> seems useless too, I don't see why you would have
a custom source directory and src is the default one anyway...
* <avd>android2.2</avd> shouldn't it be <avd>android2.1</avd>
?
* you are still depending on lots of useless things in
xwiki-android-rest, don't put random dependencies hoping that in the
number it will finally work. Each one should be justified.
* the <repositories> is useless since you are not using restlet
A minimum pom.xml file is almost empty so you should understand every
line you put in there and wonder if it's really needed.
--
Thomas Mortagne