Master build failed if "-DskipTests"

549 views
Skip to first unread message

Suibin Zhang

unread,
Mar 2, 2016, 12:32:08 PM3/2/16
to onos...@onosproject.org
Anyone ran into an issue the build fails if skipTests:
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR]

But without skipTests, the build works.

--
Suibin Zhang
On.Lab

Suibin Zhang

unread,
Mar 2, 2016, 12:35:13 PM3/2/16
to onos...@onosproject.org
Actually, without skipTests, still failed the same way. 

Suibin Zhang

unread,
Mar 2, 2016, 12:37:07 PM3/2/16
to onos...@onosproject.org
Oops: correction: 

skipTests - build failed;
w/o skipTests - build successful.

Ray Milkey

unread,
Mar 2, 2016, 12:37:40 PM3/2/16
to Suibin Zhang, onos...@onosproject.org
What does your command line look like?

--
You received this message because you are subscribed to the Google Groups "ONOS Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-dev+u...@onosproject.org.
To post to this group, send email to onos...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-dev/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-dev/CAPDeDrAMcNDyd-ij2_MmPmem8ZjHSLPkZENnv0S1zbx8%3D4drYQ%40mail.gmail.com.

Yuta Higuchi

unread,
Mar 2, 2016, 12:44:36 PM3/2/16
to Suibin Zhang, onos...@onosproject.org
What's the complete mvn command you're issuing?

Something like:
 $ mvn clean install -DskipTests
should work,
but
 $ mvn -DskipTests
probably will fail. There's no goal (e.g., 'clean', 'install') specified.




On Wed, Mar 2, 2016 at 9:32 AM, Suibin Zhang <sui...@onlab.us> wrote:

--
You received this message because you are subscribed to the Google Groups "ONOS Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-dev+u...@onosproject.org.
To post to this group, send email to onos...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-dev/.

Suibin Zhang

unread,
Mar 2, 2016, 12:45:33 PM3/2/16
to Ray Milkey, onos...@onosproject.org
Hmmm.. maybe it is intermittent.

We use "mvn clean install -DskipTests" in our nightly tests. last two build failed.  Then after I build with "mvn clean install" successfully,  "mvn clean install -DskipTests" also succeeded.

BTW, when it failed, I got the following msg:

##### build ONOS skip unit tests ######
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.onosproject:onlab-junit:bundle:1.5.0-SNAPSHOT
[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-checkstyle-plugin is missing. @ org.onosproject:onos:1.5.0-SNAPSHOT, /home/admin/onos/pom.xml, line 773, column 21
[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-pmd-plugin is missing. @ org.onosproject:onos:1.5.0-SNAPSHOT, /home/admin/onos/pom.xml, line 781, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.onosproject:onlab-misc:bundle:1.5.0-SNAPSHOT
[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-checkstyle-plugin is missing. @ org.onosproject:onos:1.5.0-SNAPSHOT, /home/admin/onos/pom.xml, line 773, column 21
[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-pmd-plugin is missing. @ org.onosproject:onos:1.5.0-SNAPSHOT, /home/admin/onos/pom.xml, line 781, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.onosproject:yangutils-maven-plugin:maven-plugin:1.0.0-SNAPSHOT
[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-checkstyle-plugin is missing. @ org.onosproject:onos:1.5.0-SNAPSHOT, /home/admin/onos/pom.xml, line 773, column 21
[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-pmd-plugin is missing. @ org.onosproject:onos:1.5.0-SNAPSHOT, /home/admin/onos/pom.xml, line 781, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.onosproject:onlab-osgi:bundle:1.5.0-SNAPSHOT
Reply all
Reply to author
Forward
0 new messages