GWT in Practice phần 7

Bên cạnh sự tiện lợi mà chạy trình bao từ một xây dựng tiêu chuẩn cung cấp, bạn cũng có tất cả sức mạnh của Maven theo ý của bạn. Mvn sạch sẽ cài đặt lệnh sẽ biên dịch và đóng gói dự án của bạn thành một tạo tác WAR có thể triển khai bất kỳ container servlet JEE | Managing Tomcat Lite from the build 205 In addition to the convenience that running the shell from a standard build provides you also have all of the power of Maven at your disposal. The mvn clean install command will compile and bundle your project into a WAR artifact that can be deployed to any JEE servlet container. You can also package your project into a module by simply issuing the command mvn clean jar jar presuming you have included the source in the POM as discussed . You can run tests including those based on GwtTest-Case which we ll cover in detail in the next chapter by using mvn clean test. The behavior of most of the GWT-Maven goals should be fairly obvious. The benefit of Maven and these goals is that once you have a configuration in place you can use change and share your build easily and get consistent results. Another reason for using the GWT-Maven plugin beyond the general convenience for GWT tasks it provides is the way it helps to manage and merge the WAR file deployment descriptor . This file is used in hosted mode with the embedded Tomcat server GWT includes and in web mode when you deploy your application as a WAR file. Because of this dual use there are a few configuration overlap points and divergences that have to be dealt with. Managing Tomcat Lite from the build We first discussed Tomcat Lite the embedded Apache Tomcat instance included in GWT in chapter 3. There we discussed the issues surrounding the maintenance of multiple configuration files one for the hosted mode and one for the web mode and how to manage those configuration files so that your projects can make use of service-side features provided by the JEE container. Tomcat Lite maintains its own set of in GWT terms and configuration files. Obviously the ideal deployment process would need to work both in hosted mode terms and in terms of creating a WAR file. This means what we really need is a file and a file which .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.