# Offline install of Macros and Applications

**URL:** <https://forum.xwiki.org/t/offline-install-of-macros-and-applications/10651>\
**Category:** Help / Discuss\
**Tags:** offline, contrib, xwiki, macros, application\
**Created:** [July 7, 2022, 4:57pm UTC](https://forum.xwiki.org/t/offline-install-of-macros-and-applications/10651 "2022-07-07T16:57:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TransonicFrame](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@TransonicFrame](https://forum.xwiki.org/u/TransonicFrame)\
**Post date:** [July 7, 2022, 4:57pm UTC](https://forum.xwiki.org/t/offline-install-of-macros-and-applications/10651/1 "2022-07-07T16:57:04Z")

</div>

Is there a way to install Macros and Applications (along with all of their dependencies) to a Xwiki instance offline. I was able to get this working with extensions by packaging them to a XIP using maven; however, the process does not work the same because Macros and Applications do not contain .jar files, but rather .xar files.

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [July 8, 2022, 6:29am UTC](https://forum.xwiki.org/t/offline-install-of-macros-and-applications/10651/2 "2022-07-08T06:29:47Z")

</div>

> [@TransonicFrame](#):
>
> the process does not work the same because Macros and Applications do not contain .jar files, but rather .xar files

The type of extension does not have any impact on XIP packaging, the Standard Flavor XIP contains both types, for example.

---

<div class="post-metadata">

**Author:** ![TransonicFrame](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@TransonicFrame](https://forum.xwiki.org/u/TransonicFrame)\
**Post date:** [July 8, 2022, 2:59pm UTC](https://forum.xwiki.org/t/offline-install-of-macros-and-applications/10651/3 "2022-07-08T14:59:20Z")

</div>

Interesting, I don’t know why I can’t get it to work then. I was using your example that you provided me with for the MediaWiki Extension on Tuesday, but it complains that it can’t find a .jar file. For example if, I am trying to create a XIP for the application-filemanager. I created this pom:

```auto
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-distribution</artifactId>
    <!-- The version of XWiki where the extension is planned to be installed -->
    <version>13.10.7</version>
  </parent>
  <groupId>mygroupid</groupId>
  <artifactId>application-filemanager-xip</artifactId>
  <packaging>xip</packaging>
  <properties>
    <!-- It's expected for some enforcer rules to fail with a dependency that was not designed to be built with this version of XWiki -->
    <xwiki.enforcer.skip>true</xwiki.enforcer.skip>
  </properties>
  <dependencies>
    <!-- The extension to package along with its dependencies-->
    <dependency>
      <groupId>org.xwiki.contrib.application-filemanager</groupId>
      <artifactId>application-filemanager-ui</artifactId>
      <version>2.0.8</version>
    </dependency>
  </dependencies>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.xwiki.commons</groupId>
          <artifactId>xwiki-commons-tool-extension-plugin</artifactId>
          <version>${commons.version}</version>
          <configuration>
            <coreExtensions>
              <!-- We exclude what is already in the WAR -->
              <coreExtension>
                <groupId>org.xwiki.platform</groupId>
                <artifactId>xwiki-platform-distribution-war-dependencies</artifactId>
                <version>${platform.version}</version>
                <type>pom</type>
              </coreExtension>
            </coreExtensions>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
</project>

```

The warning I get is:

> [WARNING] The POM for org.xwiki.contrib.application-filemanager:application-filemanager-ui:jar:2.0.8 is missing, no dependency information available

And then I get this error:

> [ERROR] Failed to execute goal on project application-filemanager-xip: Could not resolve dependencies for project mygroupid:application-filemanager-xip:xip:13.10.7: Failure to find org.xwiki.contrib.application-filemanager:application-filemanager-ui:jar:2.0.8 in [Index of /groups/public](https://nexus.xwiki.org/nexus/content/groups/public) was cached in the local repository, resolution will not be reattempted until the update interval of xwiki-releases has elapsed or updates are forced

I’m assuming my issue is that I’m failing to point the pom to the correct artifact/group for the dependency, but I am not sure how to figure that out by looking through GitHub and the sources poms. Any help is much appreciated!

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [July 8, 2022, 4:39pm UTC](https://forum.xwiki.org/t/offline-install-of-macros-and-applications/10651/4 "2022-07-08T16:39:32Z")

</div>

That’s because you told Maven that `application-filemanager-ui` is a JAR file (because `jar` is the default type in Maven), for a XAR you need to indicate `<type>xar</type>`.

---

<div class="post-metadata">

**Author:** ![TransonicFrame](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@TransonicFrame](https://forum.xwiki.org/u/TransonicFrame)\
**Post date:** [July 8, 2022, 5:11pm UTC](https://forum.xwiki.org/t/offline-install-of-macros-and-applications/10651/5 "2022-07-08T17:11:59Z")

</div>

That will definitely do it. Thanks for your help, apologizes in my lack of knowledge.
