使用扩展Maven插件的问题

发布于 2025-02-12 21:43:39 字数 4473 浏览 1 评论 0原文

我遵循了这一点教程创建一个JIRA的XIP,以便能够安装到离线Xwiki部署。我成功地让Maven为Jira建造了XIP;但是,当我尝试使用另一个扩展程序重新创建此过程时,在这种情况下, mediawiki ,我得到了一个未知的包装错误。

[错误] [错误]处理POMS时遇到了一些问题: [错误]未知包装:XIP @ Line 30,第14列 [警告]报告配置应在部分中进行,而不是在Maven Site-Plugin中作为ReportPlugins参数进行。 @ @ [错误]构建无法读取1个项目 - > [帮助1] [错误] [错误]项目org.xwiki.contrib.mediawiki:MediaWiki-XML-XIP:1.13.5(/home/administrator/mediawiki/mediawiki-xml-xip/pom.xml)有1个错误 [错误]未知包装:XIP @ Line 30,第14列 [错误] [错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行maven。 [错误]使用-X开关重新运行Maven以启用完整的调试日志记录。 [错误] [错误]有关错误和可能解决方案的更多信息,请阅读以下文章: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/projectbuildingexception

此错误在此调试线上被抛出。

查找classRealm的包装XIP的生命周期映射[project> org.xwiki.contrib.mediawiki:Mediawiki-xml-xip:1.13.5:1.13.5,parent:classRealm:classRealm [maven.api,parent parent,null:null:null:null]]

>/p>>/p>>/p>>/p>>/p>>/p>>/p>>/p>>/p>>/p>>/p>>/p>

my pom.xml -XML扩展,我正在尝试将其构建到XIP看起来像这样。

<!--
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->

<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.contrib.mediawiki</groupId>
    <artifactId>mediawiki</artifactId>
    <version>1.13.5</version>
  </parent>
  <artifactId>mediawiki-xml-xip</artifactId>
  <name>MediaWiki - XIP</name>
  <packaging>xip</packaging>
  <description>XIP for offline installation of MediaWiki XML</description>
  <dependencies>
    <dependency>
      <groupId>org.xwiki.contrib.mediawiki</groupId>
      <artifactId>mediawiki-xml</artifactId>
      <version>${project.version}</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 XWiki Standard 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>

我知道扩展名Maven插件与我的问题有关,我不确定是否需要下载其他内容或移动POM的位置。这种POM与Jira的效果非常好,当我复制POM的构建部分上没有更改。

我的帮助不太精通Maven,因此非常感谢。再次感谢!

I've followed this tutorial to create an XIP of jira to be able to be installed to a offline xwiki deployment. I was successful in getting maven to build the XIP for jira; however, when I try to recreate this process with another extension, in this case MediaWiki, I get an unknown packaging error.

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unknown packaging: xip @ line 30, column 14
[WARNING] Reporting configuration should be done in section, not in maven-site-plugin as reportPlugins parameter. @
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.xwiki.contrib.mediawiki:mediawiki-xml-xip:1.13.5 (/home/administrator/mediawiki/mediawiki-xml-xip/pom.xml) has 1 error
[ERROR] Unknown packaging: xip @ line 30, column 14
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

This error is thrown after this DEBUG line.

Looking up lifecycle mappings for packaging xip from ClassRealm[project>org.xwiki.contrib.mediawiki:mediawiki-xml-xip:1.13.5, parent: ClassRealm[maven.api, parent: null]]

My pom.xml for the mediawiki-xml extension, that I am trying to build to an XIP looks like this.

<!--
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->

<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.contrib.mediawiki</groupId>
    <artifactId>mediawiki</artifactId>
    <version>1.13.5</version>
  </parent>
  <artifactId>mediawiki-xml-xip</artifactId>
  <name>MediaWiki - XIP</name>
  <packaging>xip</packaging>
  <description>XIP for offline installation of MediaWiki XML</description>
  <dependencies>
    <dependency>
      <groupId>org.xwiki.contrib.mediawiki</groupId>
      <artifactId>mediawiki-xml</artifactId>
      <version>${project.version}</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 XWiki Standard 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>

I know that the Extension Maven Plugin has something to do with my issue, I'm not sure if I need to download something else or move the location of my pom. This pom worked perfectly fine with jira, no changes where made on the build portion of the pom when I copied it over.

Help is greatly appreciated as I am not well versed in Maven. Thanks again!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文