forked from piranhacloud/piranha
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes piranhacloud#4033 - Add Inject TCK for Piranha Web Profile
- Loading branch information
Showing
3 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>cloud.piranha.external.webprofiletck</groupId> | ||
<artifactId>project</artifactId> | ||
<version>24.10.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>inject-tck</artifactId> | ||
<packaging>pom</packaging> | ||
|
||
<name>Piranha Web Profile - Inject TCK</name> | ||
|
||
<properties> | ||
<tck.home>${project.build.directory}/tck</tck.home> | ||
</properties> | ||
|
||
<dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>cloud.piranha</groupId> | ||
<artifactId>bom</artifactId> | ||
<version>${project.version}</version> | ||
<type>pom</type> | ||
<scope>import</scope> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-antrun-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>pre-integration-test</id> | ||
<phase>pre-integration-test</phase> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
<configuration> | ||
<target> | ||
<echo>Executing UNIX profile</echo> | ||
|
||
<!-- Download, unzip and rename TCK --> | ||
<get src="https://download.eclipse.org/jakartaee/dependency-injection/2.0/jakarta.inject-tck-${inject.tck.version}-bin.zip" | ||
dest="${project.build.directory}/tck.zip" | ||
skipexisting="true"/> | ||
<unzip src="${project.build.directory}/tck.zip" | ||
dest="${project.build.directory}"/> | ||
<move file="${project.build.directory}/jakarta.inject-tck-${inject.tck.version}" | ||
tofile="${project.build.directory}/tck"/> | ||
|
||
<!-- Install the TCK into local Maven repository --> | ||
<exec executable="mvn"> | ||
<arg value="install:install-file"/> | ||
<arg value="-Dfile=${project.build.directory}/tck/jakarta.inject-tck-${inject.tck.version}.jar"/> | ||
</exec> | ||
|
||
<!-- Setup example/pom.xml for correct Weld version --> | ||
<replaceregexp file="${tck.home}/example/pom.xml" | ||
match="<weld.version>(.*)</weld.version>" | ||
replace="<weld.version>${weld.version}</weld.version>" | ||
byline="true"/> | ||
</target> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>integration-test</id> | ||
<phase>integration-test</phase> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
<configuration> | ||
<target> | ||
<!-- Run the tests --> | ||
<exec dir="${project.build.directory}/tck/example" | ||
executable="mvn" | ||
failonerror="true"> | ||
<arg value="verify"/> | ||
</exec> | ||
</target> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters