[ 
https://issues.apache.org/jira/browse/NETBEANS-2397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16833320#comment-16833320
 ] 

Geertjan Wielenga commented on NETBEANS-2397:
---------------------------------------------

My guess is that you need to configure --module-path and so on explicitly in 
your POM, since NetBeans simply reads what's in the POM, while possibly other 
tools might automatically put Maven modules that contain a module-info 
automatically onto the module path, which is why this sample works in one tool 
and not in NetBeans. If you can provide the command line that you use to run 
the project on the command line, we can figure out how to put it in a Maven POM.

> Java's provide ... with NOT working in maven projects
> -----------------------------------------------------
>
>                 Key: NETBEANS-2397
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2397
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 11.0
>         Environment: Windows10
>            Reporter: Martin
>            Priority: Blocker
>         Attachments: netbeans11_sample.mp4, sample.zip, vscode_sample.mp4
>
>
> Please check the attached sample.
>  
> The sample is working with VS Code and IntelliJ Idea.
> Also working when doing with "old school" netbeans (ant) projects.
>  
> Please fix urgently!
>  
> Some linker problem?
>  
> --------
> Problem is
>  * mavenproject1 uses I_Sample
>  * mavenproject2 provides I_Sample with SampleImpl
>  * mavenproject3 requires mavenproject1 and mavenproject2
>  
> When you debug or run mavenproject3
>  * it will call mavenproject1.Sample.load
>  * since mavenproject2 is required, the serviceloader must return the loaded 
> SampleImpl instance BUT IT DOES NOT
>  
>  



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

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to