Professional Documents
Culture Documents
ro/~avescan
IntelliJ IDEA
Contents
IntelliJ IDEA ...................................................................................................................................................... 1
1. Configuration Maven in Intellij IDEA ...................................................................................................... 2
2. Create proiect Maven.............................................................................................................................. 3
3. Install plug-in Maven to run multi-thread (failsafe) ............................................................................... 5
4. Configuration to use JUnit in Maven project ......................................................................................... 8
5. Install plugin SVN for IntelliJ IDEA........................................................................................................ 10
6. Upload Maven project to SVN .............................................................................................................. 11
7. Visualizing the Maven project in the SVN repository ............................................................................ 15
www.cs.ubbcluj.ro/~cretu 1
Software System Verification and Validation www.cs.ubbcluj.ro/~avescan
www.cs.ubbcluj.ro/~cretu 2
Software System Verification and Validation www.cs.ubbcluj.ro/~avescan
5. Add information to Group Id (your SCS id) (see Error! Reference source not
found.3);
e.g., user with address xyir1234@scs.ubbcluj.ro, will have Group Id
xyir1234MV;
6. Add information to Artifact Id (your SCS id)
e.g., user with address xyir1234@scs.ubbcluj.ro, will have Artifact Id
xyir1234;
www.cs.ubbcluj.ro/~cretu 3
Software System Verification and Validation www.cs.ubbcluj.ro/~avescan
7. Then Next; configure the repository and visaualized the configurations (see Figure
4),then Next;
8. Add the name of the project and the folder where it will be created (see Figure
525), then Finish to finalized the creation of the Maven project.
www.cs.ubbcluj.ro/~cretu 4
Software System Verification and Validation www.cs.ubbcluj.ro/~avescan
www.cs.ubbcluj.ro/~cretu 5
Software System Verification and Validation www.cs.ubbcluj.ro/~avescan
4. Add in the file pom.xml the configuration to use the plugins failsafe and surefire
(see Error! Reference source not found.7 and Figure 8):
<project>
………………
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.18.1</version>
</plugin>
</plugins>
</build>
…………………
</project>
www.cs.ubbcluj.ro/~cretu 6
Software System Verification and Validation www.cs.ubbcluj.ro/~avescan
5. In meniu File ---> Settings ---> Build, Execution, Deployment ---> Required
Plugins add the required plugins for the current project (see Figure 949).
www.cs.ubbcluj.ro/~cretu 7
Software System Verification and Validation www.cs.ubbcluj.ro/~avescan
3. The created project Maven has a source (main) and test (test);
4. Add the Java files from your application (Lab 01) in folder src from the Maven
created project, both source code (in main/<groupID>) and tests
(test/<groupID>);
5. To use JUnit 4, open a file with test cases that use adnotations (e.g., @Test,
@Ignore), and then Alt+Enter;
6. Add JUnit 4 to the Maven project (see Figure 11511);
www.cs.ubbcluj.ro/~cretu 8
Software System Verification and Validation www.cs.ubbcluj.ro/~avescan
www.cs.ubbcluj.ro/~cretu 9
Software System Verification and Validation www.cs.ubbcluj.ro/~avescan
www.cs.ubbcluj.ro/~cretu 10
Software System Verification and Validation www.cs.ubbcluj.ro/~avescan
www.cs.ubbcluj.ro/~cretu 11
Software System Verification and Validation www.cs.ubbcluj.ro/~avescan
2. Create an URL to the Repository from the address (see Figure 17817):
http://subversion.assembla.com/svn/ssvv2017/
www.cs.ubbcluj.ro/~cretu 12
Software System Verification and Validation www.cs.ubbcluj.ro/~avescan
3. Establish the version for the working format with the source code (see Figure
20920);
Figure 209 Version for the working format with the source code
www.cs.ubbcluj.ro/~cretu 13
Software System Verification and Validation www.cs.ubbcluj.ro/~avescan
4. In meniu VCS ---> Commit changes… adding the source code (see Figure
211021);
Add a mesage Commit Message: first commit, then Commit.
www.cs.ubbcluj.ro/~cretu 14
Software System Verification and Validation www.cs.ubbcluj.ro/~avescan
www.cs.ubbcluj.ro/~cretu 15