Skip to content

skoneti3/samplejava

Repository files navigation

A simple Java EE 7 Sample

This is a trivial Java EE 7 sample.

  1. Download WildFly 8.2 from http://download.jboss.org/wildfly/8.2.0.Final/wildfly-8.2.0.Final.zip and unzip.

  2. Start WildFly as: ./bin/standalone.sh

  3. Deploy application WAR to WildFly: mvn wildfly:deploy

  4. Install to local Maven repository: mvn install

    1. repo in '~/.m2/repository'

  5. Deploy SNAPSHOT version to local Nexus

    1. Only binary: mvn deploy

    2. Binary, including javadoc and sources jars: mvn deploy -P release

  6. Perform RELEASE : mvn release:prepare release:perform

    1. versions changes and tag are committed to github

    2. all tests run

    3. WAR is deployed to Wildfly

    4. deployment to local Nexus including WAR, javadoc and sources

  7. Alternatively to deploy RELEASE version (e.g. 2.0) to Nexus without GitHub integration

    1. mvn versions:set -DnewVersion=2.0

    2. mvn deploy -P release

# Jenkins Commands

mvn sonar:sonar

mvn install

mvn deploy

# Using tomcat api to deploy application on tomcat 7

curl --upload-file target/javaee7-simple-sample.war "http://admin:admin@192.168.33.30:8080/manager/text/deploy?path=/dev"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •