Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mvn archetype:generate -DgroupId=com.alexandrecampos -DartifactId=cadastro-de-funcionarios -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false
- <?xml version="1.0" encoding="UTF-8"?>
- <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" version="4.0">
- Facets e adicionar o faces
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
- </properties>
- <dependency>
- <groupId>com.sun.faces</groupId>
- <artifactId>jsf-api</artifactId>
- <version>2.2.9</version>
- </dependency>
- <dependency>
- <groupId>com.sun.faces</groupId>
- <artifactId>jsf-impl</artifactId>
- <version>2.2.9</version>
- </dependency>
- <build>
- <finalName>exemplo-jsf</finalName>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.1</version>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml"
- xmlns:f="http://xmlns.jcp.org/jsf/core"
- xmlns:h="http://xmlns.jcp.org/jsf/html">
- <servlet>
- <servlet-name>facesServlet</servlet-name>
- <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet-mapping>
- <servlet-name>facesServlet</servlet-name>
- <url-pattern>*.xhtml</url-pattern>
- </servlet-mapping>
- git init
- git add .
- git commit -m "Estrutura inicial"
- git remote add origin https://github.com/campos20/cadastro-de-funcionarios.git
- git push --set-upstream origin master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement