Reputation: 96
I have been passed a maven project without much documentation and while trying to compile it with "mvn compile" i am running into this error:
Could not resolve dependencies for project de.companyName:tcui-web:war:2.1.0: Could not find artifact de.companyName:spring-commons-config:jar:0.0.1-SNAPSHOT ...
The META-INF/MANIFEST.MF file doesn't seem to give me any clues as to where the dependency could be satisfied from.
Manifest-Version: 1.0
Implementation-Title: TCUI
Implementation-Version: test-version
Built-By: REDACTED
Created-By: Apache Maven 3.2.3
Implementation-URL: tc.company.de
url: tc.company.de
version: test-version
mode: development
Implementation-Vendor: Company
revision: test-revision
Implementation-Vendor-Id: de.company
Build-Jdk: 1.7.0_67
Archiver-Version: Plexus Archiver
bambooBuild: 000
What possible ways does MVN give me to locate those dependencies and satisfy them manually?
Apart from the manifest file, where could i find specific urls / paths to the dependencies?
Am I maybe approaching this issue from a completely incorrect direction due to my lack of knowledge about java?
Upvotes: 1
Views: 120
Reputation: 18002
Maven resolves dependencies by looking them up in one or more repositories. A Maven repository is an archive containing artifacts (usually jar files with some metadata). By default, Maven will use the Maven Central repository, which is a public repository that contains most popular open source libraries. Judging by the name of your specific dependency de.companyName:tcui-web:war:2.1.0
is probably an internal closed-source dependency, rather than a public one. This means it is not stored in Maven Central, which is why you're receiving that error. Maven is looking for your artifact but probably in the wrong place. So how do you solve this? There are two options:
Upvotes: 2