keycloak安装指南说onc必须安装tomcat8-adapter发行版,并且可以通过maven执行此操作。
maven坐标是
<dependency>
<!-- Keycloak Tomcat8 adapter -->
<groupId>org.keycloak</groupId>
<artifactId>keycloak-tomcat8-adapter-dist</artifactId>
<version>3.4.3.Final</version>
</dependency>
此版本的maven存储库还包含zip和tar.gz格式的工件。但是,当尝试下载工件时,我收到错误
Unable to find artifact.: Failure to find org.keycloak:keycloak-tomcat8-adapter-dist:jar:3.4.3.Final
我的maven配置如下所示。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-keycloak</id>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-tomcat8-adapter-dist</artifactId>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
它有什么问题?
答案 0 :(得分:0)
我必须添加一个type元素,指定工件的类型。
<artifactItem>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-tomcat8-adapter-dist</artifactId>
<type>tar.gz</type>
</artifactItem>