~ made sure maven does not fail on missing web.xml

+ lombok, jetbrains annotations

Signed-off-by: Johannes Theiner <j.theiner@live.de>
This commit is contained in:
Johannes Theiner 2019-02-16 00:12:36 +01:00
parent 516996808d
commit 63d190e2d2
2 changed files with 28 additions and 3 deletions

27
pom.xml
View File

@ -16,7 +16,6 @@
<name>Johannes Theiner</name> <name>Johannes Theiner</name>
<email>johannes.theiner@informatik-emden.de</email> <email>johannes.theiner@informatik-emden.de</email>
<roles> <roles>
<role>Technisches Management</role>
<role>Server Admin</role> <role>Server Admin</role>
</roles> </roles>
</contributor> </contributor>
@ -39,6 +38,20 @@
<path>/bauDas</path> <path>/bauDas</path>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>default-war</id>
<phase>prepare-package</phase>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
@ -56,6 +69,18 @@
<artifactId>weka-stable</artifactId> <artifactId>weka-stable</artifactId>
<version>3.8.3</version> <version>3.8.3</version>
</dependency> </dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.4</version>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>13.0</version>
</dependency>
</dependencies> </dependencies>

View File

@ -22,10 +22,10 @@ public class HelloWorld extends HttpServlet {
PrintWriter out = resp.getWriter(); PrintWriter out = resp.getWriter();
out.println("<html>"); out.println("<html>");
out.println("<head>"); out.println("<head>");
out.println("<title>Hello World!</title>"); out.println("<title>Hallo Welt!</title>");
out.println("</head>"); out.println("</head>");
out.println("<body>"); out.println("<body>");
out.println("<h1>Hello World!</h1>"); out.println("<h1>Hallo Ostfriesland!</h1>");
out.println("</body>"); out.println("</body>");
out.println("</html>"); out.println("</html>");
} }