I have been adding the flag "-Dmaven.test.skip=true" to my builds:

   mvn clean install -P developer,systemvm -Dmaven.test.skip=true

However, I was getting the error:

[ERROR] Failed to execute goal on project cloud-framework-cluster:
Could not resolve dependencies for project
org.apache.cloudstack:cloud-framework-cluster:jar:4.4.0-SNAPSHOT:
Could not find artifact
org.apache.cloudstack:cloud-api:jar:tests:4.4.0-SNAPSHOT in
sonatype-snapshots
(https://oss.sonatype.org/content/repositories/snapshots/) -> [Help 1]

I was surprised that "mvn clean install -P developer,systemvm" has a
dependency on tests being run.  It looks as if this commit [1] added
the dependency on tests from the maven install goal.

I guess either the dependency needs to be removed, or the docs need to
be updated to state that the maven.test.skip flag must not be set to
true [2]?

---
[1] 
https://github.com/apache/cloudstack/commit/f5e5b39c9bc8d0e719dbb27cb8228b868c6f726f
[2] 
https://github.com/apache/cloudstack-docs/blob/master/rtd/source/developer_guide.rst#installing-from-source

Reply via email to