Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-1579

support executable wars just doing an overlay of tomee embedded

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0-M1
    • Component/s: None
    • Labels:
      None

      Description

        <dependencies>
          <dependency>
            <groupId>org.apache.openejb</groupId>
            <artifactId>tomee-embedded</artifactId>
            <classifier>uber</classifier>
            <version>2.x</version>
            <scope>provided</scope>
          </dependency>
        </dependencies>
      
        <build>
          <plugins>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-war-plugin</artifactId>
              <version>2.6</version>
              <configuration>
                <failOnMissingWebXml>false</failOnMissingWebXml>
                <archive>
                  <manifest>
                    <mainClass>org.apache.tomee.embedded.Main</mainClass>
                  </manifest>
                </archive>
                <dependentWarExcludes />
                <overlays>
                  <overlay>
                    <groupId>org.apache.openejb</groupId>
                    <artifactId>tomee-embedded</artifactId>
                    <classifier>uber</classifier>
                    <type>jar</type>
                    <excludes />
                  </overlay>
                </overlays>
              </configuration>
            </plugin>
          </plugins>
        </build>
      

      then

      mvn package && java -jar target/myway.war
      

      Note: it does exclude OWB faces-config.xml ATM to not fail for all applications not using JSF

        Attachments

          Activity

            People

            • Assignee:
              romain.manni-bucau Romain Manni-Bucau
              Reporter:
              romain.manni-bucau Romain Manni-Bucau
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: