Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-dev] Forbidden reference set to warning in AbstractJavaProjectConfigurator

Hi All,

In the internal AbstractJavaProjectConfigurator, the java compiler option about forbidden reference is set to warning here: https://github.com/eclipse/m2e-core/blob/master/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java#L517

I now want to set forbidden access rule on runtime scoped dependencies with "**" pattern, and set this option to error. In this way, referenced classes from runtime scope will case an error in eclipse, like in command line maven.

What do you think about it? What was the purpose to set it to warning? Is it related to tycho/eclipse plugin development?

As I see, it is set only if there is no already a user specified value. However, during project import it will be true (unless .settings is committed to VCS).

Best regards,

-- Laszlo Varadi

Back to the top