Skip to content

mvn project structure to avoid classpath errors #10

@mohadelrezk

Description

@mohadelrezk

when running the service from command line I faced this error:

SEVERE: java.io.FileNotFoundException: property file 'config.prop' not found in the classpath
java.io.FileNotFoundException: property file 'config.prop' not found in the classpath

possibly you will not face this if you are running the service from IDE.

the solution was to rearrange the folder structure to conform with mvn structure:

src>main>java>{all packages and sources}
src>main>resources {here mvn expects to find the config.prop file}

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