-
Notifications
You must be signed in to change notification settings - Fork 29
Build fails when Maven tries to pull apis-bom during build : apis-bom:3.0.0 not found in Maven Central #74
Description
Description
The Maven build fails while building apis-common due to a non-resolvable import POM and a missing JUnit version.
##Bug Description
The Maven build fails while building the apis-common module due to an unresolved BOM dependency and a missing version for the JUnit dependency.
The project attempts to import jp.co.sony.csl.dcoes.apis:apis-bom:3.0.0, but this artifact is not available in Maven Central. As a result, dependency version management is not applied, causing the JUnit dependency to fail due to a missing version.
##Expected Behavior
The apis-common module should build successfully with all dependencies resolved.
##Actual Behavior
The build fails with the following errors:
Non-resolvable import POM:
Could not find artifact jp.co.sony.csl.dcoes.apis:apis-bom:pom:3.0.0
in central (https://repo.maven.apache.org/maven2)
'dependencies.dependency.version' for junit:junit:jar is missing.
Error Logs
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/jp/co/sony/csl/dcoes/apis/apis-bom/3.0.0/apis-bom-3.0.0.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Could not find artifact jp.co.sony.csl.dcoes.apis:apis-bom:pom:3.0.0 in central (https://repo.maven.apache.org/maven2) @ line 17, column 19
[ERROR] 'dependencies.dependency.version' for junit:junit:jar is missing. @ line 51, column 17
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR] The project jp.co.sony.csl.dcoes.apis:apis-common:3.0.0 (/home/gopika/APIS/apis-common/pom.xml) has 2 errors
[ERROR] Non-resolvable import POM: Could not find artifact jp.co.sony.csl.dcoes.apis:apis-bom:pom:3.0.0 in central (https://repo.maven.apache.org/maven2) @ line 17, column 19 -> [Help 2]
[ERROR] 'dependencies.dependency.version' for junit:junit:jar is missing. @ line 51, column 17
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
##Affected Module
apis-common
OS: Ubuntu (WSL)