项目构建错误:未知包装:捆绑包

斯蒂芬·福克

我正在尝试构建pdfbox,但似乎无法解决此Maven错误:

Project build error: Unknown packaging: bundle

仅出现在子项目pdfbox和中preflight

我已经安装了m2e连接器和构建帮助器,并且按照此处的建议安装了Tycho,但它也没有帮助。

<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.apache.pdfbox</groupId>
        <artifactId>pdfbox-parent</artifactId>
        <version>2.0.0-SNAPSHOT</version>
        <relativePath>../parent/pom.xml</relativePath>
    </parent>

    <artifactId>pdfbox</artifactId>
    <packaging>bundle</packaging> <!-- Project build error: Unknown packaging: bundle -->

    <!-- ... -->

    <dependencies>
        <!-- ... -->
    </dependencies>

    <build>
       <!-- ... -->
    <pluginManagement>
    <plugins>
        <plugin>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
                <argLine>-Xmx128m</argLine>
                <excludes>
                    <exclude>org/apache/pdfbox/TestAll.java</exclude>
                    <exclude>org/apache/pdfbox/util/TestPDFToImage.java</exclude>
                </excludes>
                <systemPropertyVariables>
                    <java.util.logging.config.file>src/test/resources/logging.properties</java.util.logging.config.file>
                </systemPropertyVariables>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.felix</groupId>
            <artifactId>maven-bundle-plugin</artifactId>
            <extensions>true</extensions>
            <configuration>
                <instructions>
                    <Include-Resource>
                        {maven-resources},
                        META-INF=target/maven-shared-archive-resources/META-INF,
                        org/apache/pdfbox/resources=target/classes/org/apache/pdfbox/resources
                    </Include-Resource>
                </instructions>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.rat</groupId>
            <artifactId>apache-rat-plugin</artifactId>
            <configuration>
                <excludes>
                    <exclude>src/main/resources/org/apache/pdfbox/resources/afm/*</exclude>
                    <exclude>src/main/resources/org/apache/pdfbox/resources/icc/*</exclude>
                    <exclude>src/main/resources/org/apache/pdfbox/resources/glyphlist/glyphlist.txt</exclude>
                    <exclude>src/main/resources/org/apache/pdfbox/resources/glyphlist/zapfdingbats.txt</exclude>
                    <exclude>src/main/resources/META-INF/services/*</exclude>
                    <exclude>src/test/resources/input/rendering/*.ai</exclude>
                    <exclude>src/test/resources/output/*</exclude>
                    <exclude>release.properties</exclude>
                    <exclude>src/test/resources/org/apache/pdfbox/encryption/*.der</exclude>
                    <exclude>src/test/resources/org/apache/pdfbox/encryption/*.pfx</exclude>
                    <exclude>src/test/resources/org/apache/pdfbox/filter/*.bin</exclude>
                </excludes>
            </configuration>
        </plugin>
    </plugins>
    </pluginManagement>
    </build>

</project>

有人知道如何解决这个问题吗?

罗伯特·斯科特

移动maven-bundle-plugin之外pluginManagementMaven只会寻找<build><plugins>并使用pluginManagement其他信息。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Android构建错误:未知的包过滤器

MonoDevelop错误:未知的MSBuild故障。请尝试再次构建项目

电子生成器在 macos 上构建 linux 包失败 - 错误:未知目标:构建

捆绑包标识符生成错误xamarin构成ios和ios扩展项目

构建错误:未知字段“ HideWindow”

使用Cocoapods构建Xcode项目时,Jenkins返回“未知错误-1 = ffffffffffffffffff”

Pod安装后,FirebaseUI Pod的Xcode项目构建错误“选择器'labelColor'的未知类方法”

在构建供应商捆绑包时,将超级测试添加到Aurelia会导致错误

无效的splitapkbundle。捆绑包目标未知语言:[gr]

反应项目构建错误

Maven:“未知包装:bundle”来自依赖包装的错误

错误ITMS-90279:无效的捆绑包

Crafter 3 Gradle捆绑包错误

捆绑包安装中的Heroku Ruby错误

如何构建从另一个入口点捆绑包导入模块的webpack捆绑包?

构建捆绑包与生成签名捆绑包apk之间的主要区别是什么?

生成签名的捆绑包:构建捆绑包文件时出错。“其他”具有不同的根源

新项目上的Rails捆绑错误

捆绑包XYZ无法解析。原因:缺少约束条件:进口包装:ABC;无头RCP独立版中的version =“ 1.0.0”错误

如何使用webpack构建缩小和未压缩的捆绑包?

将文件添加到流星构建中的捆绑包

在Android Studio 3.2中使用构建捆绑包选项

如何修复“ Gradle构建无法产生Android捆绑包”。在Flutter

Xamarin-在某些构建配置中包括设置捆绑包

Maven + OSGi捆绑包构建复杂性

Webpack监视检测到更改,但未构建捆绑包

从不带xcworkspace的.APP捆绑包构建IPA

用于生产缺失的节点模块捆绑包的Nrwl Nx构建

Jekyll在捆绑包问题上的GitLab构建中断