add to pom.xml
...
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
...
<dependency>
<groupId>com.github.sberg-net.JdbcGenericDao</groupId>
<artifactId>quarkus</artifactId>
<version>1.2.1</version>
</dependency>
...
<plugins>
<plugin>
<groupId>io.smallrye</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<version>3.5.3</version>
<executions>
<execution>
<id>make-index</id>
<goals>
<goal>jandex</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>- repository: https://jitpack.io/ is the maven artifact repository
- plugin:
jandex-maven-pluginis need to scan external classes for quarkus annotations and include them in to lifecycle.
add package to scan into application.yaml
quarkus:
index-dependency:
JdbdGenericDao:
group-id: com.github.sberg-net.JdbcGenericDaooder application.properties
quarkus.index-dependency.JdbdGenericDao.group-id: com.github.sberg-net.JdbcGenericDao
JdbcDao scan into application.yaml
jdbcGenericDao:
scanPackage: net.sberg.eldix4kimoder application.properties
jdbcGenericDao.scanPackage: net.sberg.eldix4kim
net.sberg.eldix4kimis an example package name