| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| Licensed to the Apache Software Foundation (ASF) under one or more | |
| contributor license agreements. See the NOTICE file distributed with | |
| this work for additional information regarding copyright ownership. | |
| The ASF licenses this file to You under the Apache License, Version 2.0 | |
| (the "License"); you may not use this file except in compliance with | |
| the License. You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software | |
| distributed under the License is distributed on an "AS IS" BASIS, | |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| See the License for the specific language governing permissions and | |
| limitations under the License. | |
| --> | |
| <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>org.superbiz</groupId> | |
| <artifactId>scala-basic</artifactId> | |
| <packaging>jar</packaging> | |
| <version>11.0.0-SNAPSHOT</version> | |
| <name>TomEE :: Examples :: Basic Scala</name> | |
| <properties> | |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
| <scala.version>2.13</scala.version> | |
| <scala.full-version>${scala.version}.15</scala.full-version> | |
| </properties> | |
| <repositories> | |
| <repository> | |
| <releases> | |
| <enabled>false</enabled> | |
| </releases> | |
| <id>apache-m2-snapshot</id> | |
| <name>Apache Snapshot Repository</name> | |
| <url>https://repository.apache.org/content/groups/snapshots</url> | |
| </repository> | |
| </repositories> | |
| <build> | |
| <defaultGoal>install</defaultGoal> | |
| <sourceDirectory>src/main/scala</sourceDirectory> | |
| <testSourceDirectory>src/test/scala</testSourceDirectory> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| <version>3.14.1</version> | |
| <configuration> | |
| <source>17</source> | |
| <target>17</target> | |
| <release>17</release> | |
| </configuration> | |
| </plugin> | |
| <!-- compile scala sources --> | |
| <plugin> | |
| <groupId>net.alchim31.maven</groupId> | |
| <artifactId>scala-maven-plugin</artifactId> | |
| <version>4.9.7</version> | |
| <executions> | |
| <execution> | |
| <goals> | |
| <goal>compile</goal> | |
| <goal>testCompile</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| <configuration> | |
| <scalaVersion>${scala.full-version}</scalaVersion> | |
| </configuration> | |
| </plugin> | |
| <!-- disable surefire because we use scalatest --> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <version>3.5.3</version> | |
| <configuration> | |
| <skipTests>true</skipTests> | |
| </configuration> | |
| </plugin> | |
| <!-- enable scalatest as a replacement for surefire --> | |
| <plugin> | |
| <groupId>org.scalatest</groupId> | |
| <artifactId>scalatest-maven-plugin</artifactId> | |
| <version>2.2.0</version> | |
| <configuration> | |
| <forkMode>never</forkMode> | |
| <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory> | |
| <junitxml>.</junitxml> | |
| <filereports>TestSuite.txt</filereports> | |
| </configuration> | |
| <executions> | |
| <execution> | |
| <id>test</id> | |
| <goals> | |
| <goal>test</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.apache.tomee.bom</groupId> | |
| <artifactId>tomee-webprofile-api</artifactId> | |
| <version>11.0.0-SNAPSHOT</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <!-- scala dependencies for run and testing --> | |
| <dependency> | |
| <groupId>org.scala-lang</groupId> | |
| <artifactId>scala-library</artifactId> | |
| <version>${scala.full-version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.scalatest</groupId> | |
| <artifactId>scalatest_${scala.version}</artifactId> | |
| <version>3.2.14</version> | |
| <scope>test</scope> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>org.scala-lang</groupId> | |
| <artifactId>scala-library</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <!-- other "classical" dependencies --> | |
| <dependency> | |
| <groupId>junit</groupId> | |
| <artifactId>junit</artifactId> | |
| <version>4.13.2</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.tomee.bom</groupId> | |
| <artifactId>tomee-webprofile</artifactId> | |
| <version>11.0.0-SNAPSHOT</version> | |
| <scope>test</scope> | |
| </dependency> | |
| </dependencies> | |
| <!-- This section allows you to configure where to publish libraries for | |
| sharing. It is not required and may be deleted. For more information see: | |
| http://maven.apache.org/plugins/maven-deploy-plugin/ --> | |
| <distributionManagement> | |
| <repository> | |
| <id>localhost</id> | |
| <url>file://${basedir}/target/repo/</url> | |
| </repository> | |
| <snapshotRepository> | |
| <id>localhost</id> | |
| <url>file://${basedir}/target/snapshot-repo/</url> | |
| </snapshotRepository> | |
| </distributionManagement> | |
| </project> |