I am trying to create a new maven project using the maven-archetype-quickstart
archetype, which incorporates a AppTest.java
sample test class and a dependency for Junit version 3.8.1 but I would like to use Junit 4.
How can I change Junit version on the quickstart maven archetype?
Use the prompt or a terminal in eclipse and do this :
mvn -B archetype:generate \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DgroupId=com.mycompany.app \
-DartifactId=my-app
After that you have to import it from Eclipse, IntelliJ or Netbeans as a maven project and you'll got the version of J-Unit 4.X
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With