Create a Squash TF Project using a command line¶
You can create the Squash TF project with a maven command-line, then import it into your preferred IDE.
Open a shell window at the location where you want your project created and execute the following command line :
mvn archetype:generate -DarchetypeGroupId=org.squashtest.ta -DarchetypeArtifactId=squash-ta-project-archetype -DarchetypeVersion={SKF version} -DarchetypeRepository=http://repo.squashtest.org/maven2/releases
Note : Do not forget to replace the {SKF version} with the last version of the Squash Keyword Framework. You can check it on our website
- At the prompt, enter the desired groupId (in our example, org.squashtest.tutorial).
- Next, enter the desired artifactId (here, my.squash.ta.project).
- Next, enter the version (here, 1.0).
- Skip the next, irrelevant, prompt about java packages and you can check the parameters and confirm them with y if it’s OK.
After the execution of the archetype, you should have the following :
Now, you can close the shell window and import the project into your IDE (Eclipse in the following example) :
Select menu File > Import…, then Maven > Existing Maven Projects. Click on Browse and go to the newly created project directory (in our example C:\Workspace\my.squash.tf.project) :
Click on OK, then Finish to complete the project import operation :
The newly created Test project now appears in the TA Navigator :