2026-05-20 06:22:30 +00:00
2025-07-30 16:42:22 +02:00
2025-07-30 16:42:22 +02:00
2025-12-02 15:12:41 +01:00
2026-05-20 06:22:30 +00:00

This is a first working state of the plugin. It has not been tested thoroughly. It has not been tested on windows at all.

This allows you to mix .java and .jav files in a single project. The plugin should resolve dependencies automatically and compile the files in the correct order.

However, circular dependencies between .java and .jav files are not allowed as both compilers can read .class files but neither is aware of the other compilers' source files.

In theory, this should not be a problem as JavaTX is supposed to be a superset of Java. In practice however, there are features missing in JavaTX that Java supports (e.g. Arrays)

Installation

First you need to install the current version of the JavaTXCompiler to your local maven repository. To do so run

mvn install -DskipTests

in the root directory of the compiler.

With the compiler available in the local repository, you can run

mvn install

in the root of this directory. This will install the plugin to your local maven repository.

Then you can use the plugin in an arbitrary maven project by adding the plugin to your project's pom.xml.

<build>
    <plugins>
        <plugin>
            <groupId>de.dhbwstuttgart</groupId>
            <artifactId>javatx-compiler-plugin</artifactId>
            <version>1.0-SNAPSHOT</version>
            <!-- Currently this is the way to override the mvn:compile lifecycle step with this plugin instead of the standard one -->
            <executions>
                <execution>
                    <id>custom-compile</id>
                    <phase>compile</phase>
                    <goals>
                        <goal>compile-javatx</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

        ... additional plugins
    </plugins>
</build>

Now you can use the typical mvn:compile to compile the project. If that fails you may try mvn javatx-compiler-plugin:compile-javatx as there could be a bug with overwriting the compile maven lifecycle phase.

S
Description
No description provided
Readme 2.8 MiB
Languages
Java 53.9%
ANTLR 46.1%