Skip to content

Commit 0fe9e10

Browse files
author
eugenp
committed
eclipse fixes for running project
1 parent ff38ebf commit 0fe9e10

File tree

3 files changed

+32
-10
lines changed

3 files changed

+32
-10
lines changed

spring-security-login-and-registration/.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
2424
</attributes>
2525
</classpathentry>
26-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
26+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
2727
<attributes>
2828
<attribute name="maven.pomderived" value="true"/>
2929
</attributes>

spring-security-login-and-registration/pom.xml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<artifactId>spring-security-config</artifactId>
3131
<scope>runtime</scope>
3232
</dependency>
33-
33+
3434
<!-- @Inject -->
3535
<!-- <dependency> -->
3636
<!-- <groupId>javax.inject</groupId> -->
@@ -128,6 +128,7 @@
128128
</dependency>
129129

130130
</dependencies>
131+
131132
<build>
132133
<finalName>spring-security-login-and-registration</finalName>
133134
<resources>
@@ -136,7 +137,26 @@
136137
<filtering>true</filtering>
137138
</resource>
138139
</resources>
140+
141+
<plugins>
142+
143+
<plugin>
144+
<groupId>org.apache.maven.plugins</groupId>
145+
<artifactId>maven-compiler-plugin</artifactId>
146+
<configuration>
147+
<source>${java-version}</source>
148+
<target>${java-version}</target>
149+
</configuration>
150+
</plugin>
151+
152+
<plugin>
153+
<groupId>org.apache.maven.plugins</groupId>
154+
<artifactId>maven-war-plugin</artifactId>
155+
</plugin>
156+
157+
</plugins>
139158
</build>
159+
140160
<properties>
141161
<java-version>1.7</java-version>
142162
<org.springframework-version>3.1.4.RELEASE</org.springframework-version>

spring-security-login-and-registration/src/main/webapp/WEB-INF/web.xml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xmlns="http://java.sun.com/xml/ns/javaee"
4-
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
5-
version="2.5">
6-
3+
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
4+
xsi:schemaLocation="
5+
http://java.sun.com/xml/ns/javaee
6+
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
7+
id="WebApp_ID" version="3.0">
8+
79
<context-param>
810
<param-name>contextClass</param-name>
911
<param-value>
@@ -14,11 +16,11 @@
1416
<param-name>contextConfigLocation</param-name>
1517
<param-value>org.baeldung.spring</param-value>
1618
</context-param>
17-
19+
1820
<listener>
1921
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
2022
</listener>
21-
23+
2224
<servlet>
2325
<servlet-name>mvc</servlet-name>
2426
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
@@ -28,7 +30,7 @@
2830
<servlet-name>mvc</servlet-name>
2931
<url-pattern>/</url-pattern>
3032
</servlet-mapping>
31-
33+
3234
<filter>
3335
<filter-name>springSecurityFilterChain</filter-name>
3436
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
@@ -45,5 +47,5 @@
4547
<filter-name>localizationFilter</filter-name>
4648
<url-pattern>/*</url-pattern>
4749
</filter-mapping>
48-
50+
4951
</web-app>

0 commit comments

Comments
 (0)