ba1ba8455d
* Added parent module on poms that have no parent defined * Removed dependency reduced pom from undertow module * Defined the integration profile in the parent * 21.02 - pom cleanup * 21.02 - pom cleanup * 21.02 - pom cleanup * 21.02 - pom cleanup * Spring-dependency injection * BAEL-1683-Guide to Java Clock class * BAEL-1683-Guide to Java Clock class * added article link * added article link * fixed link * refactoring packages and using generics * BAEL-717: Singleton Session Bean. (#4046) * BAEL-717: Singleton EJB Bean Files for BAEL-717:Singleton EJB Bean. * BAEL-717: Singleton EJB Bean Corrected Indentation. * BAEL-717: Singleton EJB Bean Corrected Indentation. * BAEL-717: Singleton EJB Bean Corrected Indentation. * BAEL-717: Singleton EJB Bean Corrected Indentation. * BAEL-717: Singleton EJB Bean Changed artifactId value. * BAEL-717: Singleton EJB Bean. Added module for Singleton EJB Bean. * BAEL-717: Singleton EJB Bean. Removed Singleton EJB Bean Module. * BAEL-717: Singleton EJB Bean Changed the JNDI Lookup name. * BAEL-717: Singleton EJB Bean. Added the "singleton-ejb-bean" module. * BAEL-717: Singleton EJB Bean. Corrected Indentation. * BAEL-717: Singleton EJB Bean Corrected Indentation. * BAEL-717: Singleton EJB Bean. Corrected Indentation. * BAEL-717: Singleton EJB Bean. Corrected Indentation. * BAEL-717:Singleton EJB Bean. Corrected Indentation. * BAEL-717:Singleton EJB Bean. Corrected Indentation. * BAEL-717: Singleton Session Bean. Added class for Bean-Managed concurrrency. Changed class name from CountryStateCacheBean to CountryStateContainerManagedBean. * BAEL-717: Singleton Session Bean. Changing the name of the class to CountryStateContainerManagedBean. * BAEL-717: Singleton Session Bean. Added method to test Bean-Managed concurrency. * Get Latest. * deleting CountryStateBeanManagedBean for new file. * deleting CountryStateCacheBean for new file. * deleting CountryStateContainerManagedBean for new file. * BAEL-717: Singleton Session Bean. Adding file for Bean with Bean-Managed concurrency. Changing file name for original file to CountryStateContainerManagedBean with Container-Managed concurrency. * Deleting file for new checkin. * BAEL-717: Singleton Session Bean. Added test case for Bean-Manged concurrency. Change in JNDI names. * BAEL-717: Singleton Session Bean. Changed the assert method parameter order and null check in test cases. * BAEL-717:Singleton Session Bean Removed volatile keyword for the variable countryStatesMap. Marking it as final. * [BAEL-1641] Find all pairs of numbers in an array that add up to a given sum (#3890) * [BAEL-1641] Find all pairs of numbers in an array that add up to a given sum * Commiting editor's suggested changes * Commiting article Spring Data Reactive Mongo DB microservice in Kotlin * Revert commit for BAEL 1687 - Moving those files to a new branch * Use AssertJ and BDD-style on unit testing * BAEL 1639: added singleton examples and test. (#3977) * BAEL-1701 (#4012) * BAEL-1701: Create SQSApplication, add most functionality (still need to format, and add queue monitoring) * BAEL-1701: Complete examples * added article links * removed folder "SpringDependencyInjection" e Please enter the commit message for your changes. Lines starting * BAEL-1706 - optional parameters in java (#4050) * BAEL-1706 - optional parameters in java * minor adjustments per review * add tests * fix formatting * fix constructor issue with MultiVitaminOverloading * BAEL-1706 Test name change, formatting * working with booleans in thymeleaf (#4061) * BAEL-1725 Java Pass-by-reference vs Pass-by-value - First commit (#4058) * BAEL-1725 Java Pass-by-reference vs Pass-by-value - First commit * updated test cases * Update README.md * Demonstration of Java assert * BAEL-1679 (#3959) * BAEL-1412 add java 8 spring data features * BAEL-21 new HTTP API overview * BAEL-21 fix executor * BAEL-1432 add custom gradle task * BAEL-1567 add samples of cookie and session in serlvet * BAEL-1567 use stream api * BAEL-1567 fix optional * BAEL-1679 add query annotation jpa spring data * BAEL-1679 added new junits * BAEL-1679 use assertJ, use givenWhenThen naming convention * 21.02 - pom cleanup * 21.02 - pom cleanup * 21.02 - pom cleanup * spring-data final * service locator pattern * service locator pattern * variable name changes * Spring MVC @PathVariable dot (.) get truncated * testing changes * Update README files (#4065) * BAEL-1612: Update README * BAEL-1562: Update README * BAEL-1562: Update README * BAEL-1369 * BAEL-1369 * BAEL-1369 * remove comments * Back-link corrected (#4071) * Back-link corrected (#4073) * Back-link added (#4074) * Back-link added (#4075) * Back-link added (#4076) * Back-link added (#4077) * Back-link added (#4078) * Back-link added (#4080) * Back-link added (#4081) * Back-link added (#4083) * Back-link corrected (#4086) * Back-link added (#4087) * Back-link added (#4091) * Back-link added (#4089) * added example code for Java mail (#4101) * Back-link added (#4099) * Back-link added (#4088) * Back-link added (#4082) * 21.02 - pom cleanup * 21.02 - pom cleanup * 21.02 - pom cleanup * 21.02 - pom cleanup
288 lines
9.3 KiB
XML
288 lines
9.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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>com.baeldung</groupId>
|
|
<artifactId>deltaspike</artifactId>
|
|
<version>1.0</version>
|
|
<packaging>war</packaging>
|
|
<name>deltaspike</name>
|
|
<description>A starter Java EE 7 webapp which uses DeltaSpike</description>
|
|
<url>http://wildfly.org</url>
|
|
<licenses>
|
|
<license>
|
|
<name>Apache License, Version 2.0</name>
|
|
<distribution>repo</distribution>
|
|
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
|
|
</license>
|
|
</licenses>
|
|
|
|
<parent>
|
|
<groupId>com.baeldung</groupId>
|
|
<artifactId>parent-modules</artifactId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<!-- JBoss distributes a complete set of Java EE 7 APIs including a Bill
|
|
of Materials (BOM). A BOM specifies the versions of a "stack" (or a collection)
|
|
of artifacts. We use this here so that we always get the correct versions
|
|
of artifacts. Here we use the jboss-javaee-7.0-with-tools stack (you can
|
|
read this as the JBoss stack of the Java EE 7 APIs, with some extras tools
|
|
for your project, such as Arquillian for testing) and the jboss-javaee-7.0-with-hibernate
|
|
stack you can read this as the JBoss stack of the Java EE 7 APIs, with extras
|
|
from the Hibernate family of projects) -->
|
|
<dependency>
|
|
<groupId>org.wildfly.bom</groupId>
|
|
<artifactId>jboss-javaee-7.0-with-tools</artifactId>
|
|
<version>${jboss.bom.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.wildfly.bom</groupId>
|
|
<artifactId>jboss-javaee-7.0-with-hibernate</artifactId>
|
|
<version>${jboss.bom.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<dependencies>
|
|
|
|
<!-- First declare the APIs we depend on and need for compilation. All
|
|
of them are provided by JBoss WildFly -->
|
|
|
|
<!-- Import the CDI API, we use provided scope as the API is included in
|
|
JBoss WildFly -->
|
|
<dependency>
|
|
<groupId>javax.enterprise</groupId>
|
|
<artifactId>cdi-api</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- Import the Common Annotations API (JSR-250), we use provided scope
|
|
as the API is included in JBoss WildFly -->
|
|
<dependency>
|
|
<groupId>org.jboss.spec.javax.annotation</groupId>
|
|
<artifactId>jboss-annotations-api_1.2_spec</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- Import the JAX-RS API, we use provided scope as the API is included
|
|
in JBoss WildFly -->
|
|
<dependency>
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
<artifactId>jaxrs-api</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- Import the JPA API, we use provided scope as the API is included in
|
|
JBoss WildFly -->
|
|
<dependency>
|
|
<groupId>org.hibernate.javax.persistence</groupId>
|
|
<artifactId>hibernate-jpa-2.1-api</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- Import the EJB API, we use provided scope as the API is included in
|
|
JBoss WildFly -->
|
|
<dependency>
|
|
<groupId>org.jboss.spec.javax.ejb</groupId>
|
|
<artifactId>jboss-ejb-api_3.2_spec</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- JSR-303 (Bean Validation) Implementation -->
|
|
<!-- Provides portable constraints such as @Email -->
|
|
<!-- Hibernate Validator is shipped in JBoss WildFly -->
|
|
<dependency>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-validator</artifactId>
|
|
<scope>provided</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<!-- Import the JSF API, we use provided scope as the API is included in
|
|
JBoss WildFly -->
|
|
<dependency>
|
|
<groupId>org.jboss.spec.javax.faces</groupId>
|
|
<artifactId>jboss-jsf-api_2.2_spec</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- Now we declare any tools needed -->
|
|
|
|
<!-- Annotation processor to generate the JPA 2.0 metamodel classes for
|
|
typesafe criteria queries -->
|
|
<dependency>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-jpamodelgen</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- Annotation processor that raising compilation errors whenever constraint
|
|
annotations are incorrectly used. -->
|
|
<dependency>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-validator-annotation-processor</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- Optional, but highly recommended -->
|
|
<!-- Arquillian allows you to test enterprise code such as EJBs and Transactional(JTA)
|
|
JPA from JUnit/TestNG -->
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian.junit</groupId>
|
|
<artifactId>arquillian-junit-container</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian.protocol</groupId>
|
|
<artifactId>arquillian-protocol-servlet</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jboss.shrinkwrap.resolver</groupId>
|
|
<artifactId>shrinkwrap-resolver-impl-maven</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.deltaspike.modules</groupId>
|
|
<artifactId>deltaspike-data-module-api</artifactId>
|
|
<version>${deltaspike.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.deltaspike.modules</groupId>
|
|
<artifactId>deltaspike-data-module-impl</artifactId>
|
|
<version>${deltaspike.version}</version>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
|
|
<!-- querydsl libraries -->
|
|
<dependency>
|
|
<groupId>com.mysema.querydsl</groupId>
|
|
<artifactId>querydsl-apt</artifactId>
|
|
<version>${querydsl.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.mysema.querydsl</groupId>
|
|
<artifactId>querydsl-jpa</artifactId>
|
|
<version>${querydsl.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<!-- Maven will append the version to the finalName (which is the name
|
|
given to the generated war, and hence the context root) -->
|
|
<finalName>${project.artifactId}</finalName>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
<version>${war.plugin.version}</version>
|
|
<configuration>
|
|
<!-- Java EE 7 doesn't require web.xml, Maven needs to catch up! -->
|
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.mysema.maven</groupId>
|
|
<artifactId>apt-maven-plugin</artifactId>
|
|
<version>${apt-maven-plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>process</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>target/generated-sources/java</outputDirectory>
|
|
<processor>com.mysema.query.apt.jpa.JPAAnnotationProcessor</processor>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<!-- The WildFly plugin deploys your war to a local WildFly container -->
|
|
<!-- To use, run: mvn package wildfly:deploy -->
|
|
<plugin>
|
|
<groupId>org.wildfly.plugins</groupId>
|
|
<artifactId>wildfly-maven-plugin</artifactId>
|
|
<version>${wildfly.maven.plugin.version}</version>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<!-- The default profile skips all tests, though you can tune it to run
|
|
just unit tests based on a custom pattern -->
|
|
<!-- Seperate profiles are provided for running all tests, including Arquillian
|
|
tests that execute in the specified container -->
|
|
<id>default</id>
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>${maven-surefire-plugin.version}</version>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<!-- An optional Arquillian testing profile that executes tests in your
|
|
WildFly instance -->
|
|
<!-- This profile will start a new WildFly instance, and execute the test,
|
|
shutting it down when done -->
|
|
<!-- Run with: mvn clean test -Parq-wildfly-managed -->
|
|
<id>arq-wildfly-managed</id>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.wildfly</groupId>
|
|
<artifactId>wildfly-arquillian-container-managed</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<properties>
|
|
<!-- Explicitly declaring the source encoding eliminates the following
|
|
message: -->
|
|
<!-- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
|
|
resources, i.e. build is platform dependent! -->
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<querydsl.version>3.7.4</querydsl.version>
|
|
<deltaspike.version>1.7.2</deltaspike.version>
|
|
<!-- JBoss dependency versions -->
|
|
<wildfly.maven.plugin.version>1.0.2.Final</wildfly.maven.plugin.version>
|
|
<!-- Define the version of the JBoss BOMs we want to import to specify
|
|
tested stacks. -->
|
|
<jboss.bom.version>8.2.2.Final</jboss.bom.version>
|
|
<!-- other plugin versions -->
|
|
<war.plugin.version>2.6</war.plugin.version>
|
|
<apt-maven-plugin.version>1.1.3</apt-maven-plugin.version>
|
|
</properties>
|
|
|
|
</project>
|