jira-importer commented on issue #497:
URL: 
https://github.com/apache/maven-jlink-plugin/issues/497#issuecomment-2629363518

   **[Michael 
Ellis](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=michael51773)**
 commented
   
   I have the same issue.
   
   **WHEN BUILDING FROM THE COMMAND LINE**
   
   However, when issue the **mvn install** install command from the top level 
of my modular project, it works, but when I cs into the **mod-jlink** directory 
and perform the **mvn install** it fails with:
   
   ```
   
   [INFO] Scanning for projects...
   
   [INFO]
   
   [INFO] -----------------< com.soebes.examples.jdk9:mod-jlink 
>-----------------
   
   [INFO] Building mod-jlink 1.0-SNAPSHOT
   
   [INFO] -------------------------------[ jlink 
]--------------------------------
   
   [INFO]
   
   [INFO] — maven-jlink-plugin:3.0.0-alpha-1:jlink (default-jlink) @ mod-jlink —
   
   [INFO] Toolchain in maven-jlink-plugin: jlink [ 
/Library/Java/JavaVirtualMachines/jdk-11.0.6.jdk/Contents/Home/bin/jlink ]
   
   [INFO] 
------------------------------------------------------------------------
   
   [INFO] BUILD FAILURE
   
   [INFO] 
------------------------------------------------------------------------
   
   [INFO] Total time:  0.845 s
   
   [INFO] Finished at: 2020-06-05T11:28:12+01:00
   
   [INFO] 
------------------------------------------------------------------------
   
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-jlink-plugin:3.0.0-alpha-1:jlink (default-jlink) 
on project mod-jlink: Execution default-jlink of goal 
org.apache.maven.plugins:maven-jlink-plugin:3.0.0-alp
   ```
   
   **WHEN BUILDING FROM NETBEANS IDE**
   I get the same failure whether building the overall main project or just the 
mod-jlink project.
   
   Just discovered that I can fix things so the NetBeans can build the overall 
project by upgrading NetBeans to use 3.6.1 maven (rather than the maven that is 
bundled with Netbeans 11.3). However, just the command line invocation, 
NetBeans it fails to build if you explicitly select the mod-jlink project for 
building.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to