tdd_intro.CreatingAnEmptyProject

=Create a new project= > code mvn archetype:generate < > code > code Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 670: < > code > code 5: 1.0 6: 1.1 Choose a number: 6: < > > code > code Define value for property 'groupId': : com.shoe < > code > code Define value for property 'artifactId': : paginator < > code > code Define value for property 'version': 1.0-SNAPSHOT: : < > code > code Define value for property 'package': com.shoe: : com.shoe.paginator < > code > code Confirm properties configuration: groupId: com.shoe artifactId: paginator version: 1.0-SNAPSHOT package: com.shoe.paginator Y: : < > code =Check the project= > code cd paginator < > code > code mvn test < > --- T E S T S --- Running com.shoe.paginator.AppTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
 * Use the default maven archetype:
 * Accept default project (note: the number will change from time to time, it is 670 in this example)
 * Accept the default version
 * Enter a group id (e.g., com.shoe)
 * Enter artifact (project name, e.g., paginator)
 * Accept default version
 * Enter default package (e.g., com.shoe.paginator )
 * Confirm the configuration
 * Change to directory created (e.g., cd paginator)
 * Run the tests

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] [INFO] BUILD SUCCESS [INFO] [INFO] Total time: 1.466 s [INFO] Finished at: 2015-10-26T00:40:22-05:00 [INFO] Final Memory: 14M/166M [INFO] code =Modernize the project= > code org.apache.maven.plugins maven-compiler-plugin 3.3 					 1.8 code > code mvn test < > code > code find. -name \*.java | xargs rm code = Optionally create a git repo out of this directory= > code git init echo "target" > .gitignore git add pom.xml .gitignore git commit -m "Initial commit" code =You are ready to open pom.xml in an ide= media type="vimeo" key="143582262" height="313" width="500"
 * Edit pom.xml
 * Change JUnit version to 4.12
 * Modify the target Java version (paste above :
 * Reconfirm build
 * Remove source files created by mvn archetype:generate above