官术网_书友最值得收藏!

Time for action – deploying and running

Steps for deploying and running Vaadin applications with Maven are as follows:

  1. Move to the directory that Maven created for your project. If you have specified welcome as artifactId, then move to the welcome directory.
  2. Before actually deploying the application we must compile it and package it. To do that, run the command:
    mvn package
    
  3. This will take some time, so be patient.
  4. Now we are ready. Run the command:
    mvn jetty:run
    
  5. If you haven't run this before, you will see a very verbose Maven downloading stuff.
    Tip

    Just in case if you want to break the old tradition:

    mvn tomcat:run
    
  6. Go to http://localhost:8080/welcome and play with the just created Vaadin application.

What just happened?

We have successfully created, compiled, packaged, deployed, and run a Vaadin application using Maven.

主站蜘蛛池模板: 类乌齐县| 虎林市| 巴楚县| 临沂市| 沂南县| 喀喇沁旗| 白山市| 江陵县| 淄博市| 化德县| 鹰潭市| 正定县| 高安市| 庐江县| 武隆县| 莱阳市| 大名县| 邳州市| 新田县| 县级市| 山阳县| 宝鸡市| 余江县| 兴宁市| 卢氏县| 郎溪县| 科技| 江城| 锡林浩特市| 龙胜| 双牌县| 漳平市| 鄂州市| 盐津县| 湖北省| 无锡市| 壶关县| 湘阴县| 东至县| 米脂县| 辽宁省|