)
but don't know how to use it properly.
Can you be more specific about "publish your XAR to the extension repository"
and "For declaring the XAR dependencies you can either use the Repository
Application"
For example, I have a jar contains
class HelloWorld{
def sayHello(){
return "Hello World!"
}
}
And wiki pages that contains:
{{groovy}}
def a = new HelloWorld()
println a
{{/groovy}}
2013/12/3 Marius Dumitru Florea <mariusdumitru.florea(a)xwiki.com>
You can package your XWiki application (XAR) as
an extension (
http://extensions.xwiki.org/xwiki/bin/view/Extension/Extension+Module
). For this you need an extension repository (such as
extension.xwiki.org) which is defined by the Repository Application (
http://extensions.xwiki.org/xwiki/bin/view/Extension/Repository+Application
) that you can install in any XWiki instance. You'll have to publish
your XAR to the extension repository and then your friend can
configure his wiki to use that repository and install your application
through the Extension Manager UI (
http://extensions.xwiki.org/xwiki/bin/view/Extension/Extension+Manager+Appl…
). The Extension Manager will install automatically transitive
dependencies of your application.
For declaring the XAR dependencies you can either use the Repository
Application or you can create a Maven module for your XAR with proper
dependencies in the pom.xml and then import the module using the
Repository Application.
Of course, if the application you are referring to is useful for
others too and can be made public then it's better to publish it on
extension.xwiki.org and your friend won't have to do any special
configuration to be able to install it. You can also ask for a
repository on
https://github.com/xwiki-contrib to host your code.
Hope this helps,
Marius
On Tue, Dec 3, 2013 at 9:32 AM, lequan.moon <lequan.moon(a)gmail.com> wrote:
The problem i'm having is when i'm
developing an application in xwiki,
normally, I just have to send my friends a xar file if all my sources
are in
pages.
But when i use an external jar bundle, I have to put it into WEB-INF/lib.
Is there anyway to deploy my application without put the external jar
file
by hand into WEB-INF/lib
--
View this message in context:
http://xwiki.475771.n2.nabble.com/How-to-deploy-a-new-jar-bundle-tp7588210.…
Sent from the XWiki- Dev mailing list archive at
Nabble.com.
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
======Lê Minh Quân======
_______________________________________________
devs mailing list
devs(a)xwiki.org