You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Stephan van Hulst (JIRA)" <ji...@apache.org> on 2019/02/19 16:33:00 UTC
[jira] [Created] (NETBEANS-2146) Exclude source files from Source
Packages node when excluded from Maven build in compiler plugin
configuration
Stephan van Hulst created NETBEANS-2146:
-------------------------------------------
Summary: Exclude source files from Source Packages node when excluded from Maven build in compiler plugin configuration
Key: NETBEANS-2146
URL: https://issues.apache.org/jira/browse/NETBEANS-2146
Project: NetBeans
Issue Type: Improvement
Components: projects - Generic Projects UI, projects - Maven
Affects Versions: 10.0
Environment: Product Version: Apache NetBeans IDE 10.0 (Build incubator-netbeans-release-380-on-20181217)
Updates: Updates available to version NetBeans 8.2 Patch 2
Java: 11.0.2; OpenJDK 64-Bit Server VM 11.0.2+9
Runtime: OpenJDK Runtime Environment 11.0.2+9
System: Windows 8.1 version 6.3 running on amd64; Cp1252; en_US (nb)
Build Tool: Maven 3.6.0
Reporter: Stephan van Hulst
I have a Maven project that is built with compiler source and target version 8. Because the source directory includes {{module-info.java}}, this project won't compile unless I exclude it from the build:
{code:xml}
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
<build>
<sourceDirectory>../src/main/java</sourceDirectory>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<excludes>module-info.java</excludes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
{code}
The project builds correctly, but the Source Packages node still includes the file, and displays it as containing errors because it requires at least Java 9.
It would be nice if source files excluded from the build would also be excluded from the Source Packages node, or at least grayed out and without displaying errors.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists