Skip to content

Support Java Modules and Multi-Module Projects out of the box #373

@cowwoc

Description

@cowwoc

New feature, improvement proposal

Version 1.2.0

I've lost countless days trying to figure out why I was getting module-info.java related compiler errors when module-info was up-to-date. I eventually tracked it down to configuration problems with this extension.

Can you please make the following configuration the default, so JPMS and multi-module reactors work properly out of the box without unexpected failures?

<cache xmlns="http://maven.apache.org/BUILD-CACHE-CONFIG/1.2.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://maven.apache.org/BUILD-CACHE-CONFIG/1.2.0 https://maven.apache.org/xsd/build-cache-config-1.2.0.xsd">
	<configuration>
		<projectVersioning adjustMetaInf="true" calculateProjectVersionChecksum="true"/>
	</configuration>
	<executionControl>
		<reconcile>
			<plugins>
				<plugin artifactId="maven-compiler-plugin" goal="compile">
					<reconciles>
						<reconcile propertyName="source"/>
						<reconcile propertyName="target"/>
						<reconcile propertyName="debug"/>
						<reconcile propertyName="debuglevel"/>
						<reconcile propertyName="compilerArgs"/>
					</reconciles>
				</plugin>
				<plugin artifactId="maven-jar-plugin" goal="jar">
					<reconciles>
						<reconcile propertyName="archive"/>
						<reconcile propertyName="classifier"/>
					</reconciles>
				</plugin>
				<plugin artifactId="maven-install-plugin" goal="install">
					<reconciles>
						<reconcile propertyName="file"/>
						<reconcile propertyName="pomFile"/>
						<reconcile propertyName="classifier"/>
					</reconciles>
				</plugin>
				<plugin artifactId="duplicate-finder-maven-plugin" goal="check">
					<reconciles>
						<reconcile propertyName="skip" skipValue="true"/>
						<reconcile propertyName="quiet" skipValue="true"/>
					</reconciles>
				</plugin>
				<plugin artifactId="maven-enforcer-plugin" goal="enforce">
					<reconciles>
						<reconcile propertyName="skip" skipValue="true"/>
					</reconciles>
					<nologs>
						<nolog propertyName="commandLineRules"/>
					</nologs>
				</plugin>
			</plugins>
		</reconcile>
	</executionControl>
</cache>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions