archetype-resources.pom.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdi-camel-jetty-archetype
Show all versions of cdi-camel-jetty-archetype
Creates a new Camel route using CDI in a standalone Java Container using Jetty as HTTP server
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>${groupId}</groupId> <artifactId>${artifactId}</artifactId> <version>${version}</version> <packaging>jar</packaging> <name>Fabric8 :: Quickstarts :: CDI :: Camel with Jetty as HTTP server</name> <description>Camel route using CDI in a standalone Java Container using Jetty as HTTP server</description> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <!-- fabric8 version --> <fabric8.version>2.2.75</fabric8.version> <docker.maven.plugin.version>0.13.6</docker.maven.plugin.version> <!-- configure the versions you want to use here --> <camel.version>${camel-version}</camel.version> <weld.version>${weld-version}</weld.version> <!-- Docker & Fabric8 Configs --> <docker.from>fabric8/s2i-java:1.2</docker.from> <fabric8.dockerUser>fabric8/</fabric8.dockerUser> <docker.image>${fabric8.dockerUser}${project.artifactId}:${project.version}</docker.image> <docker.port.container.jolokia>8778</docker.port.container.jolokia> <docker.port.container.http>8080</docker.port.container.http> <fabric8.service.name>qs-cdi-camel-jetty</fabric8.service.name> <fabric8.service.port>9102</fabric8.service.port> <fabric8.service.containerPort>8080</fabric8.service.containerPort> <!-- Start Prometheus metrics stuff. --> <fabric8.metrics.scrape>true</fabric8.metrics.scrape> <fabric8.metrics.port>9779</fabric8.metrics.port> <!-- End Prometheus metrics stuff --> <fabric8.label.component>${project.artifactId}</fabric8.label.component> <fabric8.label.container>java</fabric8.label.container> <fabric8.label.group>quickstarts</fabric8.label.group> <fabric8.iconRef>camel</fabric8.iconRef> </properties> <dependencyManagement> <dependencies> <!-- import fabric8 platfrom bom first --> <dependency> <groupId>io.fabric8</groupId> <artifactId>fabric8-project-bom-with-platform-deps</artifactId> <version>${fabric8.version}</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-parent</artifactId> <version>${camel.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <dependencies> <!-- camel --> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-core</artifactId> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-cdi</artifactId> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-jetty</artifactId> </dependency> <!-- cdi api --> <dependency> <groupId>javax.enterprise</groupId> <artifactId>cdi-api</artifactId> <version>1.2</version> <scope>provided</scope> </dependency> <!-- cdi container --> <dependency> <groupId>org.jboss.weld.se</groupId> <artifactId>weld-se</artifactId> <version>${weld.version}</version> </dependency> <dependency> <groupId>org.jboss.weld</groupId> <artifactId>weld-core</artifactId> <version>${weld.version}</version> </dependency> <dependency> <groupId>org.apache.deltaspike.cdictrl</groupId> <artifactId>deltaspike-cdictrl-weld</artifactId> </dependency> <!-- logging --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </dependency> <!-- testing --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.arquillian.junit</groupId> <artifactId>arquillian-junit-container</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>io.fabric8</groupId> <artifactId>fabric8-arquillian</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.shrinkwrap.resolver</groupId> <artifactId>shrinkwrap-resolver-impl-maven</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <finalName>${project.artifactId}</finalName> <plugins> <!-- Compiler plugin enforces Java 1.7 compatibility and activates annotation processors --> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.3</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.18.1</version> <inherited>true</inherited> <configuration> <excludes> <exclude>**/*KT.java</exclude> </excludes> </configuration> </plugin> <plugin> <groupId>io.fabric8</groupId> <artifactId>fabric8-maven-plugin</artifactId> <version>${fabric8.version}</version> <executions> <execution> <id>json</id> <phase>generate-resources</phase> <goals> <goal>json</goal> </goals> </execution> <execution> <id>attach</id> <phase>package</phase> <goals> <goal>attach</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>io.fabric8</groupId> <artifactId>hawt-app-maven-plugin</artifactId> <version>${fabric8.version}</version> <executions> <execution> <id>hawt-app</id> <goals> <goal>build</goal> </goals> <configuration> <javaMainClass>org.apache.camel.cdi.Main</javaMainClass> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.jolokia</groupId> <artifactId>docker-maven-plugin</artifactId> <version>${docker.maven.plugin.version}</version> <configuration> <images> <image> <name>${docker.image}</name> <build> <from>${docker.from}</from> <assembly> <basedir>/deployments</basedir> <descriptorRef>hawt-app</descriptorRef> </assembly> <env> <JAVA_LIB_DIR>/deployments/lib</JAVA_LIB_DIR> <JAVA_MAIN_CLASS>org.apache.camel.cdi.Main</JAVA_MAIN_CLASS> </env> </build> </image> </images> </configuration> </plugin> <!-- allows the route to be ran via 'mvn exec:java' --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.4.0</version> <configuration> <mainClass>org.apache.camel.cdi.Main</mainClass> </configuration> </plugin> </plugins> </build> <!-- Default sample commands: mvn -Pf8-build ... build Docker images and create OpenShift deployment configs mvn -Pf8-deploy ... f8-build + push to Docker registry + applying deployment config to OpenShift mvn -Pf8-local-deploy ... deployment for a single node setup without pushing to a registry For individual goal usage please consult the fabric8 documentation --> <profiles> <profile> <id>f8-build</id> <build> <defaultGoal>clean install docker:build fabric8:json</defaultGoal> </build> </profile> <profile> <id>f8-deploy</id> <properties> <fabric8.imagePullPolicySnapshot>Always</fabric8.imagePullPolicySnapshot> <fabric8.recreate>true</fabric8.recreate> </properties> <build> <defaultGoal>clean install docker:build docker:push fabric8:json fabric8:apply</defaultGoal> </build> </profile> <profile> <id>f8-local-deploy</id> <properties> <fabric8.recreate>true</fabric8.recreate> </properties> <build> <defaultGoal>clean install docker:build fabric8:json fabric8:apply</defaultGoal> </build> </profile> </profiles> </project>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy