Jersey + Embedded Tomcat Minimal Maven Configuration -


could provide simple configuration of jersey , embedded tomcat in: 1) pom.xml 2) main method

i trying find in google search, propose use grizzly, glassfish , etc.

thanks lot.

i go webapp-runner run web app. deploys maven generated war /target built in tomcat container. how java applications gets deployed on heroku.
pom plugin configuration:

        <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-dependency-plugin</artifactid>             <version>2.4</version>             <executions>                 <execution>                     <phase>package</phase>                     <goals>                         <goal>copy</goal>                     </goals>                     <configuration>                         <artifactitems>                             <artifactitem>                                 <groupid>com.github.jsimone</groupid>                                 <artifactid>webapp-runner</artifactid>                                 <version>7.0.34.1</version>                                 <destfilename>webapp-runner.jar</destfilename>                             </artifactitem>                         </artifactitems>                     </configuration>                 </execution>             </executions>         </plugin> 

dependency:

    <dependency>         <groupid>com.github.jsimone</groupid>         <artifactid>webapp-runner</artifactid>         <version>7.0.34.1</version>         <scope>provided</scope>     </dependency> 

to run application after mvn clean package

java -jar target\dependency\webapp-runner.jar target\myapp.war 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -