You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2016/11/28 21:38:58 UTC

[jira] [Comment Edited] (PDFBOX-3192) Animal sniffer maven plugin doesn't detect non java 5 api usage within the 1.8 branch

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

Andreas Lehmkühler edited comment on PDFBOX-3192 at 11/28/16 9:38 PM:
----------------------------------------------------------------------

We have to use >= java 7 to run maven itself due to some issues with the encr<ption algorithms used by nexus. Any hint how to include that in a maven job for the compile part? 

UPDATE: I've found a way, BUT that would include a hardcoded reference to the jdk in the parent pom.xml. That doesn't work for us as every user would have to change or delete that configuration from the pom to compile 1.8

{code}
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <target>1.5</target>
          <source>1.5</source>
	  <compilerArguments>
            <bootclasspath>/home/lehmi/bin/jdk1.5.0_22/jre/lib/rt.jar${path.separator}/home/lehmi/bin/jdk1.5.0_22/jre/lib/jce.jar</bootclasspath>
          </compilerArguments>
        </configuration>
      </plugin>
 {code}


was (Author: lehmi):
We have to use >= java 7 to run maven itself due to some issues with the encr<ption algorithms used by nexus. Any hint how to include that in a maven job for the compile part? 

> Animal sniffer maven plugin doesn't detect non java 5 api usage within the 1.8 branch
> -------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-3192
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3192
>             Project: PDFBox
>          Issue Type: Improvement
>    Affects Versions: 1.8.11
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.8.14
>
>
> PDFBOX-2891 enables the animal sniffer plugin but it doesn't work for test classes.
> [~tilman] already opened a ticket
> {quote}
> I've opened an issue here:
> https://github.com/mojohaus/animal-sniffer/issues/5
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org