Stephen Colebourne created MCOMPILER-329:
--------------------------------------------

             Summary: Compile fails with optional and scope test sections with 
JPMS modules
                 Key: MCOMPILER-329
                 URL: https://issues.apache.org/jira/browse/MCOMPILER-329
             Project: Maven Compiler Plugin
          Issue Type: Bug
    Affects Versions: 3.7.0
         Environment: Windows 10, Maven v3.5.2
            Reporter: Stephen Colebourne
         Attachments: maven-issue2.zip

Attached is a simple project that demonstrates this bug. The pom.xml has one 
significant dependency - Guava, an automatic module.

The same dependency is added twice - once declared optional and once declared 
as scope=test. In addition, the module-info declares the dependency using 
`requires static`.

The duplicate dependency causes the plugin problems determining the modulepath, 
as the result is the error "module not found". It isn't clear whether the 
module isn't being added to the modulepath or whether it is there and not being 
seen.

While this may be an odd setup, it greatly complicated finding SUREFIRE-1501



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to