I have some Maven plugins configured in my pom.xml. I only want to execute these plugins if the tests are being run (tests may be skipped using either -Dmaven.test.skip=true
or -DskipTests
).
One of these plugins is bound to the process-classes
build lifecycle phase and the other is bound to the pre-integration-test
phase.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…