[xwiki-users] Repository Extension: How to import an extension from a maven repository
Hi, I like to use the Extension Repository Application in XWiki 4.2 to host our homemade XWiki extensions. For this purpose I configured our Apache archiva instance in xwiki.properties as extension repository: extension.repositories=ourmaven:maven:http://ourmaven:8081/archiva/repository/main I am struggling now with importing the extensions in the http://localhost:8080/xwiki/bin/view/ExtensionCode/ImportExtension page. What is the syntax of an extension id for maven artifacts? Our extensions are normal XAR Files. Do we have to enhance the XAR Files with additional information? Richard
On Fri, Oct 12, 2012 at 8:39 AM, Richard Hierlmeier <[email protected]> wrote:
Hi,
I like to use the Extension Repository Application in XWiki 4.2 to host our homemade XWiki extensions.
For this purpose I configured our Apache archiva instance in xwiki.properties as extension repository:
extension.repositories=ourmaven:maven:http://ourmaven:8081/archiva/repository/main
I am struggling now with importing the extensions in the http://localhost:8080/xwiki/bin/view/ExtensionCode/ImportExtension page.
What is the syntax of an extension id for maven artifacts?
<groupid>:<artifactId> as in org.xwiki.platform:xwiki-platform-oldcore
Our extensions are normal XAR Files. Do we have to enhance the XAR Files with additional information?
Nop, nothing is needed. The importer will only look at the pom.xml in your case.
Richard
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
Hi Thomas, thank you for your fast reply. Am 12.10.2012 09:26, schrieb Thomas Mortagne:
On Fri, Oct 12, 2012 at 8:39 AM, Richard Hierlmeier <[email protected]> wrote:
Hi,
I like to use the Extension Repository Application in XWiki 4.2 to host our homemade XWiki extensions.
For this purpose I configured our Apache archiva instance in xwiki.properties as extension repository:
extension.repositories=ourmaven:maven:http://ourmaven:8081/archiva/repository/main
I am struggling now with importing the extensions in the http://localhost:8080/xwiki/bin/view/ExtensionCode/ImportExtension page.
What is the syntax of an extension id for maven artifacts?
<groupid>:<artifactId> as in org.xwiki.platform:xwiki-platform-oldcore
OK, it works! I imported our XARs into the repository. However they are not installable with the Extension Manager. What are the prequisites for an extension to become installable with the Extension Manager? Thank you in advance Richard
On Fri, Oct 12, 2012 at 10:51 AM, Richard Hierlmeier <[email protected]> wrote:
Hi Thomas,
thank you for your fast reply.
Am 12.10.2012 09:26, schrieb Thomas Mortagne:
On Fri, Oct 12, 2012 at 8:39 AM, Richard Hierlmeier <[email protected]> wrote:
Hi,
I like to use the Extension Repository Application in XWiki 4.2 to host our homemade XWiki extensions.
For this purpose I configured our Apache archiva instance in xwiki.properties as extension repository:
extension.repositories=ourmaven:maven:http://ourmaven:8081/archiva/repository/main
I am struggling now with importing the extensions in the http://localhost:8080/xwiki/bin/view/ExtensionCode/ImportExtension page.
What is the syntax of an extension id for maven artifacts?
<groupid>:<artifactId> as in org.xwiki.platform:xwiki-platform-oldcore
OK, it works! I imported our XARs into the repository. However they are not installable with the Extension Manager.
What are the prequisites for an extension to become installable with the Extension Manager?
Actually the importer generally do everything needed for it to be installable so not sure what's wrong in your case. Do you have any error in the log ? The required minimum is: * proper id * a valid download associated to each version
Thank you in advance
Richard
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
Hi Thomas, Am 12.10.2012 10:59, schrieb Thomas Mortagne:
On Fri, Oct 12, 2012 at 10:51 AM, Richard Hierlmeier <[email protected]> wrote:
...
What are the prequisites for an extension to become installable with the Extension Manager?
Actually the importer generally do everything needed for it to be installable so not sure what's wrong in your case. Do you have any error in the log ?
I did not find any error in the log files related to the extension. Do I have to enable a specific logger?
The required minimum is: * proper id * a valid download associated to each version
The extension page has three objects attached: ExtensionCode.ExtensionClass (1): Id: 0000-000:hello-world-app Type: XAR Name: Hello World APP Summary: Hello World APP Authors: RH Last version: 1.0.0-SNAPSHOT License: GPL Installable with Extension Manager: false ExtensionCode.ExtensionProxyClass (1) Repository ID: ourmaven Repository Type: maven Repository URI: http://ourmaven:8080/archiva/repository/main ExtensionCode.ExtensionVersionClass (1) Download URL: extension:0000-000%3Ahello-world-app%3A1.0.0-SNAPSHOT/1.0.0-SNAPSHOT?rid=ourmaven id: 0000-000:hello-world-app:1.0.0-SNAPSHOT version: 1.0.0-SNAPSHOT Do you see any error? Richard
On Tue, Oct 16, 2012 at 4:58 PM, Richard Hierlmeier <[email protected]> wrote:
Hi Thomas,
Am 12.10.2012 10:59, schrieb Thomas Mortagne:
On Fri, Oct 12, 2012 at 10:51 AM, Richard Hierlmeier <[email protected]> wrote:
...
What are the prequisites for an extension to become installable with the Extension Manager?
Actually the importer generally do everything needed for it to be installable so not sure what's wrong in your case. Do you have any error in the log ?
I did not find any error in the log files related to the extension. Do I have to enable a specific logger?
The required minimum is: * proper id
* a valid download associated to each version
The extension page has three objects attached:
ExtensionCode.ExtensionClass (1): Id: 0000-000:hello-world-app Type: XAR Name: Hello World APP Summary: Hello World APP Authors: RH Last version: 1.0.0-SNAPSHOT License: GPL Installable with Extension Manager: false
ExtensionCode.ExtensionProxyClass (1) Repository ID: ourmaven Repository Type: maven Repository URI: http://ourmaven:8080/archiva/repository/main
ExtensionCode.ExtensionVersionClass (1) Download URL: extension:0000-000%3Ahello-world-app%3A1.0.0-SNAPSHOT/1.0.0-SNAPSHOT?rid=ourmaven id: 0000-000:hello-world-app:1.0.0-SNAPSHOT version: 1.0.0-SNAPSHOT
Do you see any error?
Nop, let me add some log in the listener to understand what's happening in your case. In the meantime you should try to just resave the page to see if it's a bug in the way the listener is called just after importing the extension.
Richard
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
I just reproduced it on extensions.xwiki.org actually, looking at it. On Wed, Oct 17, 2012 at 10:56 AM, Thomas Mortagne <[email protected]> wrote:
On Tue, Oct 16, 2012 at 4:58 PM, Richard Hierlmeier <[email protected]> wrote:
Hi Thomas,
Am 12.10.2012 10:59, schrieb Thomas Mortagne:
On Fri, Oct 12, 2012 at 10:51 AM, Richard Hierlmeier <[email protected]> wrote:
...
What are the prequisites for an extension to become installable with the Extension Manager?
Actually the importer generally do everything needed for it to be installable so not sure what's wrong in your case. Do you have any error in the log ?
I did not find any error in the log files related to the extension. Do I have to enable a specific logger?
The required minimum is: * proper id
* a valid download associated to each version
The extension page has three objects attached:
ExtensionCode.ExtensionClass (1): Id: 0000-000:hello-world-app Type: XAR Name: Hello World APP Summary: Hello World APP Authors: RH Last version: 1.0.0-SNAPSHOT License: GPL Installable with Extension Manager: false
ExtensionCode.ExtensionProxyClass (1) Repository ID: ourmaven Repository Type: maven Repository URI: http://ourmaven:8080/archiva/repository/main
ExtensionCode.ExtensionVersionClass (1) Download URL: extension:0000-000%3Ahello-world-app%3A1.0.0-SNAPSHOT/1.0.0-SNAPSHOT?rid=ourmaven id: 0000-000:hello-world-app:1.0.0-SNAPSHOT version: 1.0.0-SNAPSHOT
Do you see any error?
Nop, let me add some log in the listener to understand what's happening in your case.
In the meantime you should try to just resave the page to see if it's a bug in the way the listener is called just after importing the extension.
Richard
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
Did you installed it with Extension Manager ? On Wed, Oct 17, 2012 at 2:07 PM, Thomas Mortagne <[email protected]> wrote:
I just reproduced it on extensions.xwiki.org actually, looking at it.
On Wed, Oct 17, 2012 at 10:56 AM, Thomas Mortagne <[email protected]> wrote:
On Tue, Oct 16, 2012 at 4:58 PM, Richard Hierlmeier <[email protected]> wrote:
Hi Thomas,
Am 12.10.2012 10:59, schrieb Thomas Mortagne:
On Fri, Oct 12, 2012 at 10:51 AM, Richard Hierlmeier <[email protected]> wrote:
...
What are the prequisites for an extension to become installable with the Extension Manager?
Actually the importer generally do everything needed for it to be installable so not sure what's wrong in your case. Do you have any error in the log ?
I did not find any error in the log files related to the extension. Do I have to enable a specific logger?
The required minimum is: * proper id
* a valid download associated to each version
The extension page has three objects attached:
ExtensionCode.ExtensionClass (1): Id: 0000-000:hello-world-app Type: XAR Name: Hello World APP Summary: Hello World APP Authors: RH Last version: 1.0.0-SNAPSHOT License: GPL Installable with Extension Manager: false
ExtensionCode.ExtensionProxyClass (1) Repository ID: ourmaven Repository Type: maven Repository URI: http://ourmaven:8080/archiva/repository/main
ExtensionCode.ExtensionVersionClass (1) Download URL: extension:0000-000%3Ahello-world-app%3A1.0.0-SNAPSHOT/1.0.0-SNAPSHOT?rid=ourmaven id: 0000-000:hello-world-app:1.0.0-SNAPSHOT version: 1.0.0-SNAPSHOT
Do you see any error?
Nop, let me add some log in the listener to understand what's happening in your case.
In the meantime you should try to just resave the page to see if it's a bug in the way the listener is called just after importing the extension.
Richard
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
-- Thomas Mortagne
Here is the issue for reference: http://jira.xwiki.org/browse/XWIKI-8329 On Wed, Oct 17, 2012 at 2:23 PM, Thomas Mortagne <[email protected]> wrote:
Did you installed it with Extension Manager ?
On Wed, Oct 17, 2012 at 2:07 PM, Thomas Mortagne <[email protected]> wrote:
I just reproduced it on extensions.xwiki.org actually, looking at it.
On Wed, Oct 17, 2012 at 10:56 AM, Thomas Mortagne <[email protected]> wrote:
On Tue, Oct 16, 2012 at 4:58 PM, Richard Hierlmeier <[email protected]> wrote:
Hi Thomas,
Am 12.10.2012 10:59, schrieb Thomas Mortagne:
On Fri, Oct 12, 2012 at 10:51 AM, Richard Hierlmeier <[email protected]> wrote:
...
What are the prequisites for an extension to become installable with the Extension Manager?
Actually the importer generally do everything needed for it to be installable so not sure what's wrong in your case. Do you have any error in the log ?
I did not find any error in the log files related to the extension. Do I have to enable a specific logger?
The required minimum is: * proper id
* a valid download associated to each version
The extension page has three objects attached:
ExtensionCode.ExtensionClass (1): Id: 0000-000:hello-world-app Type: XAR Name: Hello World APP Summary: Hello World APP Authors: RH Last version: 1.0.0-SNAPSHOT License: GPL Installable with Extension Manager: false
ExtensionCode.ExtensionProxyClass (1) Repository ID: ourmaven Repository Type: maven Repository URI: http://ourmaven:8080/archiva/repository/main
ExtensionCode.ExtensionVersionClass (1) Download URL: extension:0000-000%3Ahello-world-app%3A1.0.0-SNAPSHOT/1.0.0-SNAPSHOT?rid=ourmaven id: 0000-000:hello-world-app:1.0.0-SNAPSHOT version: 1.0.0-SNAPSHOT
Do you see any error?
Nop, let me add some log in the listener to understand what's happening in your case.
In the meantime you should try to just resave the page to see if it's a bug in the way the listener is called just after importing the extension.
Richard
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
-- Thomas Mortagne
-- Thomas Mortagne
participants (2)
-
Richard Hierlmeier -
Thomas Mortagne