maven work

This commit is contained in:
eugenp 2013-07-26 12:36:54 +03:00
parent 4f6e4f3c3c
commit fd416a00a2
3 changed files with 26 additions and 5 deletions

View File

@ -81,6 +81,15 @@
<plugins> <plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin.version}</version>
<configuration>
<failonmissingwebxml>false</failonmissingwebxml>
</configuration>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
@ -118,9 +127,10 @@
<rest-assured.version>1.8.1</rest-assured.version> <rest-assured.version>1.8.1</rest-assured.version>
<groovy.version>1.8.9</groovy.version> <groovy.version>1.8.9</groovy.version>
<!-- Maven plugins --> <!-- Maven plugins -->
<cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version> <cargo-maven2-plugin.version>1.4.3</cargo-maven2-plugin.version>
<maven-surefire-plugin.version>2.15</maven-surefire-plugin.version> <maven-surefire-plugin.version>2.15</maven-surefire-plugin.version>
<maven-war-plugin.version>2.4</maven-war-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -1,5 +1,7 @@
package org.baeldung.servlet; package org.baeldung.servlet;
import javax.servlet.ServletRegistration.Dynamic;
import org.baeldung.spring.ClientWebConfig; import org.baeldung.spring.ClientWebConfig;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
@ -32,4 +34,9 @@ public class WebAppNew extends AbstractAnnotationConfigDispatcherServletInitiali
return new String[] { "/" }; return new String[] { "/" };
} }
@Override
protected void customizeRegistration(final Dynamic registration) {
super.customizeRegistration(registration);
}
} }

View File

@ -37,6 +37,10 @@
<!-- additional config --> <!-- additional config -->
<session-config>
<session-timeout>10</session-timeout>
</session-config>
<welcome-file-list> <welcome-file-list>
<welcome-file>index.html</welcome-file> <welcome-file>index.html</welcome-file>
</welcome-file-list> </welcome-file-list>