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

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.

主站蜘蛛池模板: 奎屯市| 常州市| 渝北区| 和平区| 博罗县| 和田县| 庆阳市| 丹阳市| 麻江县| 曲松县| 阳东县| 武山县| 肥东县| 灌阳县| 巨鹿县| 瑞昌市| 米林县| 军事| 祁东县| 桦甸市| 大方县| 温宿县| 抚宁县| 上杭县| 防城港市| 元朗区| 容城县| 富宁县| 元阳县| 西林县| 宁阳县| 寿宁县| 洮南市| 汉沽区| 新津县| 枞阳县| 含山县| 东乡族自治县| 瑞昌市| 石狮市| 白山市|