These are more for my own reference, but may well help any readers as well, specifically they relate to using maven with the maven plugin for eclipse.

Maven “Package”
Will deploy the application to you’re local target directory only.

Maven “Install”
Will deploy the application to you’re local target directory AND to you’re local .m2/repository

Ignoring test failures when building
Project -> Right Click -> Run As -> Maven Build…
“Goals” => package -Dmaven.test.failure.ignore=true
>Run
(swap package for you’re goal)

Skipping tests all together when building.
Project -> Right Click -> Run As -> Maven Build…
“Goals” => package -Dmaven.test.skip=true
>Run
(swap package for you’re goal)

Additional non java files are not deployed (needed properties, xml files, beans etc)
Project -> Right Click -> Run As -> Maven Clean
Eclipse File Menu -> Project -> Clean
then build again and all should be fixed.

I’ll add more to the list as I find them.



Leave a Reply