You can build without using tests using: mvn clean install -DskipTests
You cannot use the old deprecated method: mvn clean install -Dmaven.test.skip The new method generates the test jars but does not run the tests, ensuring that the dependency tree works. Cheers, Peter On 04/10/2013, at 3:59 AM, Subash Chaturanga <[email protected]> wrote: > Hi folks, > I gave it a try again, but building with the tests. Now the build is > successful. Apparently Marmotta cannot build without tests. Seems, it's > referring some test jars at build time. > > > > On Thu, Oct 3, 2013 at 11:11 PM, Subash Chaturanga <[email protected]>wrote: > >> >> Hi all, >> I am getting following build failure when building the source code at [1] >> . >> FYI: I am using maven 3 for building the source and building without >> tests as per docs. I hope it's OK. >> >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 47.848s >> [INFO] Finished at: Thu Oct 03 22:57:26 IST 2013 >> [INFO] Final Memory: 81M/803M >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] Failed to execute goal on project kiwi-transactions: Could not >> resolve dependencies for project >> org.apache.marmotta:kiwi-transactions:jar:3.1.0-incubating-SNAPSHOT: Could >> not find artifact >> org.apache.marmotta:kiwi-triplestore:jar:tests:3.1.0-incubating-SNAPSHOT in >> apache.releases ( >> https://repository.apache.org/content/repositories/releases/) -> [Help 1] >> [ERROR] >> [ERROR] To see the full stack trace of the errors, re-run Maven with the >> -e switch. >> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >> [ERROR] >> [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/DependencyResolutionException >> [ERROR] >> [ERROR] After correcting the problems, you can resume the build with the >> command >> [ERROR] mvn <goals> -rf :kiwi-transactions >> >> >> [1] - https://git-wip-us.apache.org/repos/asf/incubator-marmotta.git >> >> >> -- >> Subash Chaturanga >> Sri Lanka >> >> Blog - http://subashsdm.blogspot.com/ >> Twitter - http://twitter.com/subash89 > > > > -- > Subash Chaturanga > Department of Computer Science & Engineering > University of Moratuwa > Sri Lanka > > Blog - http://subashsdm.blogspot.com/ > Twitter - http://twitter.com/subash89
