Browse files

JAVADOC

  • Loading branch information...
1 parent 8a8ecfa commit 75509116cbc230c13e2b49c6d9d679b36cb567d5 @lamb committed Jan 17, 2013
Showing with 22 additions and 1 deletion.
  1. +21 −0 pom.xml
  2. +1 −1 src/test/java/com/yonyou/bamboo/service/ProjectServiceTest.java
View
21 pom.xml
@@ -14,6 +14,8 @@
<version.maven-checkstyle-plugin>2.9.1</version.maven-checkstyle-plugin>
<version.maven-jetty-plugin>6.1.26</version.maven-jetty-plugin>
<version.maven-resources-plugin>2.6</version.maven-resources-plugin>
+ <version.cobertura-maven-plugin>2.5.2</version.cobertura-maven-plugin>
+ <version.maven-javadoc-plugin>2.9</version.maven-javadoc-plugin>
<server.port>8888</server.port>
<server.seconds>20</server.seconds>
@@ -274,6 +276,25 @@
<scanIntervalSeconds>${server.seconds}</scanIntervalSeconds>
</configuration>
</plugin>
+ <!-- For javadoc -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>${version.maven-javadoc-plugin}</version>
+ <configuration>
+ <charset>${project.build.sourceEncoding}</charset>
+ <encoding>${project.build.sourceEncoding}</encoding>
+ </configuration>
+ </plugin>
+ <!-- For test coverage -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <version>${version.cobertura-maven-plugin}</version>
+ <configuration>
+ <encoding>${project.build.sourceEncoding}</encoding>
+ </configuration>
+ </plugin>
</plugins>
<finalName>${finalName}-${project.version}</finalName>
</build>
View
2 src/test/java/com/yonyou/bamboo/service/ProjectServiceTest.java
@@ -16,7 +16,7 @@
import com.yonyou.bamboo.util.ConstantsTest;
@RunWith(SpringJUnit4ClassRunner.class)
-@ContextConfiguration(ConstantsTest.BAMBOO_CONTEXT)
+@ContextConfiguration({ ConstantsTest.BAMBOO_CONTEXT, ConstantsTest.BAMBOO_SERVLET_CONTEXT })
@TransactionConfiguration
public class ProjectServiceTest {

0 comments on commit 7550911

Please sign in to comment.