Skip to content

Cannot build project - Bundlor class ManifestWriterFactory not found #948

@henriquevcosta

Description

@henriquevcosta

I'm trying to build the project (mvn clean install) and I get the following error.

[INFO] --- org.eclipse.virgo.bundlor.maven:1.1.2.RELEASE:bundlor (bundlor) @ docker-java ---
[WARNING] Error injecting: org.eclipse.virgo.bundlor.maven.plugin.BundlorMojo
java.lang.NoClassDefFoundError: org/eclipse/virgo/bundlor/support/manifestwriter/ManifestWriterFactory
at java.lang.Class.getDeclaredConstructors0(Native Method)

The only way I could get it to build was to change the declaration of the bundlor plugin to have the following two dependencies:

<plugin>
    <groupId>org.eclipse.virgo.bundlor</groupId>
    <artifactId>org.eclipse.virgo.bundlor.maven</artifactId>
    <version>${maven-bundlor-plugin.version}</version>
    <dependencies>
        <dependency>
            <groupId>org.eclipse.virgo.bundlor</groupId>
            <artifactId>org.eclipse.virgo.bundlor</artifactId>
            <version>1.1.2.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>org.eclipse.virgo.bundlor</groupId>
            <artifactId>org.eclipse.virgo.bundlor.blint</artifactId>
            <version>1.1.2.RELEASE</version>
        </dependency>
    </dependencies>
    <executions>
        <execution>
            <id>bundlor</id>
            <goals>
                <goal>bundlor</goal>
            </goals>
            <configuration>
                <failOnWarnings>true</failOnWarnings>
            </configuration>
        </execution>
    </executions>
</plugin>

Is there any additional setup that should be in the building instructions but isn't?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions