javaee-servers-parent

Some Java EE 7 application server functions from your maven script

License

License

GroupId

GroupId

com.github.phillip-kruger
ArtifactId

ArtifactId

javaee-servers-parent
Last Version

Last Version

javaee-7-v4
Release Date

Release Date

Type

Type

pom
Description

Description

javaee-servers-parent
Some Java EE 7 application server functions from your maven script
Project URL

Project URL

https://github.com/phillip-kruger/javaee-servers-parent
Source Code Management

Source Code Management

https://github.com/phillip-kruger/javaee-servers-parent

Download javaee-servers-parent

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.phillip-kruger/javaee-servers-parent/ -->
<dependency>
    <groupId>com.github.phillip-kruger</groupId>
    <artifactId>javaee-servers-parent</artifactId>
    <version>javaee-7-v4</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.phillip-kruger/javaee-servers-parent/
implementation 'com.github.phillip-kruger:javaee-servers-parent:javaee-7-v4'
// https://jarcasting.com/artifacts/com.github.phillip-kruger/javaee-servers-parent/
implementation ("com.github.phillip-kruger:javaee-servers-parent:javaee-7-v4")
'com.github.phillip-kruger:javaee-servers-parent:pom:javaee-7-v4'
<dependency org="com.github.phillip-kruger" name="javaee-servers-parent" rev="javaee-7-v4">
  <artifact name="javaee-servers-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.github.phillip-kruger', module='javaee-servers-parent', version='javaee-7-v4')
)
libraryDependencies += "com.github.phillip-kruger" % "javaee-servers-parent" % "javaee-7-v4"
[com.github.phillip-kruger/javaee-servers-parent "javaee-7-v4"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • example

Java EE parent project

Build status: build_status

Make this you parent project to get Java EE Application server build options in maven profiles.

<parent>
    <groupId>com.github.phillip-kruger</groupId>
    <artifactId>javaee-servers-parent</artifactId>
    <version>javaee-7-v3</version>
</parent>

You can change some properties, example:

<properties>    
    <http.port>8081</http.port>
    <https.port>8444</https.port>
</properties>

OpenLiberty

Config

You can add the server config file in src/main/openliberty/config/server.xml

Example config

<?xml version="1.0" encoding="UTF-8"?>
<server description="${project.build.finalName}">

    <!-- Enable features -->
    <featureManager>
        <feature>javaee-7.0</feature>
        <feature>microProfile-1.2</feature>
    </featureManager>

    <!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" -->

    <httpEndpoint id="defaultHttpEndpoint"
        httpPort="${httpPort}"
        httpsPort="${httpsPort}"/>

    <!-- Automatically expand WAR files and EAR files -->
    <applicationManager autoExpand="true" />

    <application location="${project.build.directory}/${project.build.finalName}.war"/>

    <logging traceSpecification="${log.name}.*=${log.level}"/>

</server>

Log file

If you use the start rather than run the logfile is available at:

/tmp/${project.artifactId}/openliberty/wlp/usr/servers/defaultServer/logs/trace.log

Options

  •   `mvn clean install -P openliberty-run`
    
  •   `mvn clean install -P openliberty-start`
    
  •   `mvn clean install -P openliberty-deploy`
    
  •   `mvn clean install -P openliberty-stop`
    
  •   `mvn clean install -P openliberty-package`
    
  •   `mvn clean install -P openliberty-log`
    

Wildfly swarm

Config

You can add the server config file in src/main/wildfly-swarm/config/standalone.xml

Example config

<?xml version="1.0" encoding="UTF-8"?>
<server xmlns="urn:jboss:domain:4.0">
    <profile>
        <subsystem xmlns="urn:jboss:domain:logging:3.0">
            <periodic-rotating-file-handler name="FILE" autoflush="true">
                <file path="${wildfly-swarm.logfile}"/>
                <suffix value=".yyyy-MM-dd"/>
                <append value="true"/>
            </periodic-rotating-file-handler>
            <root-logger>
                <level name="INFO"/>
                <handlers>
                    <handler name="FILE"/>
                </handlers>
            </root-logger>
            <logger category="${log.name}">
                <level name="${log.level}"/>
            </logger>
        </subsystem>
    </profile>
</server>

Log file

If you use the start rather than run the logfile is available at:

/tmp/${project.artifactId}/wildfly-swarm/logs/server.log

Options

  •   `mvn clean install -P wildflyswarm-run`
    
  •   `mvn clean install -P wildflyswarm-start`
    
  •   `mvn clean install -P wildflyswarm-deploy`
    
  •   `mvn clean install -P wildflyswarm-stop`
    
  •   `mvn clean install -P wildflyswarm-package`
    
  •   `mvn clean install -P wildflyswarm-log`
    

Versions

Version
javaee-7-v4
javaee-7-v3
javaee-7-v1