Looks for help about building source with eclipse and maven


#1

when I followed the readme file to build the source code , it throws error information as follows:
[ERROR]
The project com.opengamma.platform:og-analytics:2.1.0
(D:\source\OG-Platform-master\projects\OG-Analytics\pom.xml) has 1 error
[ERROR] ‘dependencies.dependency.version’ for org.testng:testng:jar is missing. @ line 50, column 17

it
looks like the pom file is not correct ,but I don’t know how to fix it.
Does any engineer run into this porblem? looks forward for your help.


#2

The error comes from the Maven build system and is not one that we see. Perhaps you are running in an environment where you cannot access the Maven Central repository (due to firewall issues?). Or perhaps the maven Central repository was down temporarily when you tried to access it.

Try running the maven command again but with the “-U” option, which will requery Maven Central.

Beyond that, use “mvn help:effective-pom” to dump out the whole project definition file, check that there is a version number for testng, and check it exists here: http://search.maven.org/#search|gav|1|g%3A"org.testng"%20AND%20a%3A"testng"