You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2017/10/19 01:50:00 UTC

[jira] [Created] (JCRVLT-214) auto-import package analyzer needs option to exclude compiletime bundles

Tobias Bocanegra created JCRVLT-214:
---------------------------------------

             Summary: auto-import package analyzer needs option to exclude compiletime bundles
                 Key: JCRVLT-214
                 URL: https://issues.apache.org/jira/browse/JCRVLT-214
             Project: Jackrabbit FileVault
          Issue Type: Improvement
          Components: package maven plugin
            Reporter: Tobias Bocanegra
            Assignee: Tobias Bocanegra
             Fix For: package-maven-plugin-1.0.0


due to the setup of the class analyzer, it is almost impossible to get a clean class path for detecting the unused jars. also, for HTL scripting validation support, certain libraries, like the HTL script compiler are not really project dependencies, but only using at runtime.
but we can't use the maven _runtime_ scope to declare those dependencies, otherwise they don't get added to the compile classpath.

suggest to add new property:

- *{{ignoredUnusedLibs}}* comma separated string of partial maven coordinates of libraries to ignored in the import package analyzer. 

example:

{code}
<plugin>
    <groupId>org.apache.jackrabbit</groupId>
    <artifactId>filevault-package-maven-plugin</artifactId>
    <extensions>true</extensions>
    <configuration>
        <ignoredUnusedLibraries>
            org.osgi:org.osgi.service.component.annotations,
            org.osgi:org.osgi.service.metatype.annotations,
            org.osgi:osgi.annotation
    </configuration>
</plugin>



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)