maven - In what lifecycle point are tests ignored when building? -


i trying understand maven build lifecycle when regarding tests: let's have project class in src/main folder , 1 in src/test. when run mvn install, get's compiled, tested, packaged , installed.

until thought maven not package tests in snapshot, because not "production" code. true? in case, when maven ignores test files?

what said maven lifecycle true. "main" phases include:

to answer more precisely, it's not maven ignores test classes, default, packaging process considers main classes. can configure package test classes maven-jar-plugin:test-jar goal inside attached artifact.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -