wso2-extensions / apim-km-pingfederate

Integrating API Manager with PingFederate Authorization Server
Apache License 2.0
0 stars 10 forks source link

MVN Compile Errors #5

Open jjkirby opened 3 years ago

jjkirby commented 3 years ago

Description:

Try to do a mvn compile.

Get the error:

[INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.km.ext.pingfederate:pingfederate.key.manager:bundle:1.0.4-SNAPSHOT [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.impl:jar -> duplicate declaration of version (?) @ line 78, column 21 [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.google.code.gson:gson:jar -> duplicate declaration of version ${gson.version} @ org.wso2.km.ext.pingfederate:pingfederate.auth.client:1.0.4-SNAPSHOT, /Users/john.kirby/Documents/WSO2/env/development/edge/apim/kubernetes-apim/apim-km-pingfederate/pom.xml, line 125, column 25 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.km.ext.pingfederate:pingfederate.auth.client:pom:1.0.4-SNAPSHOT [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.google.code.gson:gson:jar -> duplicate declaration of version ${gson.version} @ line 125, column 25 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.

Suggested Labels:

Suggested Assignees:

Affected Product Version:

OS, DB, other environment details and versions:

Java Version: ava version "13.0.1" 2019-10-15 Java(TM) SE Runtime Environment (build 13.0.1+9) Java HotSpot(TM) 64-Bit Server VM (build 13.0.1+9, mixed mode, sharing)

Maven Version: Maven home: /Users/john.kirby/Documents/apache-maven-3.8.1 Java version: 13.0.1, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-13.0.1.jdk/Contents/Home Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"

Steps to reproduce: run: mvn compile

Related Issues:

None

jjkirby commented 3 years ago

Changed to JDK 1.8 and got this error:

Failed to execute goal on project pingfederate.key.manager: Could not resolve dependencies for project org.wso2.km.ext.pingfederate:pingfederate.key.manager:bundle:1.0.4-SNAPSHOT: Failed to collect dependencies at org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.impl:jar:6.7.205 -> org.wso2.carbon.analytics-common:org.wso2.carbon.event.output.adapter.core:jar:5.2.26 -> org.wso2.carbon:org.wso2.carbon.core:jar:4.5.3 -> org.wso2.carbon:javax.cache.wso2:jar:4.5.3 -> org.wso2.carbon:org.wso2.carbon.utils:jar:4.5.3 -> org.ops4j.pax.logging:pax-logging-log4j2:jar:1.11.0 -> org.knopflerfish.kf6:log-API:jar:5.0.0: Failed to read artifact descriptor for org.knopflerfish.kf6:log-API:jar:5.0.0: Could not transfer artifact org.knopflerfish.kf6:log-API:pom:5.0.0 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/, default, releases+snapshots), wso2.releases (http://maven.wso2.org/nexus/content/repositories/releases/, default, releases+snapshots), wso2.snapshots (http://maven.wso2.org/nexus/content/repositories/snapshots/, default, snapshots), knopflerfish (http://resources.knopflerfish.org/repo/maven2/release, default, releases+snapshots)] -> [Help 1]

jjkirby commented 3 years ago

Resolved by the following: