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

Leif Gruenwoldt commented on MJLINK-49:
---------------------------------------

Thank-you Benjamin.

The integration test for MJLINK-26 was exactly what I was looking for and that 
helped me get my own project working.

[https://github.com/apache/maven-jlink-plugin/tree/master/src/it/projects/MJLINK-26]

Perhaps before closing this just the documentation should be updated to say 
single maven projects are supported. This  paragraph below to me suggests it is 
not supported and confused me:

"Usually you will use the Maven JLink Plugin to create a Run Time Image from 
one or more modules within a multi module build. In other words it is not 
possible to create a Run Time Image from a single Maven Project within the same 
single Maven Project. Let us assume you have a multi module structure which 
contains two modules"

https://maven.apache.org/plugins/maven-jlink-plugin/usage.html

 

 

 

> Add support for single maven projects
> -------------------------------------
>
>                 Key: MJLINK-49
>                 URL: https://issues.apache.org/jira/browse/MJLINK-49
>             Project: Maven JLink Plugin
>          Issue Type: Improvement
>    Affects Versions: 3.0.0-alpha-1
>            Reporter: Leif Gruenwoldt
>            Priority: Major
>
> This initially took me a while to figure out, but the documentation says the 
> plugin currently won't work for a single maven project and requires a 
> multi-module project. To me this is a huge assumption for Java projects. For 
> example not a single one of my projects is multi-module and I rarely see 
> other multi-module projects, so this seems like a large limitation right now. 
> My work around for this limitation is to run the jlink command outside of 
> mvn, without the jlink plugin. But I'd love to perform the jlink step within 
> my pom.xml if single maven project support were added,
> "Usually you will use the Maven JLink Plugin to create a Run Time Image from 
> one or more modules within a multi module build. In other words it is not 
> possible to create a Run Time Image from a single Maven Project within the 
> same single Maven Project. Let us assume you have a multi module structure 
> which contains two modules"
> https://maven.apache.org/plugins/maven-jlink-plugin/usage.html



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to