All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ml.digipost-xml-bind-jakarta.1.0-RC1.source-code.pom.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (C) Posten Bring AS

    Licensed 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>

    <parent>
        <groupId>no.digipost.xml</groupId>
        <artifactId>digipost-xml-parent</artifactId>
        <version>1.0-RC1</version>
    </parent>

    <artifactId>digipost-xml-bind-jakarta</artifactId>
    <name>Digipost XML - Binding (Jakarta)</name>

    <properties>
        <maven.compiler.release>11</maven.compiler.release>
    </properties>

    <dependencies>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>digipost-xml-fundamentals</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <!--
                This is a sort of hack to ensure the javax variant is built _before_ this
                module in the Maven multimodule reactor, as this module uses the former
                to generate its output. Maven does not have a "build time" scope (that I
                know of at least?), so this is as close as we get. The dependency is "provided"
                in the sense that it should not be included transitively in dependency resolution
                from dependants of this library. It is also marked "optional" to remove it from
                the dependency graph of dependants.
            -->
            <groupId>${project.groupId}</groupId>
            <artifactId>digipost-xml-bind-javax</artifactId>
            <version>${project.version}</version>
            <optional>true</optional>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>jakarta.xml.bind</groupId>
            <artifactId>jakarta.xml.bind-api</artifactId>
            <version>4.0.2</version>
        </dependency>
        <dependency>
            <groupId>org.jvnet.jaxb</groupId>
            <artifactId>jaxb-plugins-runtime</artifactId>
            <version>4.0.8</version>
            <optional>true</optional>
        </dependency>
    </dependencies>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <artifactId>maven-clean-plugin</artifactId>
                    <configuration>
                        <filesets>
                            <fileset>
                                <directory>src/main/java/no</directory>
                            </fileset>
                        </filesets>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>get-javax-sources</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>unpack</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>${project.groupId}</groupId>
                                    <artifactId>digipost-xml-bind-javax</artifactId>
                                    <version>${project.version}</version>
                                    <classifier>sources</classifier>
                                    <includes>**/*.java</includes>
                                </artifactItem>
                            </artifactItems>
                            <outputDirectory>src/main/java</outputDirectory>
                            <skipDuringIncrementalBuild>true</skipDuringIncrementalBuild>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.openrewrite.maven</groupId>
                <artifactId>rewrite-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>transform-to-jakarta-sources</id>
                        <phase>process-sources</phase>
                        <goals>
                            <goal>runNoFork</goal>
                        </goals>
                        <configuration>
                            <runPerSubmodule>true</runPerSubmodule>
                            <skipMavenParsing>true</skipMavenParsing>
                            <configLocation>rewrite.yml</configLocation>
                            <activeRecipes>
                                <recipe>org.openrewrite.java.migrate.jakarta.JavaxXmlBindMigrationToJakartaXmlBind</recipe>
                                <recipe>no.posten.ChangeJavaxPackageToJakarta</recipe>
                            </activeRecipes>
                        </configuration>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>org.openrewrite.recipe</groupId>
                        <artifactId>rewrite-migrate-java</artifactId>
                        <version>2.26.1</version>
                    </dependency>
                </dependencies>
            </plugin>
        </plugins>
    </build>

</project>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy