I am writing a Java project using Eclipse, Maven.
In the "Run configurations" wizard of Eclipse I am running the following goals
-e clean install
-e clean compile
-e clean -Dtest=MyJUnitTest test
Since I am running these configurations quite frequently, instead of three configurations, I am thinking it will be more convenient to be able to write one.
-e clean compile // -Dtest=MyJUnitTest test
With //, I was hoping to tell Maven not to execute anything written after //. However, this does not seem to work and Maven complains about //. Is there any other delimiter used for commenting out in Maven? Is there are a facility of commenting out parts of maven command at command prompt at all?
尝试这样的事情:
call mvn clean install -Dmaven.test.skip=true % This is a comment %
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.