Skip to content

Classloader improvements for execution within IDE #129

@myron0815

Description

@myron0815

I got some different results/errors, when i run openpojo from Maven command line versus running inside Eclipse IDE.
This comes from the fact, that when i execute the unit test with Eclipse internal "run as junit test", Eclipse computes the classpath from the projects output folder, and does not use the generated JAR artifact.
This leads to problem, that "myproject.jar" is not loaded (since the JavaClassPathClassLoader does only load JAR files)

[main] INFO com.openpojo.reflection.java.packageloader.env.JavaClassPathClassLoader - Loading classes from: C:\Users\user\workspace\myproject\target\classes
[main] WARN com.openpojo.reflection.java.packageloader.env.JavaClassPathClassLoader - Failed to load entries from: [C:\Users\user\workspace\myproject\target\classes]

But what about loading the classfiles from an exploded project folder?
Like: myron0815@b986f73

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions