1

Retrotranslator Maven Plugin を使用して、JDK1.4 より前の環境での開発を容易にしようとしています。xyz-core という Maven モジュールがあり、ユニバーサル バックポート パッケージとして使用したいパッケージ br.com.company.xyz.core.backport があります。

問題は、プラグインがパッケージを見つけられないことです。そのパッケージをこのプロジェクトにコピーすると、機能します。しかし、他の多くのプロジェクトで使用されるため、別のアーティファクトにバックポート パッケージが必要です。

ここにポンがあります:

<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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>br.com.company.xyz</groupId>
        <artifactId>xyz-parent</artifactId>
        <version>0.0.1-SNAPSHOT</version>
    </parent>

    <artifactId>xyz-test</artifactId>

    <dependencies>

        <dependency>
            <groupId>br.com.company.xyz</groupId>
            <artifactId>xyz-core</artifactId>
            <version>${project.version}</version>
        </dependency>

    </dependencies>

    <build>
        <plugins>

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>retrotranslator-maven-plugin</artifactId>
                <version>1.0-alpha-4</version>
                <configuration>
                    <classifier>ME</classifier>
                    <target>1.1</target>
                    <verbose>true</verbose>
                    <verify>true</verify>
                    <verifyClasspath>
                        <element>${basedir}/lib/rt.jar</element>
                    </verifyClasspath>
                    <backport>br.com.company.xyz.core.backport</backport>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>translate-project</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

        </plugins>
    </build>

</project>
4

0 に答える 0