[
https://issues.apache.org/jira/browse/MPMD-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Dangel updated MPMD-257:
--------------------------------
Description:
in plugn where is property
[https://maven.apache.org/plugins/maven-pmd-plugin/pmd-mojo.html#analysisCache]
that suppose to enable/disable cache
but it is used only to allow set for cache location:
[https://github.com/apache/maven-pmd-plugin/blob/89687854bc1c965f26adbc78410f75e631f66088/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java#L678]
Pmd allow to skip warning is "-nocahe" is defined.
[https://github.com/pmd/pmd/blob/451815bf0a790805a6a38c1c8bfe798f2a5f04bd/pmd-core/src/main/java/net/sourceforge/pmd/PMD.java#L300]
Detected:
{code:java}
$ mvn pmd:pmd -Dpmd.analysisCache=false
...
[WARNING] This analysis could be faster, please consider using Incremental
Analysis:
https://pmd.github.io/pmd-6.1.0/pmd_userdocs_getting_started.html#incremental-analysis
..
{code}
Expected: no WARNING in output
no WARNING 'This analysis could be faster ...' when *analysisCache=false*
was:
in plugn where is property
https://maven.apache.org/plugins/maven-pmd-plugin/pmd-mojo.html#analysisCache
that suppose to enable/disable cache
but it is used only to allow set for cache location:
https://github.com/apache/maven-pmd-plugin/blob/89687854bc1c965f26adbc78410f75e631f66088/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java#L678
Pmd allow to skip warning is "-nocahe" is defined.
https://github.com/pmd/pmd/blob/451815bf0a790805a6a38c1c8bfe798f2a5f04bd/pmd-core/src/main/java/net/sourceforge/pmd/PMD.java#L300
Detected:
{code}
$ mvn pmd:pmd -Dpmd.analysisCache=false
...
[WARNING] This analysis could be faster, please consider using Incremental
Analysis:
https://pmd.github.io/pmd-6.1.0/pmd_userdocs_getting_started.html#incremental-analysis
..
{code}
Expected: no WARNING in output
> Allow to disable analysisCache completely, avoid warnings
> ---------------------------------------------------------
>
> Key: MPMD-257
> URL: https://issues.apache.org/jira/browse/MPMD-257
> Project: Maven PMD Plugin
> Issue Type: Bug
> Reporter: Roman Ivanov
> Assignee: Andreas Dangel
> Priority: Major
> Fix For: 3.10.0
>
>
> in plugn where is property
>
> [https://maven.apache.org/plugins/maven-pmd-plugin/pmd-mojo.html#analysisCache]
> that suppose to enable/disable cache
> but it is used only to allow set for cache location:
>
> [https://github.com/apache/maven-pmd-plugin/blob/89687854bc1c965f26adbc78410f75e631f66088/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java#L678]
> Pmd allow to skip warning is "-nocahe" is defined.
>
> [https://github.com/pmd/pmd/blob/451815bf0a790805a6a38c1c8bfe798f2a5f04bd/pmd-core/src/main/java/net/sourceforge/pmd/PMD.java#L300]
> Detected:
> {code:java}
> $ mvn pmd:pmd -Dpmd.analysisCache=false
> ...
> [WARNING] This analysis could be faster, please consider using Incremental
> Analysis:
> https://pmd.github.io/pmd-6.1.0/pmd_userdocs_getting_started.html#incremental-analysis
> ..
> {code}
> Expected: no WARNING in output
> no WARNING 'This analysis could be faster ...' when *analysisCache=false*
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)