Initiative Struts 2.5 project for test driven development (TDD)
1. Create Dynamic Web project, for example at C:\Startup
2. Convert to Maven project
3. Download and unzip TDD-Struts-Blank.zip, for example at C:\Blank
4. Add following lines to C:\Startup\pom.xml, then build
5. Add following lines to C:\Startup\pom.xml, then build
6. Run following commands, for example on Windows 7
7. Remove current source folder and add 2 new source folder at c:\Startup\src\java and c:\Startup\src\tests
8. Run following commands, for example on Windows 7
2. Convert to Maven project
3. Download and unzip TDD-Struts-Blank.zip, for example at C:\Blank
4. Add following lines to C:\Startup\pom.xml, then build
<dependencies> <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-core</artifactId> <version>2.5</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> <version>2.5</version> </dependency> <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-junit-plugin</artifactId> <version>2.5</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </dependency> </dependencies>
5. Add following lines to C:\Startup\pom.xml, then build
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.6</version> <executions> <execution> <id>copy-dependencies</id> <phase>build</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/lib</outputDirectory> <overWriteReleases>true</overWriteReleases> <overWriteSnapshots>true</overWriteSnapshots> <overWriteIfNewer>true</overWriteIfNewer> </configuration> </execution> </executions> </plugin>
6. Run following commands, for example on Windows 7
md c:\Startup\src\java md c:\Startup\src\tests
7. Remove current source folder and add 2 new source folder at c:\Startup\src\java and c:\Startup\src\tests
8. Run following commands, for example on Windows 7
copy C:\Blank\src\java\* C:\Startup\src\java copy C:\Blank\src\tests\* C:\Startup\src\tests copy C:\Blank\WebContent\WEB-INF\* C:\Startup\WebContent\WEB-INF
Tuesday, May 31, 2016
at
12:28 AM
Blog Archive
-
▼
2016
(29)
-
▼
May
(17)
- Make SEO friendly URL with Struts 2.5 project
- Initiative Struts 2.5 project for test driven deve...
- Struts 2 in Action
- "The mbstring extension is missing." error when in...
- Skill - Develop java desktop application using tes...
- Skill - Develop java web application using test dr...
- Skill - Develop native android application using t...
- Skills of Trần Đình Thoại
- Install Android Studio 2.0 on Ubuntu Desktop 16.04
- Trần Đình Thoại on EscapeNotes project
- Tutorial of Orinus - JavaScript SandBox
- Install and customize Pedatus 1.3 - Micro Search E...
- Install and configure Orinus 1.2 for Linux | Tutor...
- Install and configure Orinus 1.2 for Windows | Tut...
- Create search engine | Tutorial of Orinus - JavaSc...
- Create basic script | Tutorial of Orinus - JavaScr...
- Screenshots of Orinus - JavaScript SandBox
-
▼
May
(17)