I'm using Intellij with Maven. I created a java program with an API interface. When I add it to maven, it seems to work because it even recommends me the Java API classes, but when I try to compile it, it says my package doesn't exists.
package htt.layeredstructures does not exist
Intellij recommends me using the class I imported from my .jar
Am I missing something?
The process I did was the following one:
- File
- Project Structure
- Modules
- Dependencies
- add
- JARs or directories
- Clicked the jar file and ok.
I also added it to my pom.xml like this:
        <dependency>
            <groupId>htt</groupId>
            <artifactId>LayeredStructures</artifactId>
            <version>1.0-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
And it matches with the pom.xml of the provider program (the API one)
    <groupId>htt</groupId>
    <artifactId>LayeredStructures</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>
