Problem is solved.
I'm sorry. I didn't read the documentation well.
Attaching sourcecode + add version class solved.


2013/12/4 Quân Lê <[email protected]>

> I think sourcecode just need to be attached into the extension page, right?
> Now I tried to configure the repository to my localhost with this
> documentation
>
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Extension+Module+Repositories
> Added this line:extension.repositories=localxr:xwiki:
> http://localhost:8080/xwiki/rest/
> into xwiki.properties
> but can't find the extension with normal search or advandce search.
> Please help T.T
>
>
> 2013/12/4 Quân Lê <[email protected]>
>
>> Thank you for your support.
>> I'm using the (1) way,
>> I created an xar extension named theXAR and an jar extension named
>> sayhello
>> Add ExtensionDependencyClass object in theXar
>>
>> But I wonder where I put my source code into those extension???
>>
>>
>> 2013/12/3 Marius Dumitru Florea <[email protected]>
>>
>>> As I said there are two options, both available on the home page of
>>> the Repository Application:
>>>
>>> 1) "Contribute extension"
>>>
>>> You specify the extension name (your application name), then fill all
>>> the required fields. Next you have to edit in object mode the
>>> extension page you just created and add ExtensionDependencyClass
>>> objects for each of your dependencies. If your JAR is not available on
>>> a Maven repository then you have to create an extension page for the
>>> JAR first, so that you can specify the dependency.
>>>
>>> 2) "Import"
>>>
>>> For this you need to have both the JAR and the XAR published in a
>>> Maven repository. Then click on "Import" from the Repository
>>> Application home page and specify the Maven artifact id.
>>>
>>> Hope this helps,
>>> Marius
>>>
>>> On Tue, Dec 3, 2013 at 11:01 AM, Quân Lê <[email protected]> wrote:
>>> > Thank you for your reply.
>>> > I installed  Repository Application (
>>> >
>>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Repository+Application
>>> )
>>> > 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 <[email protected]>
>>> >
>>> >> 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+Application
>>> >> ). 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 <[email protected]>
>>> 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.html
>>> >> > Sent from the XWiki- Dev mailing list archive at Nabble.com.
>>> >> > _______________________________________________
>>> >> > devs mailing list
>>> >> > [email protected]
>>> >> > http://lists.xwiki.org/mailman/listinfo/devs
>>> >> _______________________________________________
>>> >> devs mailing list
>>> >> [email protected]
>>> >> http://lists.xwiki.org/mailman/listinfo/devs
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > ======Lê Minh Quân======
>>> > _______________________________________________
>>> > devs mailing list
>>> > [email protected]
>>> > http://lists.xwiki.org/mailman/listinfo/devs
>>> _______________________________________________
>>> devs mailing list
>>> [email protected]
>>> http://lists.xwiki.org/mailman/listinfo/devs
>>>
>>
>>
>>
>> --
>> ======Lê Minh Quân======
>>
>
>
>
> --
> ======Lê Minh Quân======
>



-- 
======Lê Minh Quân======
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to