found problem, never needed a fix
Signed-off-by: Johannes Theiner <j.theiner@live.de>
This commit is contained in:
parent
b231574e76
commit
3f727eae72
216
pom.xml
216
pom.xml
@ -45,181 +45,40 @@
|
|||||||
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<pluginManagement>
|
||||||
<plugin>
|
<plugins>
|
||||||
<groupId>org.apache.tomcat.maven</groupId>
|
<plugin>
|
||||||
<artifactId>tomcat7-maven-plugin</artifactId>
|
<groupId>org.apache.tomcat.maven</groupId>
|
||||||
<version>2.2</version>
|
<artifactId>tomcat7-maven-plugin</artifactId>
|
||||||
<configuration>
|
<version>2.2</version>
|
||||||
<url>https://tomcat.joethei.space/manager/text</url>
|
<configuration>
|
||||||
<server>TomcatServer</server>
|
<url>https://tomcat.joethei.space/manager/text</url>
|
||||||
<path>/itech</path>
|
<server>TomcatServer</server>
|
||||||
</configuration>
|
<path>/itech</path>
|
||||||
</plugin>
|
</configuration>
|
||||||
<plugin>
|
</plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<plugin>
|
||||||
<artifactId>maven-war-plugin</artifactId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<version>3.1.0</version>
|
<artifactId>maven-war-plugin</artifactId>
|
||||||
<executions>
|
<version>3.1.0</version>
|
||||||
<execution>
|
<configuration>
|
||||||
<id>default-war</id>
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
||||||
<phase>prepare-package</phase>
|
</configuration>
|
||||||
<configuration>
|
</plugin>
|
||||||
<failOnMissingWebXml>false</failOnMissingWebXml>
|
<plugin>
|
||||||
</configuration>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
</execution>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
</executions>
|
<version>3.1</version>
|
||||||
</plugin>
|
<configuration>
|
||||||
<plugin>
|
<source>${java.version}</source>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<target>${java.version}</target>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
</configuration>
|
||||||
<version>3.1</version>
|
</plugin>
|
||||||
<configuration>
|
|
||||||
<source>${java.version}</source>
|
|
||||||
<target>${java.version}</target>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
|
||||||
<version>3.0.1</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
|
||||||
<version>3.0.0-M1</version>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<plugin>
|
</plugins>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
</pluginManagement>
|
||||||
<artifactId>maven-site-plugin</artifactId>
|
|
||||||
<version>3.7.1</version>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
|
|
||||||
<!--Quality Assurance-->
|
|
||||||
|
|
||||||
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
||||||
<version>3.0.0</version>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.puppycrawl.tools</groupId>
|
|
||||||
<artifactId>checkstyle</artifactId>
|
|
||||||
<version>8.17</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<configuration>
|
|
||||||
<encoding>${project.build.sourceEncoding}</encoding>
|
|
||||||
<logViolationsToConsole>true</logViolationsToConsole>
|
|
||||||
<consoleOutput>true</consoleOutput>
|
|
||||||
<configLocation>${checkstyle.file}</configLocation>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>verify-style</id>
|
|
||||||
<phase>process-classes</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>check</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-pmd-plugin</artifactId>
|
|
||||||
<version>3.11.0</version>
|
|
||||||
<configuration>
|
|
||||||
<targetJdk>${java.version}</targetJdk>
|
|
||||||
<minimumTokens>100</minimumTokens>
|
|
||||||
<sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
|
|
||||||
<printFailingErrors>true</printFailingErrors>
|
|
||||||
<failOnViolation>false</failOnViolation>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>verify-optimization</id>
|
|
||||||
<phase>process-classes</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>check</goal>
|
|
||||||
<goal>cpd-check</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.github.spotbugs</groupId>
|
|
||||||
<artifactId>spotbugs-maven-plugin</artifactId>
|
|
||||||
<version>3.1.9</version>
|
|
||||||
<configuration>
|
|
||||||
<effort>Max</effort>
|
|
||||||
<threshold>Low</threshold>
|
|
||||||
<failOnError>false</failOnError>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.h3xstream.findsecbugs</groupId>
|
|
||||||
<artifactId>findsecbugs-plugin</artifactId>
|
|
||||||
<version>1.8.0</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.mebigfatguy.fb-contrib</groupId>
|
|
||||||
<artifactId>fb-contrib</artifactId>
|
|
||||||
<version>7.4.3.sb</version>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>verify-errors</id>
|
|
||||||
<phase>verify</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>check</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<reporting>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<configLocation>${checkstyle.file}</configLocation>
|
|
||||||
</configuration>
|
|
||||||
<version>3.0.0</version>
|
|
||||||
<reportSets>
|
|
||||||
<reportSet>
|
|
||||||
<reports>
|
|
||||||
<report>checkstyle</report>
|
|
||||||
</reports>
|
|
||||||
</reportSet>
|
|
||||||
</reportSets>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-jxr-plugin</artifactId>
|
|
||||||
<version>2.3</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.github.spotbugs</groupId>
|
|
||||||
<artifactId>spotbugs-maven-plugin</artifactId>
|
|
||||||
<version>3.1.9</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</reporting>
|
|
||||||
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
<!---->
|
<!---->
|
||||||
@ -229,12 +88,6 @@
|
|||||||
<version>4.0.1</version>
|
<version>4.0.1</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>javax.faces</groupId>
|
|
||||||
<artifactId>jsf-api</artifactId>
|
|
||||||
<version>2.1</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.myfaces.core</groupId>
|
<groupId>org.apache.myfaces.core</groupId>
|
||||||
<artifactId>myfaces-api</artifactId>
|
<artifactId>myfaces-api</artifactId>
|
||||||
@ -245,13 +98,6 @@
|
|||||||
<artifactId>myfaces-impl</artifactId>
|
<artifactId>myfaces-impl</artifactId>
|
||||||
<version>2.3.3</version>
|
<version>2.3.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.myfaces.tomahawk</groupId>
|
|
||||||
<artifactId>tomahawk20</artifactId>
|
|
||||||
<version>1.1.14</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--Annotations-->
|
<!--Annotations-->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -12,7 +12,6 @@ import java.util.List;
|
|||||||
@ApplicationScoped
|
@ApplicationScoped
|
||||||
public class CategoryBean implements Serializable {
|
public class CategoryBean implements Serializable {
|
||||||
|
|
||||||
|
|
||||||
private String hello = "Hallo Welt";
|
private String hello = "Hallo Welt";
|
||||||
|
|
||||||
public String getHello() {
|
public String getHello() {
|
||||||
@ -23,4 +22,8 @@ public class CategoryBean implements Serializable {
|
|||||||
return Database.getInstance().getCategories();
|
return Database.getInstance().getCategories();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String test() {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -1,30 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xmlns="http://java.sun.com/xml/ns/javaee"
|
|
||||||
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
|
|
||||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
|
|
||||||
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
|
|
||||||
id="itech" version="2.5">
|
|
||||||
|
|
||||||
<display-name>Amazon light</display-name>
|
|
||||||
|
|
||||||
<!-- Change to "Production" when you are ready to deploy -->
|
|
||||||
<context-param>
|
|
||||||
<param-name>javax.faces.PROJECT_STAGE</param-name>
|
|
||||||
<param-value>Development</param-value>
|
|
||||||
</context-param>
|
|
||||||
|
|
||||||
<!-- JSF mapping -->
|
|
||||||
<servlet>
|
|
||||||
<servlet-name>Faces Servlet</servlet-name>
|
|
||||||
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
|
|
||||||
<load-on-startup>1</load-on-startup>
|
|
||||||
</servlet>
|
|
||||||
|
|
||||||
<!-- Map these files with JSF -->
|
|
||||||
<servlet-mapping>
|
|
||||||
<servlet-name>Faces Servlet</servlet-name>
|
|
||||||
<url-pattern>*.jsf</url-pattern>
|
|
||||||
</servlet-mapping>
|
|
||||||
|
|
||||||
</web-app>
|
|
@ -5,26 +5,16 @@
|
|||||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
||||||
xmlns:f="http://xmlns.jcp.org/jsf/core">
|
xmlns:f="http://xmlns.jcp.org/jsf/core">
|
||||||
<head>
|
<h:head>
|
||||||
<title>ha</title>
|
<title>Amazon light</title>
|
||||||
</head>
|
</h:head>
|
||||||
|
|
||||||
<body>
|
<h:body>
|
||||||
<h:outputText value="#{categoryBean.hello}"/>
|
|
||||||
|
|
||||||
<h:outputText value="null " rendered="#{empty categoryBean}"/>
|
|
||||||
<h:outputText value="Table is empty!" rendered="#{empty categoryBean.categories}"/>
|
|
||||||
<h:outputText value="#{categoryBean.hello}"/>
|
|
||||||
<h:dataTable var="category" value="#{categoryBean.categories}">
|
|
||||||
<h:column>
|
|
||||||
<h:outputText value="#{category.name}"/>
|
|
||||||
</h:column>
|
|
||||||
</h:dataTable>
|
|
||||||
|
|
||||||
<ui:repeat value="#{categoryBean.categories}" var="category">
|
<ui:repeat value="#{categoryBean.categories}" var="category">
|
||||||
<h:outputText value="Hallo Welt"/>
|
|
||||||
<h:outputText value="#{category.name}"/>
|
<h:outputText value="#{category.name}"/>
|
||||||
|
<br/>
|
||||||
</ui:repeat>
|
</ui:repeat>
|
||||||
</body>
|
</h:body>
|
||||||
|
|
||||||
</html>
|
</html>
|
6
src/main/webapp/version.jsp
Normal file
6
src/main/webapp/version.jsp
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<%@ page import="javax.faces.context.FacesContext" %>
|
||||||
|
Server info: <%= application.getServerInfo() %><br>
|
||||||
|
Servlet version: <%= application.getMajorVersion() %>.<%= application.getMinorVersion() %><br>
|
||||||
|
JSP version: <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %><br>
|
||||||
|
JSF version: <%= FacesContext.class.getPackage().getImplementationVersion()%>
|
||||||
|
Java version: <%= System.getProperty("java.version") %><br>
|
Loading…
Reference in New Issue
Block a user