java - using maven pom while creating jar:test-jar some times it says JAR will be empty - no content was marked for inclusion -


With test classes jar: celebration: testing-jar sometimes during jar It says:

There is no test class in test-jar, but sometimes the correct test jar is made with all test classes.

To test the test module without exam classes, I need to mention in my pom (compiled only)

"post- Text "itemprop =" text ">

This can happen when classes are not compiled in their output directory. For example, if you select mvn install (whichever compile triggers the phase) and then mvn jar: test-jar

/ code> you will get a jar with test classes, but if you type Run mvn clean and then mvn jar: test-jar will get a message about empty jar and the generated jar will be empty.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -