Advertisement
campos20

Untitled

Jun 12th, 2020
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. mvn archetype:generate -DgroupId=com.alexandrecampos -DartifactId=cadastro-de-funcionarios -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false
  2.  
  3.  
  4. <?xml version="1.0" encoding="UTF-8"?>
  5. <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">
  6.  
  7.  
  8.  
  9. Facets e adicionar o faces
  10.  
  11.  
  12.  
  13.  
  14.  
  15. <properties>
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. <maven.compiler.source>1.8</maven.compiler.source>
  18. <maven.compiler.target>1.8</maven.compiler.target>
  19. </properties>
  20.  
  21.  
  22.  
  23. <dependency>
  24. <groupId>com.sun.faces</groupId>
  25. <artifactId>jsf-api</artifactId>
  26. <version>2.2.9</version>
  27. </dependency>
  28.  
  29. <dependency>
  30. <groupId>com.sun.faces</groupId>
  31. <artifactId>jsf-impl</artifactId>
  32. <version>2.2.9</version>
  33. </dependency>
  34.  
  35.  
  36.  
  37. <build>
  38. <finalName>exemplo-jsf</finalName>
  39. <plugins>
  40. <plugin>
  41. <groupId>org.apache.maven.plugins</groupId>
  42. <artifactId>maven-compiler-plugin</artifactId>
  43. <version>2.3.1</version>
  44.  
  45. <configuration>
  46. <source>1.8</source>
  47. <target>1.8</target>
  48. </configuration>
  49. </plugin>
  50. </plugins>
  51.  
  52. </build>
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59. <!DOCTYPE html>
  60. <html lang="en" xmlns="http://www.w3.org/1999/xhtml"
  61. xmlns:f="http://xmlns.jcp.org/jsf/core"
  62. xmlns:h="http://xmlns.jcp.org/jsf/html">
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71. <servlet>
  72. <servlet-name>facesServlet</servlet-name>
  73. <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  74. <load-on-startup>1</load-on-startup>
  75. </servlet>
  76. <servlet-mapping>
  77. <servlet-name>facesServlet</servlet-name>
  78. <url-pattern>*.xhtml</url-pattern>
  79. </servlet-mapping>
  80.  
  81.  
  82.  
  83.  
  84. git init
  85.  
  86. git add .
  87.  
  88. git commit -m "Estrutura inicial"
  89.  
  90. git remote add origin https://github.com/campos20/cadastro-de-funcionarios.git
  91.  
  92. git push --set-upstream origin master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement