How to test a project created by Maven archetype

I created an archetype using Maven which builds the project. To test a project, I usually have to generate the project and run mvn clean install

to make sure it worked successfully.

I was looking for a way to verify that the project that will be created from the archetype will be successfully created without the need for it manually.

The option I've already looked at is that I can write a shell script that can generate a project and test it working. So the user just needs to run the script to make sure the archetype project doesn't work.

Is there a better way anyone can suggest?

+3


source to share





All Articles