- PrimeFaces Theme Development
- Andy Bailey Sudheer Jonna
- 340字
- 2021-07-09 21:12:22
Building the project
When we build the project, Maven will cause the required file to be downloaded and added to our local Maven repository. It will copy the file into the WEB-INF/lib
folder of the build target.
If we right-click on the project and select Build, Maven will do its magic. When it is finished, we can use the Files view to see the result. Click on the Files tab. Then open the project tree view. You will see an src
and a target
folder, as well as the project's pom.xml
file and the NetBeans project configuration files.
Open the target
folder. Then expand the PFThemes-1.0-SNAPSHOT
folder. As we are confident that the build process will have worked correctly, we can now see the structure of the web application:

Tip
The Java EE 7 standard mandates a formal folder structure for web applications. The META-INF
and WEB-INF
folders are where application-specific resources are stored. Under WEB-INF
, you will see a classes
folder, a lib
folder, and several configuration files. Don't worry if you don't see any or all of the configuration files. Only web.xml
is generated by default; the others will be created later in this chapter. The classes
folder is to where Java classes are compiled. The lib
folder is where JAR files, such as the PrimeFaces JAR file, are added.
Although PrimeFaces does not require any additional dependencies, GlassFish does check each JAR file for optional dependencies and treats them as mandatory ones. Because of this rather petty strictness, we also need to add the commons-fileupload
and commons-io
dependencies. These are only required for the PrimeFaces fileupload
component, which won't be used here. At the time of writing this book, GlassFish does not allow applications to be run with unsatisfied dependencies. So, we need to add the missing dependencies.
Add a dependency as you did before, but this time type in commons-fileupload
in the query field and select version 1.3.1. Don't forget to click on Add before adding the commons-io
dependency. For this, you select the 2.1 version.
- 多媒體CAI課件設計與制作導論(第二版)
- AngularJS入門與進階
- Spring Cloud Alibaba核心技術與實戰案例
- Oracle 11g從入門到精通(第2版) (軟件開發視頻大講堂)
- Java面向對象思想與程序設計
- Photoshop智能手機APP UI設計之道
- Visual FoxPro程序設計教程
- Java EE框架整合開發入門到實戰:Spring+Spring MVC+MyBatis(微課版)
- 青少年Python編程入門
- 青少年信息學競賽
- 領域驅動設計:軟件核心復雜性應對之道(修訂版)
- Java網絡編程實戰
- UML軟件建模
- MySQL 8從零開始學(視頻教學版)
- Android Studio開發實戰:從零基礎到App上線 (移動開發叢書)