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

Tilman Hausherr commented on PDFBOX-4639:
-----------------------------------------

The issue I linked didn't really help, I suspect the log4j folks improved their 
commit later. So I looked at their current sources, and what we should do is to 
put this in the non-app pom.xml files (pdfbox, fontbox, xmpbox, debugger, 
tools):
{code:java}
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-jar-plugin</artifactId>
    <configuration>
        <archive>
            <manifestEntries>
                
<Automatic-Module-Name>org.apache.fontbox</Automatic-Module-Name>
            </manifestEntries>
        </archive>
    </configuration>
</plugin>
{code}
and change the "Automatic-Module-Name" line for each module. I don't know what 
to do for the -app builds, but these shouldn't be used as libraries anyway 
(although I often do it myself LOL).

> Please add Automatic-Module-Name to MANIFEST.MF
> -----------------------------------------------
>
>                 Key: PDFBOX-4639
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4639
>             Project: PDFBox
>          Issue Type: New Feature
>    Affects Versions: 2.0.16
>            Reporter: Gili
>            Priority: Major
>
> When building a project that depends on pdfbox I get the following warning:
> {code:java}
> [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ extracto 
> ---
> [WARNING] 
> *****************************************************************************************************************************************
> [WARNING] * Required filename-based automodules detected: 
> [pdfbox-2.0.16.jar]. Please don't publish this project to a public artifact 
> repository! *
> [WARNING] 
> *****************************************************************************************************************************************{code}
> Please add Automatic-Module-Name to MANIFEST.MF to correct this.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to