I installed a jar with the library I needed in maven local with the following command:
mvn install:install-file -Dfile=/home/IdeaProjects/webstruct/build/libs/webstruct-0.0.2.jar -DgroupId=ru.xpendence -DartifactId=webstruct -Dversion=0.0.2 -Dpackaging=jar -DgeneratePom=true
Everything seems to be OK, the library appeared in the .m2. Next, I added a dependency to build.gradle
:
compile group: 'ru.xpendence', name: 'webstruct',version: '0.0.2'
But when I try to apply classes from the library, for example, to inherit from abstract classes, the desired class appears in the import:
But when I import it, the import does not appear, the class tries to be imported as follows, and, as we see, IDEA cannot recognize the package:
At the same time, the library is in dependencies:
Tell me, what's the problem? Jarnik collected through the build.