Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-18181

The Provision Maven Plugin has unmet dependencies

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      In order to function properly, the Maven Provision plugin depends on org.xwiki.platform:xwiki-platform-wiki-default, which is only marked as test dependency in the plugin.

      As such, invoking the plugin in a simple project will raise the following error :

      [ERROR] Failed to execute goal org.xwiki.platform:xwiki-platform-tool-provision-plugin:12.10.1:install (install) on project auto-deploy: Failed to install Extension(s) into XWiki: Failed to lookup component [org.xwiki.rest.internal.ModelFactory] identified by type [class org.xwiki.rest.internal.ModelFactory] and hint [null]: Can't find descriptor for the component with type [interface org.xwiki.wiki.descriptor.WikiDescriptorManager] and hint [default] -> [Help 1] 

      Here is the POM that was used in order to get this error :

      <project>
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.xwiki.tests</groupId>
        <artifactId>test-deploy</artifactId>
        <version>1</version>
        <build>
          <plugins>
            <plugin>
              <groupId>org.xwiki.platform</groupId>
              <artifactId>xwiki-platform-tool-provision-plugin</artifactId>
              <version>12.10.1</version>
              <configuration>
                <xwikiRESTURL>http://localhost:8080/xwiki/rest</xwikiRESTURL>
                <username>Admin</username>
                <password>admin</password>
                <extensionIds>
                  <extensionId>
                    <id>com.xwiki.cookie-consent:application-cookie-consent</id>
                    <version>1.2.4</version>
                  </extensionId>
                </extensionIds>
              </configuration>
              <executions>
                <execution>
                  <id>install</id>
                  <goals>
                    <goal>install</goal>
                  </goals>
                </execution>
              </executions>
            </plugin>
          </plugins>
        </build>
      </project>
      

      Attachments

        Activity

          People

            caubin Clément Aubin
            caubin Clément Aubin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: