Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect dependencies. #40

Open
fireboy1919 opened this issue Apr 28, 2022 · 3 comments
Open

Incorrect dependencies. #40

fireboy1919 opened this issue Apr 28, 2022 · 3 comments

Comments

@fireboy1919
Copy link

fireboy1919 commented Apr 28, 2022

commons-lang is required for this to run even though this isn't listed as a dependency. If this is not included, the latest build will fail.

Build stacktrace:

java.lang.NoClassDefFoundError: org/apache/commons/lang/reflect/ConstructorUtils
        at com.tobedevoured.modelcitizen.ModelFactory.registerBlueprint(ModelFactory.java:420)
        at com.tobedevoured.modelcitizen.ModelFactory.registerBlueprint(ModelFactory.java:194)
        at com.tobedevoured.modelcitizen.ModelFactory.setRegisterBlueprints(ModelFactory.java:153)
        at com.tobedevoured.modelcitizen.ModelFactory.setRegisterBlueprintsByPackage(ModelFactory.java:140)
        at com.fr.receipt.repo.core.BlueprintUtil.getBlueprint(BlueprintUtil.java:17)
        at com.fr.receipt.repo.core.ReceiptFactoryImplTest.testScrubReceipt(ReceiptFactoryImplTest.java:48)

This is resolved if I add this to my maven file:

        <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
            <version>2.6</version>
            <scope>test</scope>
        </dependency>
@mguymon
Copy link
Owner

mguymon commented Apr 28, 2022

Can you post the build error?

@fireboy1919
Copy link
Author

Updated with more specific information.

@mguymon
Copy link
Owner

mguymon commented Apr 29, 2022

commons-lang is definitely a dependency in the pom - https://search.maven.org/artifact/com.tobedevoured/modelcitizen/0.6.0/jar

Are you using a recent version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants