model-citizen icon indicating copy to clipboard operation
model-citizen copied to clipboard

Incorrect dependencies.

Open fireboy1919 opened this issue 2 years ago • 3 comments

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>

fireboy1919 avatar Apr 28 '22 17:04 fireboy1919

Can you post the build error?

mguymon avatar Apr 28 '22 18:04 mguymon

Updated with more specific information.

fireboy1919 avatar Apr 29 '22 01:04 fireboy1919

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?

mguymon avatar Apr 29 '22 14:04 mguymon