GithubHelp home page GithubHelp logo

adobe / aemanalyser-maven-plugin Goto Github PK

View Code? Open in Web Editor NEW
23.0 14.0 20.0 7.17 MB

A Maven plugin used by developers who develop Java components for AEMaaCS (AEM as a Cloud Service) during their local Java builds to ensure that their components work correctly in when deployed to AEM as a Cloud Service.

License: Apache License 2.0

Java 100.00%

aemanalyser-maven-plugin's Introduction

AEM Analyser Maven Plugin Project

This project contains the AEM Analyser Maven Plugin, a parent pom. It also contains the AEM Analyser Core project for code shared with other projects.

For more details on

Contributing

Contributions are welcomed! Read the Contributing Guide for more information.

Licensing

This project is licensed under the Apache V2 License. See LICENSE for more information.

aemanalyser-maven-plugin's People

Contributors

abhishekgarg18 avatar anchela avatar bosschaert avatar buuhuu avatar cschneider avatar cziegeler avatar dependabot[bot] avatar dominiksuess avatar herzog31 avatar jsedding avatar karlpauls avatar kwin avatar niekraaijmakers avatar renovate[bot] avatar rombert avatar stefanseifert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aemanalyser-maven-plugin's Issues

NPE when processing embedded content packages

It looks like there is an NPE when processing embedded (subcontent-packages).

[INFO] Processing sub-content package 'we.retail.apps.communities-1.0.zip'...
[WARNING] Package does not specify a version. setting to ''
[WARNING] Package properties not valid. need group and name property.
[INFO] ------------------------------------------------------------------------
...
[ERROR] Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:0.0.14:convert (default-convert) on project analyser: Content Package Converter Exception: NullPointerException -> [Help 1]

New check for order of run modes

While OSGi configurations in /apps/.../config.author.dev is considered it isn't in /apps/.../config.dev.author. A check would be nice which would validate

  • the order of run modes
  • the run mode values

Environment specific OSGi bundles are rejected while environment specific OSGi configuration are not

A package containing an OSGi bundle below /apps/myapp/install.author.dev is rejected while a package containing an OSGi configuration below /apps/myapp/config.author.dev is accepted.
This is due to the fact that the filterPatterns are set in

.

IMHO both configurations and bundles should be treated the same, because both are first party citizens of a feature model.
Also multiple run modes lead correctly to different feature models.

I can only imagine that multiple run modes are a problem for embedded subpackages, as they are not as separate as OSGi bundles and configurations.

analyse error: Artifact requires [aem-guides-wknd.core/0.0.6] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))" when compiled with Java 8

When you execute mvn verify on https://github.com/kwin/aem-analyser-example/tree/analyse-failure-with-java8 with Java 8 you get

[ERROR] com.adobe.aem.guides:aem-guides-wknd.core:0.0.6: Artifact com.adobe.aem.guides:aem-guides-wknd.core:0.0.6 requires [aem-guides-wknd.core/0.0.6] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))" in start level 20 but no artifact is providing a matching capability in this start level.
[ERROR] Analyser detected errors on feature 'biz.netcentric.aem:aem-analyser-example:slingosgifeature:aggregated-author.prod:0.0.1-SNAPSHOT'. See log output for error messages.

No error is emitted with Java 11! The capability version of osgi.ee should not be derived from Java version of the Maven build but rather from the Java version AEM is running with (always 11 for AEMaaCS).

Provide "skip" property

As a good maven citizen, every maven plugin should provide a "skip" property, with a command line "user property" to allow to skip the execution of the mojo either via plugin config or maven property/command line property.

Failure with checking capabilities for bundled scripts

The project at https://github.com/kwin/aem-analyser-example/tree/bundled-scripts-failure exposes the following error

INFO] Analyzing feature 'simpleGroupId:simpleArtifactId-cloud-all-container:slingosgifeature:aggregated-author:1.0.0-SNAPSHOT' finished : 1 warnings, 1 errors.
[WARNING] Project is configured with outdated SDK version : 2021.6.5382.20210602T190018Z-210527
[WARNING] Please update to SDK version : 2021.7.5662.20210726T181801Z-210600
[WARNING] The analyser found the following warnings for author and publish : 
[WARNING] simpleGroupId:simpleArtifactId-cloud-base-core:1.0.0-SNAPSHOT: Bundle simpleArtifactId-cloud-base-core:1.0.0-SNAPSHOT is importing package(s) [java.lang, java.lang.annotation] without specifying a version range. (simpleGroupId:simpleArtifactId-cloud-all-container:1.0.0-SNAPSHOT)
[ERROR] The analyser found the following errors for author and publish : 
[ERROR] simpleGroupId:simpleArtifactId-cloud-base-core:1.0.0-SNAPSHOT: Artifact simpleGroupId:simpleArtifactId-cloud-base-core:1.0.0-SNAPSHOT requires [simpleArtifactId-cloud-base-core/1.0.0.202107301332] sling.servlet; filter:="(&(!(sling.servlet.selectors=*))(sling.servlet.resourceTypes=/libs/core/wcm/components/container/v1/container))" in start level 20 but no artifact is providing a matching capability in this start level. (simpleGroupId:simpleArtifactId-cloud-all-container:1.0.0-SNAPSHOT)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for SimpleName 1.0.0-SNAPSHOT:
[INFO] 
[INFO] SimpleName ......................................... SUCCESS [  0.084 s]
[INFO] SimpleName - Base - Core ........................... SUCCESS [  1.214 s]
[INFO] SimpleName - All - Container Package ............... FAILURE [ 14.301 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  16.312 s
[INFO] Finished at: 2021-07-30T15:32:47+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:1.0.12:project-analyse (aem-analyser) on project simpleArtifactId-cloud-all-container: One or more feature analyser(s) detected feature error(s), please read the plugin log for more details -> [Help 1]
[ERROR] 

This is despite the fact that the aem-sdk provides the necessary capability. Something seems to be not working with the "requirements-capabilities" analyser.

Use latest SDK version

Currently the plugin uses the SDK version as configured in the project. However, the latest SDK should be used instead.
With this we should also remove the possibility to configure the SDK artifact - the coordinates for that artifact are fixed and do not change. We can leave the configuration option for the version to be able to not use the latest one

Allow to exclude certain tasks

Currently it is only possible to completely override the default task list from

public static final String DEFAULT_TASKS = "requirements-capabilities,"
. via parameter analyserTasks ( )

In most of the cases consumer of the plugin are rather interested in only disabling a certain task, but otherwise stick to the default. For a use case look at #15 which would require to just exclude task "requirements-capabilities".

ArrayIndexOutOfBoundException when running the analyser with AEM Release -2021.8.5705.20210810T082946Z-210700

The below exception occurs when analysing an AEM project with AEM Release 2021.8.5705.20210810T082946Z-210700

Caused by: java.lang.ArrayIndexOutOfBoundsException: arraycopy: source index -1 out of bounds for char[65536]
at java.lang.System.arraycopy (Native Method)
at org.apache.johnzon.core.JsonStreamParserImpl.doAutoAdjust (JsonStreamParserImpl.java:197)
at org.apache.johnzon.core.JsonStreamParserImpl.appendToCopyBuffer (JsonStreamParserImpl.java:164)
at org.apache.johnzon.core.JsonStreamParserImpl.readString (JsonStreamParserImpl.java:623)
at org.apache.johnzon.core.JsonStreamParserImpl.handleQuote (JsonStreamParserImpl.java:694)
at org.apache.johnzon.core.JsonStreamParserImpl.internalNext (JsonStreamParserImpl.java:452)
at org.apache.johnzon.core.JsonStreamParserImpl.internalNext (JsonStreamParserImpl.java:412)
at org.apache.johnzon.core.JohnzonJsonParserImpl.next (JohnzonJsonParserImpl.java:50)
at org.apache.johnzon.core.JsonReaderImpl.parseObject (JsonReaderImpl.java:170)
at org.apache.johnzon.core.JsonReaderImpl.parseObject (JsonReaderImpl.java:182)
at org.apache.johnzon.core.JsonReaderImpl.parseObject (JsonReaderImpl.java:182)
at org.apache.johnzon.core.JsonReaderImpl.parseObject (JsonReaderImpl.java:182)
at org.apache.johnzon.core.JsonReaderImpl.readValue (JsonReaderImpl.java:89)
at org.apache.johnzon.core.JsonReaderImpl.read (JsonReaderImpl.java:67)
at org.apache.johnzon.core.JsonReaderImpl.readObject (JsonReaderImpl.java:141)
at org.apache.sling.feature.io.json.FeatureJSONReader.readFeature (FeatureJSONReader.java:676)
at org.apache.sling.feature.io.json.FeatureJSONReader.read (FeatureJSONReader.java:77)

analyse error: Unable to get artifact

The following error is emitted when building the example project at https://github.com/kwin/aem-analyser-example/tree/analyse-failed-with-wrong-maven-gav

[INFO] --- aemanalyser-maven-plugin:0.0.14:aggregate (default-aggregate) @ aem-analyser-example ---
[INFO] Using SDK Version for analysis: Dependency {groupId=com.adobe.aem, artifactId=aem-sdk-api, version=2020.11.4506.20201112T235200Z-201028, type=jar}
[INFO]
[INFO] --- aemanalyser-maven-plugin:0.0.14:analyse (default-analyse) @ aem-analyser-example ---
[INFO] Starting analyzing feature 'biz.netcentric.aem:aem-analyser-example:slingosgifeature:aggregated:0.0.1-SNAPSHOT'...
Downloading from nexus: https://repo.int.netcentric.biz/nexus/content/groups/public/bcpkix/bcpkix/1.64/bcpkix-1.64.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  9.957 s
[INFO] Finished at: 2020-11-20T09:15:03+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:0.0.14:analyse (default-analyse) on project aem-analyser-example: Exception during analysing feature biz.netcentric.aem:aem-analyser-example:slingosgifeature:aggregated:0.0.1-SNAPSHOT : Unable to get artifact for bcpkix:bcpkix:1.64: Could not find artifact bcpkix:bcpkix:jar:1.64 in nexus (https://repo.int.netcentric.biz/nexus/content/groups/public/)
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR]     mvn install:install-file -DgroupId=bcpkix -DartifactId=bcpkix -Dversion=1.64 -Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR]     mvn deploy:deploy-file -DgroupId=bcpkix -DartifactId=bcpkix -Dversion=1.64 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR]
[ERROR]   bcpkix:bcpkix:jar:1.64
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR]   nexus (https://repo.int.netcentric.biz/nexus/content/groups/public/, releases=true, snapshots=true)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Obviously it uses the wrong GAV for artifact https://search.maven.org/artifact/org.bouncycastle/bcpkix-jdk15on/1.64/jar which is referenced transitively in https://github.com/Netcentric/accesscontroltool/blob/c82f6adc78ceeee0b511001e43b81379dc13d3da/accesscontroltool-package/pom.xml#L110. Obviously something is wrong while determining the GAV of this bundle.

Improve ERROR logging on malformed RepoInit scripts

Expected Behaviour

Being able to easily troubleshoot issues reported by AEM Analyzer.

Ideally the src file (full src path), src line and line fragment would be displayed.

If too hard, path to compiled JSON in target folder, with actual file line # is reported (current line number is the line number IN the repoInit JSON Object, NOT in the .json file. To find the offending line, you need to copy ONLY the RepoInit JSON blob out of the .json file into a new file, and then look for the reported line #.

Actual Behaviour

When a RepoInit error occurrs, the error is:

{code}
[ERROR] repoinit: Parsing error in repoinit from extension : Encountered "" at line 1792, column 22.
Was expecting one of:
[ERROR] Analyser detected errors on feature 'com.adobe.aem.examples:examples.analyse:slingosgifeature:aggregated-publish.stage:1.0.0-SNAPSHOT'. See log output for error messages.
{code}

Reproduce Scenario (including but not limited to)

Create a repoinit script with the malformed rule:

{code}
create path /content/foo(Sling:Folder
{code}

Steps to Reproduce

Platform and Version

AEM analyzer version shipped with Archetype 25

Sample Code that illustrates the problem

Logs taken while reproducing problem

Provide Maven Site

A Maven generated Plugin Site would be beneficial because it automatically documents all goals and its parameters in a standard way. The result could be hosted e.g with Github Pages.

Create analyser which replicates the logic from CQBP-84

The Sonar rule described in https://experienceleague.adobe.com/docs/experience-manager-cloud-manager/using/how-to-use/custom-code-quality-rules.html?lang=en#product-apis-annotated-with-providertype-should-not-be-implemented-or-extended-by-customers is currently only executed in Cloud Manager.
It would be helpful to check the code for implementation of interfaces marked as "providertype" even locally.

Recently the check has been raised to Critical severity which triggers issues e.g. in

  1. ACS AEM Commons: Adobe-Consulting-Services/acs-aem-commons#2604
  2. ACTool: Netcentric/accesscontroltool#584
  3. AEM Easy Content Upgrade (AECU): valtech/aem-easy-content-upgrade#156

Raise warning to errors once decommissioning of deprecated packages is near

There is already a WARNING raised in case a deprecated API is used in the code via the analyser https://github.com/apache/sling-org-apache-sling-feature-extension-apiregions/blob/master/src/main/java/org/apache/sling/feature/extension/apiregions/analyser/CheckDeprecatedApi.java. This is often not noticed by developers, so there should be configuration parameter to raise this warning to an error (failing the build) in case the decommissioning date according to https://experienceleague.adobe.com/docs/experience-manager-cloud-service/release-notes/deprecated-apis.html?lang=en comes closer.
This probably requires publishing that information in a machine-readable way. The configuration parameter should allow to define a time span from which on the WARN is raised to an ERROR automatically (by default 4 weeks prior to removal).

Enable the repoinit analyser by default

Expected Behaviour

Enable repoinit checks if the plug-in is not configured explicitly. The repoinit plug-in is quick, does nothing if no repoinit extensions are present and is very useful. We should enable it by default.

Actual Behaviour

Repoinit checks are not activated.

Reproduce Scenario (including but not limited to)

Not applicable.

Steps to Reproduce

Not applicable.

Platform and Version

Not applicable.

Sample Code that illustrates the problem

Not applicable.

Logs taken while reproducing problem

Not applicable.

Support analysing a content-package artifact with a specific classifier

FileVault Package Maven Plugin supports generating a package with a specific classifier (https://jackrabbit.apache.org/filevault-package-maven-plugin/package-mojo.html#classifier). This is used e.g. in Core WCM Components to optionally generate a package specifically for AEMaaCS (https://github.com/adobe/aem-core-wcm-components/blob/a1e312f98b79e164e7d4d270abb07dc419f14fa2/all/pom.xml#L240) in addition to the regular package for AEM Classic (without classifier).

To support checking only the package for Cloud and not the Classic one (primary project artifact without classifier) the lookup in

should be enhanced to optionally use the artifact with a specific classifier.

Addon classifiers not used when locating SDK feature model

When using addons the SDK feature model cannot be found because its configured classifier is not considered, which gives error messages like this:

[ERROR] Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:1.0.1-SNAPSHOT:project-analyse (aem-analyser) on project testing-forms-cloud.all: Execution aem-analyser of goal com.adobe.aem:aemanalyser-maven-plugin:1.0.1-SNAPSHOT:project-analyse failed: Unable to read feature file /Users/david/.m2/repository/com/adobe/aem/aem-forms-sdk-api/2021.05.12.04/aem-forms-sdk-api-2021.05.12.04.jar for com.adobe.aem:aem-forms-sdk-api:2021.05.12.04: javax.json.stream.JsonParsingException: Unexpected character 'P' (Codepoint: 80) on [lineNumber=1, columnNumber=2, streamOffset=1]. Reason is [[Expected structural character or digit or 't' or 'n' or 'f' or '-']] -> [Help 1]

AEM Analyser Plugin v1.1.2 has internal dependencies that cannot be resolved (follow-up to issue 91)

Expected Behaviour

Context: AEM as a Cloud maven project workspace
When bumping up the AEM Analyser Plugin version to 1.1.2, the plugin will execute and analyse the workspace artifacts

Actual Behaviour

The plugin version 1.1.2 apparently has "internal dependencies" which cannot be downloaded from outside Adobe, which causes the plugin to fail

Steps to Reproduce

In the root pom.xml, set the plugin version to 1.1.2:

<aemanalyser.version>1.1.2</aemanalyser.version>

In the "all" module, run the plugin with goal "project-analyse"

        <plugin>
            <groupId>com.adobe.aem</groupId>
            <artifactId>aemanalyser-maven-plugin</artifactId>
            <executions>
                <execution>
                    <id>aem-analyser</id>
                    <goals>
                        <goal>project-analyse</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

Make sure to not override any plugin dependencies in the root pom.xml

    <!-- AEM Analyser Plugin -->
    <plugin>
      <groupId>com.adobe.aem</groupId>
      <artifactId>aemanalyser-maven-plugin</artifactId>
      <version>${aemanalyser.version}</version>
      <extensions>true</extensions>
    </plugin>

Platform and Version

<aem.sdk.api>2021.6.5561.20210622T143945Z-210600</aem.sdk.api> but shouldn't really matter
AEM as as Cloud project based on archetype v28

Sample Code that illustrates the problem

(see above)

Logs taken while reproducing problem

[INFO] --- aemanalyser-maven-plugin:1.1.2:project-analyse (aem-analyser) @ customername.all ---
[INFO] artifact com.adobe.aem:aem-sdk-api: checking for updates from adobe-public-releases
[INFO] artifact com.adobe.aem:aem-sdk-api: checking for updates from central
[INFO] Using detected SDK Version for analysis: com.adobe.aem:aem-sdk-api:2021.8.5705.20210810T082946Z-210700

...

[INFO] Building aggregate feature model aggregated-author.prod...
[INFO] Building aggregate feature model aggregated-author.dev...
[INFO] Building aggregate feature model aggregated-publish.prod...
[INFO] Building aggregate feature model aggregated-publish.stage...
[INFO] Building aggregate feature model aggregated-author.stage...
[INFO] Building aggregate feature model aggregated-publish.dev...
[INFO] Starting analyzing feature 'com.example:customername.all:slingosgifeature:aggregated-author.prod:1.0.0-SNAPSHOT'...

Downloading from adobe-public-releases: http://repo.adobe.com/nexus/content/groups/public/org/apache/sling/org.apache.sling.metrics.osgi.collector/0.1.0-T20200317112827-d4c51d6/org.apache.sling.metrics.osgi.collector-0.1.0-T20200317112827-d4c51d6.jar

Downloading from central: https://repo.maven.apache.org/maven2/org/apache/sling/org.apache.sling.metrics.osgi.collector/0.1.0-T20200317112827-d4c51d6/org.apache.sling.metrics.osgi.collector-0.1.0-T20200317112827-d4c51d6.jar

(these downloads fail)

NPE when AEM SDK dependency cannot be found

Just try to build https://github.com/kwin/aem-analyser-example/tree/npe-with-missing-sdk-dependency.

It fails with

[INFO] --- aemanalyser-maven-plugin:0.0.14:aggregate (default-aggregate) @ aem-analyser-example ---
[DEBUG] Configuring mojo com.adobe.aem:aemanalyser-maven-plugin:0.0.14:aggregate from plugin realm ClassRealm[extension>com.adobe.aem:aemanalyser-maven-plugin:0.0.14, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@55054057]
[DEBUG] Configuring mojo 'com.adobe.aem:aemanalyser-maven-plugin:0.0.14:aggregate' with basic configurator -->
[DEBUG]   (f) enableLegacyVariableReplacement = false
[DEBUG]   (f) enableProjectVariableReplacement = true
[DEBUG]   (f) features = /Users/konradwindszus/workspaces/netcentric-cq/aem-analyser-example/src/main/features
[DEBUG]   (f) featuresIncludes = **/*.json
[DEBUG]   (f) generatedFeaturesIncludes = **/*.json
[DEBUG]   (f) mavenSession = org.apache.maven.execution.MavenSession@424f02b8
[DEBUG]   (f) project = MavenProject: biz.netcentric.aem:aem-analyser-example:0.0.1-SNAPSHOT @ /Users/konradwindszus/workspaces/netcentric-cq/aem-analyser-example/pom.xml
[DEBUG]   (f) sdkArtifactId = aem-sdk-api
[DEBUG]   (f) sdkGroupId = com.adobe.aem
[DEBUG]   (f) skipAddFeatureDependencies = false
[DEBUG]   (f) skipAddJarToFeature = false
[DEBUG]   (f) skipAddJarToTestFeature = false
[DEBUG]   (f) skipAddTestFeatureDependencies = true
[DEBUG]   (f) testFeatures = /Users/konradwindszus/workspaces/netcentric-cq/aem-analyser-example/src/test/features
[DEBUG]   (f) testFeaturesIncludes = **/*.json
[DEBUG]   (f) validateFeatures = true
[DEBUG] -- end configuration --
[DEBUG] Reading feature file /Users/konradwindszus/workspaces/netcentric-cq/aem-analyser-example/target/cp-conversion/fm.out/accesscontroltool-package-stage.json
[DEBUG] Reading feature file /Users/konradwindszus/workspaces/netcentric-cq/aem-analyser-example/target/cp-conversion/fm.out/accesscontroltool-package.json
[DEBUG] Reading feature file /Users/konradwindszus/workspaces/netcentric-cq/aem-analyser-example/target/cp-conversion/fm.out/accesscontroltool-package-dev.json
[DEBUG] Reading feature file /Users/konradwindszus/workspaces/netcentric-cq/aem-analyser-example/target/cp-conversion/fm.out/accesscontroltool-package-prod.json
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.771 s
[INFO] Finished at: 2020-11-20T09:03:48+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:0.0.14:aggregate (default-aggregate) on project aem-analyser-example: Execution default-aggregate of goal com.adobe.aem:aemanalyser-maven-plugin:0.0.14:aggregate failed.: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:0.0.14:aggregate (default-aggregate) on project aem-analyser-example: Execution default-aggregate of goal com.adobe.aem:aemanalyser-maven-plugin:0.0.14:aggregate failed.
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:564)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-aggregate of goal com.adobe.aem:aemanalyser-maven-plugin:0.0.14:aggregate failed.
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:564)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.NullPointerException
    at com.adobe.aem.analyser.mojos.AggregateWithSDKMojo.getSDKFromDependencies (AggregateWithSDKMojo.java:146)
    at com.adobe.aem.analyser.mojos.AggregateWithSDKMojo.getSDKFeatureModel (AggregateWithSDKMojo.java:118)
    at com.adobe.aem.analyser.mojos.AggregateWithSDKMojo.getFinalAggregates (AggregateWithSDKMojo.java:99)
    at com.adobe.aem.analyser.mojos.AggregateWithSDKMojo.execute (AggregateWithSDKMojo.java:69)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:564)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

A more meaningful exception should be thrown here.

NPE in analyser plugin

When running the Analyser plugin on a 'plain vanilla' project the following exception appears:

Caused by: java.lang.NullPointerException
    at java.util.ArrayList.addAll (ArrayList.java:702)
    at com.adobe.aem.analyser.AemAnalyser.getTierMessages (AemAnalyser.java:281)
    at com.adobe.aem.analyser.AemAnalyser.logOutput (AemAnalyser.java:291)
    at com.adobe.aem.analyser.AemAnalyser.analyse (AemAnalyser.java:220)
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.analyseFeatures (AemAnalyseMojo.java:303)
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.execute (AemAnalyseMojo.java:209)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137

NPE at org.apache.sling.feature.extension.apiregions.analyser.CheckDeprecatedApi.checkBundlesForRegion

With https://github.com/kwin/aemanalyser-maven-plugin/tree/bugfix/readd-osgi-core-dep I run into the following NPE with on an existing container package:

[INFO] - Executing Region Deprecated API analyser task [region-deprecated-api]...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:17 min
[INFO] Finished at: 2021-05-23T13:46:56+02:00
[INFO] ------------------------------------------------------------------------
[DEBUG] No threads registered for execution at the end of the build
[ERROR] Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:1.0.1-SNAPSHOT:project-analyse (analyser) on project kaw-website-complete-package: A fatal error occurred while analysing the features, see error cause:: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:1.0.1-SNAPSHOT:project-analyse (analyser) on project kaw-website-complete-package: A fatal error occurred while analysing the features, see error cause:
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: A fatal error occurred while analysing the features, see error cause:
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.analyseFeatures (AemAnalyseMojo.java:320)
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.execute (AemAnalyseMojo.java:209)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.NullPointerException
    at org.apache.sling.feature.extension.apiregions.analyser.CheckDeprecatedApi.checkBundlesForRegion (CheckDeprecatedApi.java:100)
    at org.apache.sling.feature.extension.apiregions.analyser.CheckDeprecatedApi.execute (CheckDeprecatedApi.java:70)
    at org.apache.sling.feature.analyser.Analyser.analyse (Analyser.java:222)
    at com.adobe.aem.analyser.AemAnalyser.analyse (AemAnalyser.java:190)
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.analyseFeatures (AemAnalyseMojo.java:303)
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.execute (AemAnalyseMojo.java:209)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Create analyser which fails when OSGi configurations/bundles are outside expected locations

Although the package com.composum.nodes:composum-nodes-aem-package:2.6.5 is a perfectly valid AEM package, it cannot be deployed to AEMaaCS.

Its inclusion in a container package leads to the following error in cp2fm executed by Cloud Manager:

๏ฟฝ[0m๏ฟฝ[91m[INFO] Apache Sling Content Package to Sling Feature converter FAILURE๏ฟฝ[0m๏ฟฝ[91m
๏ฟฝ[0m๏ฟฝ[91m[INFO] +-----------------------------------------------------+๏ฟฝ[0m๏ฟฝ[91m
๏ฟฝ[0m๏ฟฝ[91m[ERROR] Unable to convert content-package [/tmp/packages/my-container-package-1.0.0-SNAPSHOT.zip]: OSGi configuration are only considered if placed below a folder called 'config', but the configuration at '/jcr_root/libs/composum/nodes/install/org.apache.sling.jcr.base.internal.LoginAdminWhitelist.fragment-composum_core_v2.config' is placed outside!๏ฟฝ[0m๏ฟฝ[91m
๏ฟฝ[0m๏ฟฝ[91m[INFO] +-----------------------------------------------------+
๏ฟฝ[0m๏ฟฝ[91m[INFO] Total time: 9 seconds
๏ฟฝ[0m๏ฟฝ[91m[INFO] Finished at: Mon Jul 12 16:27:39 UTC 2021๏ฟฝ[0m๏ฟฝ[91m
๏ฟฝ[0m๏ฟฝ[91m[INFO] Final Memory: 54M/132M๏ฟฝ[0m๏ฟฝ[91m
๏ฟฝ[0m๏ฟฝ[91m[INFO] +-----------------------------------------------------+๏ฟฝ[0m๏ฟฝ[91m
๏ฟฝ[0mThe command '/bin/sh -c CP2SF_BINARY="/tmp/cpconverter/bin/cp2fm" ./preparePackages.sh src/main/features src/main/docker/container/root/opt/aem/content-refs/packages.csv $failonMixedPackage $packageLocations' returned a non-zero code: 1
2021/07/12 16:27:40 Container failed during run: build-image. No retries remaining.
failed to run step ID: build-image: exit status 1

Run ID: caeywd failed after 2m47s. Error: failed during run, err: exit status 1

This is due to the fact, that cp2fm as configured in AEMaaCS does not support configurations below install (https://issues.apache.org/jira/browse/SLING-10278). Such errors should be detected by aemanalyser-maven-plugin already.

Avoid dependency to slingfeature-maven-plugin

The aemanalyser plugin currently depends on the slingfeature-maven-plugin. This dependency is problematic and unnecessary.
First of all it creates a long chain of dependencies. If we need to update parts of the feature model artifacts, we first need to release the maven plugin as well, just to get the update into the aemanalyser plugin
In addition the sling-maven-plugin has some functionality which is unneeded, the aemanalyser plugin uses internals of the slingfeature maven plugin and we need more control over the aggregation and analysis to ensure consistency with AEM Cloud Service.

Building with Java 8 does not work

The property <project.java.version> is set to 8. But 8 is not fulfilled by Java 8 (as that still emits 1.8 as version number).
Therefore you run into the error when trying to build the project with Java 8

INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-and-java) @ aemanalyser-maven-plugin ---
[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message:
Detected JDK Version: 1.8.0-181 is not in the allowed range 8.

Using 1.8 should work fine for both source (https://docs.oracle.com/javase/8/docs/technotes/tools/windows/javac.html and https://docs.oracle.com/en/java/javase/11/tools/javac.html#GUID-AEEC9F07-CB49-4E96-8BC7-BCC2C7F725C9) and requireJavaVersion in both Java 8 and 11.

Check for newer plugin versions

We should add a functionality to check for newer versions of the plugin and report this to the users.
It seems maven plugin versions are rarely updated and with a clear message about a new version, we can push out new functionality a little bit faster

Clarify usage in dedicated module vs usage in existing content packages

Look at adobe/aem-project-archetype#679 for a concrete issue with using a dedicated module. The readme still refers usage of a dedicated package.As it never makes sense to deploy anything for the analysis I would rather recommend always enabling that on an existing content-package module and get rid of the packaging aem-analyse (especially as now we have only one Mojo so there is no added value through a lifecycle configuration for a custom packaging)

Rename repository

Now that this repository contains more than just the Maven plugin (it also contains a command-line tool) we should rename the repository to be more generic. For example we could just rename it to: aemanalyser.

tmp folder not cleaned up after run

With every execution of aemanalyser-maven-plugin:project-analyse in version 1.0.4 there is three new folders below the Java tmp folder generated: one with prefix cp2fm-converter and two folders starting with prefix slingfeature. All three have a random number after the prefix.
All three together have a substantial size (675MB). Each new build adds another three folders.

Please make sure to cleanup the java tmp folder so that there are no leftovers after the Maven build.

NPE in AEMAnalyser.analyse

I see the following NPE in my Maven output

....
Caused by: java.lang.NullPointerException
    at com.adobe.aem.analyser.AemAnalyser.analyse (AemAnalyser.java:184)
    at com.adobe.aem.analyser.mojos.AnalyseMojo.execute (AnalyseMojo.java:147)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions (MojoExecutor.java:355)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:200)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

This happens when a warning or error is given out for unknown classifiers like aggregated-author.cloud-ready as that map entry is not initialized in line 178ff.

aggregate failed: Unable to get artifact for com.adobe.aem:aem-sdk-api:slingosgifeature:aem-author-sdk:...

As there don't seem to be feature file artifacts available in https://repo1.maven.org/maven2/com/adobe/aem/aem-sdk-api I run into the following exception when executing com.adobe.aem:aemanalyser-maven-plugin:0.0.4:aggregate

[INFO] --- aemanalyser-maven-plugin:0.0.4:aggregate (aggregate) @ digitalxn-aem-all-container ---
Downloading from nexus: https://repo.int.netcentric.biz/nexus/content/groups/public/com/adobe/aem/aem-sdk-api/2020.9.4245.20200921T202853Z-200827/aem-sdk-api-2020.9.4245.20200921T202853Z-200827-aem-author-sdk.slingosgifeature
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  19.025 s
[INFO] Finished at: 2020-11-09T13:12:32+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:0.0.4:aggregate (aggregate) on project digitalxn-aem-all-container: Execution aggregate of goal com.adobe.aem:aemanalyser-maven-plugin:0.0.4:aggregate failed: Unable to get artifact for com.adobe.aem:aem-sdk-api:slingosgifeature:aem-author-sdk:2020.9.4245.20200921T202853Z-200827: Could not find artifact com.adobe.aem:aem-sdk-api:slingosgifeature:aem-author-sdk:2020.9.4245.20200921T202853Z-200827 in nexus (https://repo.int.netcentric.biz/nexus/content/groups/public/)
[ERROR] 
[ERROR] Try downloading the file manually from the project website.
[ERROR] 
[ERROR] Then, install it using the command: 
[ERROR]     mvn install:install-file -DgroupId=com.adobe.aem -DartifactId=aem-sdk-api -Dversion=2020.9.4245.20200921T202853Z-200827 -Dclassifier=aem-author-sdk -Dpackaging=slingosgifeature -Dfile=/path/to/file
[ERROR] 
[ERROR] Alternatively, if you host your own repository you can deploy the file there: 
[ERROR]     mvn deploy:deploy-file -DgroupId=com.adobe.aem -DartifactId=aem-sdk-api -Dversion=2020.9.4245.20200921T202853Z-200827 -Dclassifier=aem-author-sdk -Dpackaging=slingosgifeature -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR] 
[ERROR] 
[ERROR]   com.adobe.aem:aem-sdk-api:slingosgifeature:2020.9.4245.20200921T202853Z-200827
[ERROR] 
[ERROR] from the specified remote repositories:
[ERROR]   nexus (https://repo.int.netcentric.biz/nexus/content/groups/public/, releases=true, snapshots=true)
[ERROR] -> [Help 1]

Remove dependency to sling-feature-converter-maven-plugin

The aemanalyser plugin currently depends on the sling-feature-converter-maven-plugin. This dependency is problematic and unnecessary.
First of all it creates a long chain of dependencies. If we need to update the cpconverter, we first need to release the converter maven plugin as well, just to get the update into the aemanalyser plugin
In addition the sling-feature-converter-maven-plugin has some functionality which is unneeded and we need more control over the conversion to ensure consistency with AEM Cloud Service.

Content Package Converter Exception org/apache/jackrabbit/api/ReferenceBinary

With version 1.0.0 I see the following exception when executing analyse-project:

[ERROR] Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:1.0.0:project-analyse (analyser) on project kaw-website-complete-package: Content Package Converter Exception Content Package Converter Exception org/apache/jackrabbit/api/ReferenceBinary: org.apache.jackrabbit.api.ReferenceBinary -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:1.0.0:project-analyse (analyser) on project kaw-website-complete-package: Content Package Converter Exception Content Package Converter Exception org/apache/jackrabbit/api/ReferenceBinary
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: Content Package Converter Exception Content Package Converter Exception org/apache/jackrabbit/api/ReferenceBinary
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.convertContentPackages (AemAnalyseMojo.java:227)
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.execute (AemAnalyseMojo.java:203)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.io.IOException: Content Package Converter Exception org/apache/jackrabbit/api/ReferenceBinary
    at com.adobe.aem.analyser.AemPackageConverter.convert (AemPackageConverter.java:124)
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.convertContentPackages (AemAnalyseMojo.java:225)
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.execute (AemAnalyseMojo.java:203)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.NoClassDefFoundError: org/apache/jackrabbit/api/ReferenceBinary
    at org.apache.sling.feature.cpconverter.handlers.XmlConfigurationEntryHandler$JcrConfigurationHandler.onJcrRootElement (XmlConfigurationEntryHandler.java:74)
    at org.apache.sling.feature.cpconverter.shared.AbstractJcrNodeParser.onJcrRootNode (AbstractJcrNodeParser.java:64)
    at org.apache.sling.feature.cpconverter.shared.AbstractJcrNodeParser.startElement (AbstractJcrNodeParser.java:57)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement (AbstractSAXParser.java:509)
    at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement (AbstractXMLDocumentParser.java:182)
    at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement (XMLDTDValidator.java:766)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement (XMLDocumentFragmentScannerImpl.java:1339)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver.scanRootElementHook (XMLDocumentScannerImpl.java:1289)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next (XMLDocumentFragmentScannerImpl.java:3132)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next (XMLDocumentScannerImpl.java:852)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next (XMLDocumentScannerImpl.java:602)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument (XMLDocumentFragmentScannerImpl.java:505)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:842)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:771)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (XMLParser.java:141)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1213)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse (SAXParserImpl.java:643)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse (SAXParserImpl.java:327)
    at javax.xml.parsers.SAXParser.parse (SAXParser.java:195)
    at org.apache.sling.feature.cpconverter.shared.AbstractJcrNodeParser.parse (AbstractJcrNodeParser.java:49)
    at org.apache.sling.feature.cpconverter.handlers.XmlConfigurationEntryHandler.parseConfiguration (XmlConfigurationEntryHandler.java:45)
    at org.apache.sling.feature.cpconverter.handlers.AbstractConfigurationEntryHandler.handle (AbstractConfigurationEntryHandler.java:74)
    at org.apache.sling.feature.cpconverter.ContentPackage2FeatureModelConverter.process (ContentPackage2FeatureModelConverter.java:455)
    at org.apache.sling.feature.cpconverter.ContentPackage2FeatureModelConverter.onFile (ContentPackage2FeatureModelConverter.java:461)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:110)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:89)
    at org.apache.sling.feature.cpconverter.ContentPackage2FeatureModelConverter.processSubPackage (ContentPackage2FeatureModelConverter.java:359)
    at org.apache.sling.feature.cpconverter.handlers.ContentPackageEntryHandler.processSubPackage (ContentPackageEntryHandler.java:31)
    at org.apache.sling.feature.cpconverter.handlers.AbstractContentPackageHandler.handle (AbstractContentPackageHandler.java:93)
    at org.apache.sling.feature.cpconverter.ContentPackage2FeatureModelConverter.process (ContentPackage2FeatureModelConverter.java:455)
    at org.apache.sling.feature.cpconverter.ContentPackage2FeatureModelConverter.onFile (ContentPackage2FeatureModelConverter.java:461)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:110)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:89)
    at org.apache.sling.feature.cpconverter.ContentPackage2FeatureModelConverter.secondPass (ContentPackage2FeatureModelConverter.java:277)
    at org.apache.sling.feature.cpconverter.ContentPackage2FeatureModelConverter.convert (ContentPackage2FeatureModelConverter.java:225)
    at com.adobe.aem.analyser.AemPackageConverter.convert (AemPackageConverter.java:122)
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.convertContentPackages (AemAnalyseMojo.java:225)
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.execute (AemAnalyseMojo.java:203)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.ClassNotFoundException: org.apache.jackrabbit.api.ReferenceBinary
    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:50)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass (ClassRealm.java:271)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:247)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:239)
    at org.apache.sling.feature.cpconverter.handlers.XmlConfigurationEntryHandler$JcrConfigurationHandler.onJcrRootElement (XmlConfigurationEntryHandler.java:74)
    at org.apache.sling.feature.cpconverter.shared.AbstractJcrNodeParser.onJcrRootNode (AbstractJcrNodeParser.java:64)
    at org.apache.sling.feature.cpconverter.shared.AbstractJcrNodeParser.startElement (AbstractJcrNodeParser.java:57)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement (AbstractSAXParser.java:509)
    at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement (AbstractXMLDocumentParser.java:182)
    at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement (XMLDTDValidator.java:766)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement (XMLDocumentFragmentScannerImpl.java:1339)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver.scanRootElementHook (XMLDocumentScannerImpl.java:1289)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next (XMLDocumentFragmentScannerImpl.java:3132)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next (XMLDocumentScannerImpl.java:852)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next (XMLDocumentScannerImpl.java:602)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument (XMLDocumentFragmentScannerImpl.java:505)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:842)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:771)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (XMLParser.java:141)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1213)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse (SAXParserImpl.java:643)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse (SAXParserImpl.java:327)
    at javax.xml.parsers.SAXParser.parse (SAXParser.java:195)
    at org.apache.sling.feature.cpconverter.shared.AbstractJcrNodeParser.parse (AbstractJcrNodeParser.java:49)
    at org.apache.sling.feature.cpconverter.handlers.XmlConfigurationEntryHandler.parseConfiguration (XmlConfigurationEntryHandler.java:45)
    at org.apache.sling.feature.cpconverter.handlers.AbstractConfigurationEntryHandler.handle (AbstractConfigurationEntryHandler.java:74)
    at org.apache.sling.feature.cpconverter.ContentPackage2FeatureModelConverter.process (ContentPackage2FeatureModelConverter.java:455)
    at org.apache.sling.feature.cpconverter.ContentPackage2FeatureModelConverter.onFile (ContentPackage2FeatureModelConverter.java:461)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:110)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:89)
    at org.apache.sling.feature.cpconverter.ContentPackage2FeatureModelConverter.processSubPackage (ContentPackage2FeatureModelConverter.java:359)
    at org.apache.sling.feature.cpconverter.handlers.ContentPackageEntryHandler.processSubPackage (ContentPackageEntryHandler.java:31)
    at org.apache.sling.feature.cpconverter.handlers.AbstractContentPackageHandler.handle (AbstractContentPackageHandler.java:93)
    at org.apache.sling.feature.cpconverter.ContentPackage2FeatureModelConverter.process (ContentPackage2FeatureModelConverter.java:455)
    at org.apache.sling.feature.cpconverter.ContentPackage2FeatureModelConverter.onFile (ContentPackage2FeatureModelConverter.java:461)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:110)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:102)
    at org.apache.sling.feature.cpconverter.vltpkg.BaseVaultPackageScanner.traverse (BaseVaultPackageScanner.java:89)
    at org.apache.sling.feature.cpconverter.ContentPackage2FeatureModelConverter.secondPass (ContentPackage2FeatureModelConverter.java:277)
    at org.apache.sling.feature.cpconverter.ContentPackage2FeatureModelConverter.convert (ContentPackage2FeatureModelConverter.java:225)
    at com.adobe.aem.analyser.AemPackageConverter.convert (AemPackageConverter.java:122)
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.convertContentPackages (AemAnalyseMojo.java:225)
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.execute (AemAnalyseMojo.java:203)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Some dependency seems to be missing.
Also the exception message looks weird Content Package Converter Exception Content Package Converter Exception org/apache/jackrabbit/api/ReferenceBinary. Seems that the messages should be reworked in com.adobe.aem.analyser.AemPackageConverter.convert and com.adobe.aem.analyser.mojos.AemAnalyseMojo.convertContentPackages

Content Package Converter Exception: NullPointerException during goal convert when executed in a `content-package` module in a phase prior to `package`

This is the debug log during the Maven build:

[INFO] --- aemanalyser-maven-plugin:0.0.1-SNAPSHOT:convert (convert-to-featuremodel) @ digitalxn-aem-all-container ---
[DEBUG] Could not find metadata org.apache.sling:sling-feature-converter-maven-plugin:1.0.5-SNAPSHOT/maven-metadata.xml in local (/Users/konradwindszus/.m2/repository)
[DEBUG] Skipped remote request for org.apache.sling:sling-feature-converter-maven-plugin:1.0.5-SNAPSHOT/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata org.apache.sling:sling-feature-converter-maven-plugin:1.0.5-SNAPSHOT/maven-metadata.xml in local (/Users/konradwindszus/.m2/repository)
[DEBUG] Skipped remote request for org.apache.sling:sling-feature-converter-maven-plugin:1.0.5-SNAPSHOT/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata org.apache.sling:org.apache.sling.feature.cpconverter:1.0.15-SNAPSHOT/maven-metadata.xml in local (/Users/konradwindszus/.m2/repository)
[DEBUG] Skipped remote request for org.apache.sling:org.apache.sling.feature.cpconverter:1.0.15-SNAPSHOT/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata org.apache.sling:org.apache.sling.feature.cpconverter:1.0.15-SNAPSHOT/maven-metadata.xml in local (/Users/konradwindszus/.m2/repository)
[DEBUG] Skipped remote request for org.apache.sling:org.apache.sling.feature.cpconverter:1.0.15-SNAPSHOT/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Using mirror nexus (https://repo.int.netcentric.biz/nexus/content/groups/public/) for jvnet-nexus-snapshots (https://maven.java.net/content/repositories/snapshots).
[DEBUG] Using mirror nexus (https://repo.int.netcentric.biz/nexus/content/groups/public/) for apache-snapshots (http://people.apache.org/maven-snapshot-repository).
[DEBUG] Using mirror nexus (https://repo.int.netcentric.biz/nexus/content/groups/public/) for codehaus-snapshots (http://snapshots.repository.codehaus.org).
[DEBUG] Using mirror nexus (https://repo.int.netcentric.biz/nexus/content/groups/public/) for maven2-repository.dev.java.net (http://download.java.net/maven/2/).
[DEBUG] Using mirror nexus (https://repo.int.netcentric.biz/nexus/content/groups/public/) for apache.snapshots (https://repository.apache.org/content/groups/snapshots-group/).
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=900732, ConflictMarker.markTime=325253, ConflictMarker.nodeCount=881, ConflictIdSorter.graphTime=282108, ConflictIdSorter.topsortTime=109837, ConflictIdSorter.conflictIdCount=168, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=4699512, ConflictResolver.conflictItemCount=386, DefaultDependencyCollector.collectTime=354625068, DefaultDependencyCollector.transformTime=6380433}
[DEBUG] com.adobe.aem:aemanalyser-maven-plugin:jar:0.0.1-SNAPSHOT
[DEBUG]    org.apache.maven:maven-core:jar:3.5.2:compile
[DEBUG]       org.apache.maven:maven-model:jar:3.5.2:compile
[DEBUG]       org.apache.maven:maven-settings:jar:3.5.2:compile
[DEBUG]       org.apache.maven:maven-settings-builder:jar:3.5.2:compile
[DEBUG]          org.codehaus.plexus:plexus-interpolation:jar:1.24:compile
[DEBUG]          org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4:compile
[DEBUG]             org.sonatype.plexus:plexus-cipher:jar:1.4:compile
[DEBUG]       org.apache.maven:maven-builder-support:jar:3.5.2:compile
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:3.5.2:compile
[DEBUG]       org.apache.maven:maven-artifact:jar:3.5.2:compile
[DEBUG]       org.apache.maven:maven-model-builder:jar:3.5.2:compile
[DEBUG]       org.apache.maven:maven-resolver-provider:jar:3.5.2:compile
[DEBUG]       org.apache.maven.resolver:maven-resolver-impl:jar:1.1.0:compile
[DEBUG]       org.apache.maven.resolver:maven-resolver-api:jar:1.1.0:compile
[DEBUG]       org.apache.maven.resolver:maven-resolver-spi:jar:1.1.0:compile
[DEBUG]       org.apache.maven.resolver:maven-resolver-util:jar:1.1.0:compile
[DEBUG]       org.apache.maven.shared:maven-shared-utils:jar:3.1.0:compile
[DEBUG]       org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.3:compile
[DEBUG]          javax.enterprise:cdi-api:jar:1.0:compile
[DEBUG]             javax.annotation:jsr250-api:jar:1.0:compile
[DEBUG]       org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.3:compile
[DEBUG]       com.google.inject:guice:jar:no_aop:4.0:compile
[DEBUG]          aopalliance:aopalliance:jar:1.0:compile
[DEBUG]       com.google.guava:guava:jar:20.0:compile
[DEBUG]       javax.inject:javax.inject:jar:1:compile
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:3.1.0:compile
[DEBUG]       org.codehaus.plexus:plexus-classworlds:jar:2.5.2:compile
[DEBUG]       org.codehaus.plexus:plexus-component-annotations:jar:1.7.1:compile
[DEBUG]       org.apache.commons:commons-lang3:jar:3.5:compile
[DEBUG]    org.apache.maven:maven-plugin-api:jar:3.5.2:compile
[DEBUG]    org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.5.2:compile
[DEBUG]    org.apache.geronimo.specs:geronimo-json_1.1_spec:jar:1.2:compile
[DEBUG]    org.apache.sling:org.apache.sling.feature:jar:1.2.10:compile
[DEBUG]    org.apache.sling:sling-feature-converter-maven-plugin:jar:1.0.5-SNAPSHOT:compile
[DEBUG]       javax.jcr:jcr:jar:2.0:runtime
[DEBUG]       org.apache.jackrabbit:jackrabbit-spi-commons:jar:2.18.4:runtime
[DEBUG]          org.apache.jackrabbit:jackrabbit-spi:jar:2.18.4:runtime
[DEBUG]          org.apache.jackrabbit:jackrabbit-jcr-commons:jar:2.18.4:compile
[DEBUG]          commons-collections:commons-collections:jar:3.2.2:compile
[DEBUG]          org.slf4j:slf4j-api:jar:1.7.26:compile
[DEBUG]       org.apache.felix:org.apache.felix.utils:jar:1.11.4:compile
[DEBUG]       org.apache.sling:org.apache.sling.feature.cpconverter:jar:1.0.15-SNAPSHOT:compile
[DEBUG]       org.apache.sling:org.apache.sling.feature.modelconverter:jar:1.0.14:compile
[DEBUG]       org.apache.sling:org.apache.sling.provisioning.model:jar:1.8.6:compile
[DEBUG]       org.apache.jackrabbit:jackrabbit-api:jar:2.18.4:compile
[DEBUG]          org.jetbrains:annotations:jar:16.0.3:compile
[DEBUG]       org.glassfish:javax.json:jar:1.0.4:compile
[DEBUG]       org.apache.jackrabbit.vault:org.apache.jackrabbit.vault:jar:3.2.8:runtime
[DEBUG]       org.apache.maven.shared:maven-artifact-transfer:jar:0.11.0:compile
[DEBUG]          org.apache.maven.shared:maven-common-artifact-filters:jar:3.0.1:compile
[DEBUG]             org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile
[DEBUG]                org.sonatype.sisu:sisu-inject-bean:jar:1.4.2:compile
[DEBUG]                   org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7:compile
[DEBUG]          commons-codec:commons-codec:jar:1.11:compile
[DEBUG]       org.apache.maven:maven-compat:jar:3.5.0:compile
[DEBUG]          org.apache.maven.wagon:wagon-provider-api:jar:2.12:compile
[DEBUG]       org.codehaus.plexus:plexus-archiver:jar:3.5:compile
[DEBUG]          org.codehaus.plexus:plexus-io:jar:3.0.0:compile
[DEBUG]          org.apache.commons:commons-compress:jar:1.14:compile
[DEBUG]          org.iq80.snappy:snappy:jar:0.4:compile
[DEBUG]          org.tukaani:xz:jar:1.6:runtime
[DEBUG]       com.google.code.findbugs:jsr305:jar:3.0.2:compile
[DEBUG]       org.mockito:mockito-all:jar:1.10.19:compile
[DEBUG]    org.apache.sling:slingfeature-maven-plugin:jar:1.4.0:compile
[DEBUG]       org.osgi:osgi.core:jar:6.0.0:compile
[DEBUG]       org.apache.johnzon:johnzon-core:jar:1.2.3:compile
[DEBUG]       org.apache.commons:commons-text:jar:1.6:compile
[DEBUG]       org.apache.felix:org.apache.felix.converter:jar:1.0.14:compile
[DEBUG]       org.apache.felix:org.apache.felix.cm.json:jar:1.0.2:compile
[DEBUG]       org.osgi:org.osgi.util.function:jar:1.0.0:compile
[DEBUG]       org.apache.sling:org.apache.sling.feature.analyser:jar:1.3.8:compile
[DEBUG]       org.apache.sling:org.apache.sling.feature.extension.apiregions:jar:1.1.8:compile
[DEBUG]       org.apache.sling:org.apache.sling.repoinit.parser:jar:1.6.2:compile
[DEBUG]       org.apache.sling:org.apache.sling.feature.diff:jar:0.0.6:compile
[DEBUG]       org.apache.maven:maven-archiver:jar:3.3.0:compile
[DEBUG]       biz.aQute.bnd:biz.aQute.bndlib:jar:4.2.0:compile
[DEBUG]       org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-6:compile
[DEBUG]          org.codehaus.plexus:plexus-component-api:jar:1.0-alpha-16:compile
[DEBUG]             junit:junit:jar:3.8.1:compile
[DEBUG]       org.osgi:org.osgi.framework:jar:1.9.0:compile
[DEBUG]       org.codehaus.mojo:versions-maven-plugin:jar:2.7:compile
[DEBUG]          org.apache.maven:maven-artifact-manager:jar:2.2.1:compile
[DEBUG]             backport-util-concurrent:backport-util-concurrent:jar:3.1:compile
[DEBUG]          org.apache.maven:maven-project:jar:2.2.1:compile
[DEBUG]             org.apache.maven:maven-profile:jar:2.2.1:compile
[DEBUG]             org.apache.maven:maven-plugin-registry:jar:2.2.1:compile
[DEBUG]          org.apache.maven.reporting:maven-reporting-api:jar:3.0:compile
[DEBUG]          org.apache.maven.reporting:maven-reporting-impl:jar:3.0.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-decoration-model:jar:1.7.4:compile
[DEBUG]          org.apache.maven.wagon:wagon-file:jar:2.12:compile
[DEBUG]          org.apache.maven.doxia:doxia-core:jar:1.7:compile
[DEBUG]             org.apache.maven.doxia:doxia-logging-api:jar:1.7:compile
[DEBUG]             org.apache.httpcomponents:httpclient:jar:4.0.2:compile
[DEBUG]                commons-logging:commons-logging:jar:1.1.1:compile
[DEBUG]             org.apache.httpcomponents:httpcore:jar:4.0.1:compile
[DEBUG]             xmlunit:xmlunit:jar:1.5:compile
[DEBUG]          org.apache.maven.doxia:doxia-sink-api:jar:1.7:compile
[DEBUG]          org.apache.maven.doxia:doxia-site-renderer:jar:1.7:compile
[DEBUG]             org.apache.maven.doxia:doxia-skin-model:jar:1.7:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-xhtml:jar:1.7:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-fml:jar:1.7:compile
[DEBUG]             org.codehaus.plexus:plexus-velocity:jar:1.1.7:compile
[DEBUG]             org.apache.velocity:velocity:jar:1.7:compile
[DEBUG]             org.apache.velocity:velocity-tools:jar:2.0:compile
[DEBUG]                commons-beanutils:commons-beanutils:jar:1.7.0:compile
[DEBUG]                commons-digester:commons-digester:jar:1.8:compile
[DEBUG]                commons-chain:commons-chain:jar:1.1:compile
[DEBUG]                commons-validator:commons-validator:jar:1.3.1:compile
[DEBUG]                dom4j:dom4j:jar:1.1:compile
[DEBUG]                oro:oro:jar:2.0.8:compile
[DEBUG]                sslext:sslext:jar:1.2-0:compile
[DEBUG]                org.apache.struts:struts-core:jar:1.3.8:compile
[DEBUG]                   antlr:antlr:jar:2.7.2:compile
[DEBUG]                org.apache.struts:struts-taglib:jar:1.3.8:compile
[DEBUG]                org.apache.struts:struts-tiles:jar:1.3.8:compile
[DEBUG]          org.codehaus.plexus:plexus-container-default:jar:1.7.1:compile
[DEBUG]             org.apache.xbean:xbean-reflect:jar:3.7:compile
[DEBUG]             com.google.collections:google-collections:jar:1.0:compile
[DEBUG]          org.codehaus.plexus:plexus-i18n:jar:1.0-beta-10:compile
[DEBUG]          org.codehaus.woodstox:woodstox-core-asl:jar:4.2.0:compile
[DEBUG]             javax.xml.stream:stax-api:jar:1.0-2:compile
[DEBUG]             org.codehaus.woodstox:stax2-api:jar:3.1.1:compile
[DEBUG]          commons-lang:commons-lang:jar:2.6:compile
[DEBUG]       commons-io:commons-io:jar:2.5:compile
[DEBUG]       org.apache.maven.shared:maven-filtering:jar:3.1.1:compile
[DEBUG]          org.sonatype.plexus:plexus-build-api:jar:0.0.7:compile
[DEBUG]       com.github.java-json-tools:json-schema-validator:jar:2.2.10:compile
[DEBUG]          com.github.java-json-tools:json-schema-core:jar:1.2.10:compile
[DEBUG]             com.github.java-json-tools:jackson-coreutils:jar:1.9:compile
[DEBUG]                com.fasterxml.jackson.core:jackson-databind:jar:2.2.3:compile
[DEBUG]                   com.fasterxml.jackson.core:jackson-annotations:jar:2.2.3:compile
[DEBUG]                   com.fasterxml.jackson.core:jackson-core:jar:2.2.3:compile
[DEBUG]                com.github.fge:msg-simple:jar:1.1:compile
[DEBUG]                   com.github.fge:btf:jar:1.2:compile
[DEBUG]             com.github.fge:uri-template:jar:0.9:compile
[DEBUG]             org.mozilla:rhino:jar:1.7.7.1:compile
[DEBUG]          javax.mail:mailapi:jar:1.4.3:compile
[DEBUG]             javax.activation:activation:jar:1.1:compile
[DEBUG]          joda-time:joda-time:jar:2.9.7:compile
[DEBUG]          com.googlecode.libphonenumber:libphonenumber:jar:8.0.0:compile
[DEBUG]          net.sf.jopt-simple:jopt-simple:jar:5.0.3:compile
[DEBUG]       org.apache.maven.scm:maven-scm-api:jar:1.11.1:compile
[DEBUG]       org.apache.maven.scm:maven-scm-manager-plexus:jar:1.11.1:compile
[DEBUG]       org.apache.maven.scm:maven-scm-provider-gitexe:jar:1.11.1:compile
[DEBUG]          org.apache.maven.scm:maven-scm-provider-git-commons:jar:1.11.1:compile
[DEBUG]       org.apache.maven.scm:maven-scm-provider-svnexe:jar:1.11.1:compile
[DEBUG]          org.apache.maven.scm:maven-scm-provider-svn-commons:jar:1.11.1:compile
[DEBUG]       org.apache.commons:commons-exec:jar:1.3:compile
[DEBUG] Created new class realm plugin>com.adobe.aem:aemanalyser-maven-plugin:0.0.1-SNAPSHOT
[DEBUG] Importing foreign packages into class realm plugin>com.adobe.aem:aemanalyser-maven-plugin:0.0.1-SNAPSHOT
[DEBUG]   Imported:  < project>biz.netcentric.digitalxn.aem:digitalxn-aem-all-container:1.0.0-SNAPSHOT
[DEBUG] Populating class realm plugin>com.adobe.aem:aemanalyser-maven-plugin:0.0.1-SNAPSHOT
[DEBUG]   Included: com.adobe.aem:aemanalyser-maven-plugin:jar:0.0.1-SNAPSHOT
[DEBUG]   Included: org.codehaus.plexus:plexus-interpolation:jar:1.24
[DEBUG]   Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4
[DEBUG]   Included: org.sonatype.plexus:plexus-cipher:jar:1.4
[DEBUG]   Included: org.apache.maven:maven-builder-support:jar:3.5.2
[DEBUG]   Included: org.apache.maven.resolver:maven-resolver-util:jar:1.1.0
[DEBUG]   Included: org.apache.maven.shared:maven-shared-utils:jar:3.1.0
[DEBUG]   Included: javax.enterprise:cdi-api:jar:1.0
[DEBUG]   Included: org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.3
[DEBUG]   Included: com.google.inject:guice:jar:no_aop:4.0
[DEBUG]   Included: aopalliance:aopalliance:jar:1.0
[DEBUG]   Included: com.google.guava:guava:jar:20.0
[DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:3.1.0
[DEBUG]   Included: org.codehaus.plexus:plexus-component-annotations:jar:1.7.1
[DEBUG]   Included: org.apache.commons:commons-lang3:jar:3.5
[DEBUG]   Included: org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.5.2
[DEBUG]   Included: org.apache.geronimo.specs:geronimo-json_1.1_spec:jar:1.2
[DEBUG]   Included: org.apache.sling:org.apache.sling.feature:jar:1.2.10
[DEBUG]   Included: org.apache.sling:sling-feature-converter-maven-plugin:jar:1.0.5-SNAPSHOT
[DEBUG]   Included: javax.jcr:jcr:jar:2.0
[DEBUG]   Included: org.apache.jackrabbit:jackrabbit-spi-commons:jar:2.18.4
[DEBUG]   Included: org.apache.jackrabbit:jackrabbit-spi:jar:2.18.4
[DEBUG]   Included: org.apache.jackrabbit:jackrabbit-jcr-commons:jar:2.18.4
[DEBUG]   Included: commons-collections:commons-collections:jar:3.2.2
[DEBUG]   Included: org.apache.felix:org.apache.felix.utils:jar:1.11.4
[DEBUG]   Included: org.apache.sling:org.apache.sling.feature.cpconverter:jar:1.0.15-SNAPSHOT
[DEBUG]   Included: org.apache.sling:org.apache.sling.feature.modelconverter:jar:1.0.14
[DEBUG]   Included: org.apache.sling:org.apache.sling.provisioning.model:jar:1.8.6
[DEBUG]   Included: org.apache.jackrabbit:jackrabbit-api:jar:2.18.4
[DEBUG]   Included: org.jetbrains:annotations:jar:16.0.3
[DEBUG]   Included: org.glassfish:javax.json:jar:1.0.4
[DEBUG]   Included: org.apache.jackrabbit.vault:org.apache.jackrabbit.vault:jar:3.2.8
[DEBUG]   Included: org.apache.maven.shared:maven-artifact-transfer:jar:0.11.0
[DEBUG]   Included: org.apache.maven.shared:maven-common-artifact-filters:jar:3.0.1
[DEBUG]   Included: org.sonatype.sisu:sisu-inject-bean:jar:1.4.2
[DEBUG]   Included: org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7
[DEBUG]   Included: commons-codec:commons-codec:jar:1.11
[DEBUG]   Included: org.codehaus.plexus:plexus-archiver:jar:3.5
[DEBUG]   Included: org.codehaus.plexus:plexus-io:jar:3.0.0
[DEBUG]   Included: org.apache.commons:commons-compress:jar:1.14
[DEBUG]   Included: org.iq80.snappy:snappy:jar:0.4
[DEBUG]   Included: org.tukaani:xz:jar:1.6
[DEBUG]   Included: com.google.code.findbugs:jsr305:jar:3.0.2
[DEBUG]   Included: org.mockito:mockito-all:jar:1.10.19
[DEBUG]   Included: org.apache.sling:slingfeature-maven-plugin:jar:1.4.0
[DEBUG]   Included: org.osgi:osgi.core:jar:6.0.0
[DEBUG]   Included: org.apache.johnzon:johnzon-core:jar:1.2.3
[DEBUG]   Included: org.apache.commons:commons-text:jar:1.6
[DEBUG]   Included: org.apache.felix:org.apache.felix.converter:jar:1.0.14
[DEBUG]   Included: org.apache.felix:org.apache.felix.cm.json:jar:1.0.2
[DEBUG]   Included: org.osgi:org.osgi.util.function:jar:1.0.0
[DEBUG]   Included: org.apache.sling:org.apache.sling.feature.analyser:jar:1.3.8
[DEBUG]   Included: org.apache.sling:org.apache.sling.feature.extension.apiregions:jar:1.1.8
[DEBUG]   Included: org.apache.sling:org.apache.sling.repoinit.parser:jar:1.6.2
[DEBUG]   Included: org.apache.sling:org.apache.sling.feature.diff:jar:0.0.6
[DEBUG]   Included: org.apache.maven:maven-archiver:jar:3.3.0
[DEBUG]   Included: biz.aQute.bnd:biz.aQute.bndlib:jar:4.2.0
[DEBUG]   Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-6
[DEBUG]   Included: junit:junit:jar:3.8.1
[DEBUG]   Included: org.osgi:org.osgi.framework:jar:1.9.0
[DEBUG]   Included: org.codehaus.mojo:versions-maven-plugin:jar:2.7
[DEBUG]   Included: backport-util-concurrent:backport-util-concurrent:jar:3.1
[DEBUG]   Included: org.apache.maven.reporting:maven-reporting-api:jar:3.0
[DEBUG]   Included: org.apache.maven.reporting:maven-reporting-impl:jar:3.0.0
[DEBUG]   Included: org.apache.maven.doxia:doxia-decoration-model:jar:1.7.4
[DEBUG]   Included: org.apache.maven.wagon:wagon-file:jar:2.12
[DEBUG]   Included: org.apache.maven.doxia:doxia-core:jar:1.7
[DEBUG]   Included: org.apache.maven.doxia:doxia-logging-api:jar:1.7
[DEBUG]   Included: org.apache.httpcomponents:httpclient:jar:4.0.2
[DEBUG]   Included: commons-logging:commons-logging:jar:1.1.1
[DEBUG]   Included: org.apache.httpcomponents:httpcore:jar:4.0.1
[DEBUG]   Included: xmlunit:xmlunit:jar:1.5
[DEBUG]   Included: org.apache.maven.doxia:doxia-sink-api:jar:1.7
[DEBUG]   Included: org.apache.maven.doxia:doxia-site-renderer:jar:1.7
[DEBUG]   Included: org.apache.maven.doxia:doxia-skin-model:jar:1.7
[DEBUG]   Included: org.apache.maven.doxia:doxia-module-xhtml:jar:1.7
[DEBUG]   Included: org.apache.maven.doxia:doxia-module-fml:jar:1.7
[DEBUG]   Included: org.codehaus.plexus:plexus-velocity:jar:1.1.7
[DEBUG]   Included: org.apache.velocity:velocity:jar:1.7
[DEBUG]   Included: org.apache.velocity:velocity-tools:jar:2.0
[DEBUG]   Included: commons-beanutils:commons-beanutils:jar:1.7.0
[DEBUG]   Included: commons-digester:commons-digester:jar:1.8
[DEBUG]   Included: commons-chain:commons-chain:jar:1.1
[DEBUG]   Included: commons-validator:commons-validator:jar:1.3.1
[DEBUG]   Included: dom4j:dom4j:jar:1.1
[DEBUG]   Included: oro:oro:jar:2.0.8
[DEBUG]   Included: sslext:sslext:jar:1.2-0
[DEBUG]   Included: org.apache.struts:struts-core:jar:1.3.8
[DEBUG]   Included: antlr:antlr:jar:2.7.2
[DEBUG]   Included: org.apache.struts:struts-taglib:jar:1.3.8
[DEBUG]   Included: org.apache.struts:struts-tiles:jar:1.3.8
[DEBUG]   Included: org.apache.xbean:xbean-reflect:jar:3.7
[DEBUG]   Included: com.google.collections:google-collections:jar:1.0
[DEBUG]   Included: org.codehaus.plexus:plexus-i18n:jar:1.0-beta-10
[DEBUG]   Included: org.codehaus.woodstox:woodstox-core-asl:jar:4.2.0
[DEBUG]   Included: javax.xml.stream:stax-api:jar:1.0-2
[DEBUG]   Included: org.codehaus.woodstox:stax2-api:jar:3.1.1
[DEBUG]   Included: commons-lang:commons-lang:jar:2.6
[DEBUG]   Included: commons-io:commons-io:jar:2.5
[DEBUG]   Included: org.apache.maven.shared:maven-filtering:jar:3.1.1
[DEBUG]   Included: org.sonatype.plexus:plexus-build-api:jar:0.0.7
[DEBUG]   Included: com.github.java-json-tools:json-schema-validator:jar:2.2.10
[DEBUG]   Included: com.github.java-json-tools:json-schema-core:jar:1.2.10
[DEBUG]   Included: com.github.java-json-tools:jackson-coreutils:jar:1.9
[DEBUG]   Included: com.fasterxml.jackson.core:jackson-databind:jar:2.2.3
[DEBUG]   Included: com.fasterxml.jackson.core:jackson-annotations:jar:2.2.3
[DEBUG]   Included: com.fasterxml.jackson.core:jackson-core:jar:2.2.3
[DEBUG]   Included: com.github.fge:msg-simple:jar:1.1
[DEBUG]   Included: com.github.fge:btf:jar:1.2
[DEBUG]   Included: com.github.fge:uri-template:jar:0.9
[DEBUG]   Included: org.mozilla:rhino:jar:1.7.7.1
[DEBUG]   Included: javax.mail:mailapi:jar:1.4.3
[DEBUG]   Included: javax.activation:activation:jar:1.1
[DEBUG]   Included: joda-time:joda-time:jar:2.9.7
[DEBUG]   Included: com.googlecode.libphonenumber:libphonenumber:jar:8.0.0
[DEBUG]   Included: net.sf.jopt-simple:jopt-simple:jar:5.0.3
[DEBUG]   Included: org.apache.maven.scm:maven-scm-api:jar:1.11.1
[DEBUG]   Included: org.apache.maven.scm:maven-scm-manager-plexus:jar:1.11.1
[DEBUG]   Included: org.apache.maven.scm:maven-scm-provider-gitexe:jar:1.11.1
[DEBUG]   Included: org.apache.maven.scm:maven-scm-provider-git-commons:jar:1.11.1
[DEBUG]   Included: org.apache.maven.scm:maven-scm-provider-svnexe:jar:1.11.1
[DEBUG]   Included: org.apache.maven.scm:maven-scm-provider-svn-commons:jar:1.11.1
[DEBUG]   Included: org.apache.commons:commons-exec:jar:1.3
[DEBUG] Configuring mojo com.adobe.aem:aemanalyser-maven-plugin:0.0.1-SNAPSHOT:convert from plugin realm ClassRealm[plugin>com.adobe.aem:aemanalyser-maven-plugin:0.0.1-SNAPSHOT, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@799f7e29]
[DEBUG] Configuring mojo 'com.adobe.aem:aemanalyser-maven-plugin:0.0.1-SNAPSHOT:convert' with basic configurator -->
[DEBUG]   (f) apiRegions = []
[DEBUG]   (f) bundleStartOrder = 20
[DEBUG]   (f) contentPackages = []
[DEBUG]   (f) convertedCPOutput = /Users/konradwindszus/git/Netcentric/digitalxn/aem-code/digitalxn-aem-all-container/target/cp-conversion
[DEBUG]   (f) fmOutput = /Users/konradwindszus/git/Netcentric/digitalxn/aem-code/digitalxn-aem-all-container/target/cp-conversion/fm.out
[DEBUG]   (f) installConvertedCP = true
[DEBUG]   (f) isContentPackage = false
[DEBUG]   (f) mavenSession = org.apache.maven.execution.MavenSession@415a3f6a
[DEBUG]   (f) mergeConfigurations = false
[DEBUG]   (f) project = MavenProject: biz.netcentric.digitalxn.aem:digitalxn-aem-all-container:1.0.0-SNAPSHOT @ /Users/konradwindszus/git/Netcentric/digitalxn/aem-code/digitalxn-aem-all-container/pom.xml
[DEBUG]   (f) repoSession = org.eclipse.aether.DefaultRepositorySystemSession@9bf63d2
[DEBUG]   (f) strictValidation = false
[DEBUG]   (f) systemProperties = []
[DEBUG] -- end configuration --
[INFO] Taking current project as content package: groupId=biz.netcentric.digitalxn.aem,artifactId=digitalxn-aem-all-container,type='[zip]',classifier=,,excludeTransitive=false
[INFO] Replaced Old Artifact Id Override: 'biz.netcentric.digitalxn.aem:digitalxn-aem-all-container:1.0.0-SNAPSHOT', with new one: 'biz.netcentric.digitalxn.aem:digitalxn-aem-all-container:1.0.0-SNAPSHOT'
[INFO] Content Package Artifact File: groupId=biz.netcentric.digitalxn.aem,artifactId=digitalxn-aem-all-container,type='[zip, content-package]',classifier=,,excludeTransitive=true, is module CP: true
Project Artifact: biz.netcentric.digitalxn.aem:digitalxn-aem-all-container:content-package:1.0.0-SNAPSHOT
Check Artifact: biz.netcentric.digitalxn.aem:digitalxn-aem-overlays-apps:content-package:1.0.0-SNAPSHOT:compile
Check Artifact Group: biz.netcentric.digitalxn.aem
Check Artifact Artifact: digitalxn-aem-overlays-apps
Check Artifact Type: content-package
Check Artifact Classifier: null
Check Artifact: biz.netcentric.digitalxn.aem:digitalxn-aem-3rd-party-container:content-package:1.0.0-SNAPSHOT:compile
Check Artifact Group: biz.netcentric.digitalxn.aem
Check Artifact Artifact: digitalxn-aem-3rd-party-container
Check Artifact Type: content-package
Check Artifact Classifier: null
Check Artifact: biz.netcentric.digitalxn.aem:digitalxn-aem-permissions-apps:content-package:1.0.0-SNAPSHOT:compile
Check Artifact Group: biz.netcentric.digitalxn.aem
Check Artifact Artifact: digitalxn-aem-permissions-apps
Check Artifact Type: content-package
Check Artifact Classifier: null
Check Artifact: biz.netcentric.digitalxn.aem:digitalxn-aem-all-container:content-package:1.0.0-SNAPSHOT
Check Artifact Group: biz.netcentric.digitalxn.aem
Check Artifact Artifact: digitalxn-aem-all-container
Check Artifact Type: content-package
Check Artifact Classifier: null
Check Artifact: biz.netcentric.digitalxn.aem:digitalxn-aem-osgiconfig-container:content-package:1.0.0-SNAPSHOT:compile
Check Artifact Group: biz.netcentric.digitalxn.aem
Check Artifact Artifact: digitalxn-aem-osgiconfig-container
Check Artifact Type: content-package
Check Artifact Classifier: null
Check Artifact: biz.netcentric.digitalxn.aem.base:digitalxn-aem-base-apps:content-package:1.0.0-SNAPSHOT:compile
Check Artifact Group: biz.netcentric.digitalxn.aem.base
Check Artifact Artifact: digitalxn-aem-base-apps
Check Artifact Type: content-package
Check Artifact Classifier: null
Check Artifact: biz.netcentric.digitalxn.aem.base:digitalxn-aem-base-config-content:content-package:1.0.0-SNAPSHOT:compile
Check Artifact Group: biz.netcentric.digitalxn.aem.base
Check Artifact Artifact: digitalxn-aem-base-config-content
Check Artifact Type: content-package
Check Artifact Classifier: null
Check Artifact: biz.netcentric.digitalxn.aem.base:digitalxn-aem-base-core:jar:1.0.0-SNAPSHOT:compile
Check Artifact Group: biz.netcentric.digitalxn.aem.base
Check Artifact Artifact: digitalxn-aem-base-core
Check Artifact Type: jar
Check Artifact Classifier: null
Check Artifact: biz.netcentric.digitalxn.aem.base:digitalxn-aem-base-clientlibs-apps:content-package:1.0.0-SNAPSHOT:compile
Check Artifact Group: biz.netcentric.digitalxn.aem.base
Check Artifact Artifact: digitalxn-aem-base-clientlibs-apps
Check Artifact Type: content-package
Check Artifact Classifier: null
[INFO] Target Convert CP of --- groupId=biz.netcentric.digitalxn.aem,artifactId=digitalxn-aem-all-container,type='[zip, content-package]',classifier=,,excludeTransitive=true ---
[INFO] Artifact: 'biz.netcentric.digitalxn.aem:digitalxn-aem-all-container:content-package:1.0.0-SNAPSHOT', source file: 'null'
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.461 s
[INFO] Finished at: 2020-10-21T10:58:08+02:00
[INFO] ------------------------------------------------------------------------
[DEBUG] No threads registered for execution at the end of the build
[ERROR] Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:0.0.1-SNAPSHOT:convert (convert-to-featuremodel) on project digitalxn-aem-all-container: Content Package Converter Exception: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:0.0.1-SNAPSHOT:convert (convert-to-featuremodel) on project digitalxn-aem-all-container: Content Package Converter Exception
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: Content Package Converter Exception
    at org.apache.sling.cpconverter.maven.mojos.ConvertCPMojo.execute (ConvertCPMojo.java:286)
    at com.adobe.aem.analyser.mojos.ConvertToFeatureModelMojo.execute (ConvertToFeatureModelMojo.java:56)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.NullPointerException
    at org.apache.sling.cpconverter.maven.mojos.ConvertCPMojo.execute (ConvertCPMojo.java:271)
    at com.adobe.aem.analyser.mojos.ConvertToFeatureModelMojo.execute (ConvertToFeatureModelMojo.java:56)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

The project is not open source unfortunately, let me know if you need further information to investigate.

RepoInit 'delete' command rejected by analyser plugin v1.1.4

Expected Behaviour

RepoInit scripts containing the command 'delete' are accepted, since the delete command now exists for a while (ref: https://sling.apache.org/documentation/bundles/repository-initialization.html) and the aem analyser plugin version is quite new

Actual Behaviour

The aem analyser plugin reports an error when parsing the delete command (see example below)

Reproduce Scenario (including but not limited to)

AEM SDK (local) v5662 (but also tested with 5755)

AEM analyser plugin v1.1.4

[INFO] --- aemanalyser-maven-plugin:1.1.4:project-analyse (aem-analyser) @ myapp.all ---
[INFO] artifact com.adobe.aem:aemanalyser-maven-plugin: checking for updates from adobe-public-releases
[INFO] artifact com.adobe.aem:aemanalyser-maven-plugin: checking for updates from central
[INFO] artifact com.adobe.aem:aem-sdk-api: checking for updates from adobe-public-releases
[INFO] artifact com.adobe.aem:aem-sdk-api: checking for updates from central
[INFO] Using detected SDK Version for analysis: com.adobe.aem:aem-sdk-api:2021.8.5755.20210819T230729Z-210700
...
  1. root pom.xml:
    <aemanalyser.version>1.1.4</aemanalyser.version>
  1. all/pom.xml:
            <plugin>
                <groupId>com.adobe.aem</groupId>
                <artifactId>aemanalyser-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>aem-analyser</id>
                        <goals>
                            <goal>project-analyse</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
  1. repoinit script (org.apache.sling.jcr.repoinit.RepositoryInitializer~customerservice.config):
# move service user home directory (force path), create principal-based ACLs, delete existing resource-based ACLs
scripts=["
create service user customer-service with forced path system/cq:services/customer
set principal ACL for customer-service
  allow jcr:read on /content/myapp/de/de,/content/dam
end
delete ACL for customer-service
"]
  1. Analyser error:

Local run:

[ERROR] The analyser found the following errors for author and publish :
[ERROR] [repoinit] repoinit: Parsing error in repoinit from extension : Encountered " "delete" "delete "" at line 5, column 1.
Was expecting:
    <EOF>

Steps to Reproduce

see above

Platform and Version

Mac OS 11.5.2, local build, Java 11

Tested with AEM SDK 5662 and AEM SDK 5755

Sample Code that illustrates the problem

see above

Logs taken while reproducing problem

see above

Execution aem-analyser of goal com.adobe.aem:aemanalyser-maven-plugin:1.0.2:project-analyse failed: Argument must not be null

When the project to be analysed is not referencing a SDK API version the following error can be observed:

[ERROR] Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:1.0.2:project-analyse (aem-analyser) on project accesscontroltool-package: Execution aem-analyser of goal com.adobe.aem:aemanalyser-maven-plugin:1.0.2:project-analyse failed: Argument must not be null -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:1.0.2:project-analyse (aem-analyser) on project accesscontroltool-package: Execution aem-analyser of goal com.adobe.aem:aemanalyser-maven-plugin:1.0.2:project-analyse failed: Argument must not be null
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
	at org.mvndaemon.mvnd.builder.SmartBuilderImpl.buildProject(SmartBuilderImpl.java:178)
	at org.mvndaemon.mvnd.builder.SmartBuilderImpl$ProjectBuildTask.run(SmartBuilderImpl.java:198)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution aem-analyser of goal com.adobe.aem:aemanalyser-maven-plugin:1.0.2:project-analyse failed: Argument must not be null
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:148)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
	... 10 common frames omitted
Caused by: java.lang.IllegalArgumentException: Argument must not be null
	at org.apache.sling.feature.ArtifactId.<init>(ArtifactId.java:72)
	at com.adobe.aem.analyser.mojos.VersionUtil.getSDKArtifactId(VersionUtil.java:169)
	at com.adobe.aem.analyser.mojos.AemAnalyseMojo.execute(AemAnalyseMojo.java:199)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
	... 11 common frames omitted

This is due to the fact that useVersion in

result = new ArtifactId(Constants.SDK_GROUP_ID, useArtifactId, useVersion, null, null);
is null despite the fact that the plugin retrieved a correct last SDK version from Maven Central (
dep.setVersion(dependencySdk == null ? "1.0" : dependencySdk.getVersion());
). The useVersion variable needs to be set to foundVersion in all circumstances, so this line must be moved out of the if block.

Combine work into a single mojo

Currently we have three different mojos (converter, aggregator, analyser) - however there is no point in running them separately or allowing any modification in between each step.
To make it easier to use we should combine the work into a single mojo - this will also reduce some duplicate code and avoids passing information from one mojo to another via project context attributes.
We could make two sub classes of that mojo to be used - one which is by default used with the aemanalyse packaging and the other one which can be used within a content package project.
We should also remove all configuration options from the mojos which are not necessary to create a small configuration surface

Disable bundle-content analyser as soon as converter 1.1.2 is integrated in Cloud Manager build

The following warning are emitted by the analyser

[WARNING] io.wcm:io.wcm.caconfig.editor:1.7.4: Found initial content : [/apps/wcm-io/caconfig/editor] ....

This is a false-positive since https://issues.apache.org/jira/browse/SLING-10243 once the Cloud Manager uses that version of the converter. Therefore the analyser task https://github.com/apache/sling-org-apache-sling-feature-analyser/blob/master/src/main/java/org/apache/sling/feature/analyser/task/impl/CheckBundlesForInitialContent.java should no longer be enabled by default.

A fatal error occurred while analysing the features, see error cause:: invalid version "[3.2,4)": non-numeric "[3": For input string: "[3"

With org.apache.sling.feature.extension.apiregions:1.2.5-SNAPSHOT on version 1.0.1-SNAPSHOT I run into the following exception with an existing container package

[ERROR] Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:1.0.1-SNAPSHOT:project-analyse (analyser) on project kaw-website-complete-package: A fatal error occurred while analysing the features, see error cause:: invalid version "[3.2,4)": non-numeric "[3": For input string: "[3" -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:1.0.1-SNAPSHOT:project-analyse (analyser) on project kaw-website-complete-package: A fatal error occurred while analysing the features, see error cause:
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: A fatal error occurred while analysing the features, see error cause:
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.analyseFeatures (AemAnalyseMojo.java:320)
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.execute (AemAnalyseMojo.java:209)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.IllegalArgumentException: invalid version "[3.2,4)": non-numeric "[3"
    at org.osgi.framework.Version.parseInt (Version.java:169)
    at org.osgi.framework.Version.<init> (Version.java:126)
    at org.apache.sling.feature.scanner.PackageInfo.getPackageVersion (PackageInfo.java:95)
    at org.apache.sling.feature.extension.apiregions.analyser.CheckDeprecatedApi.checkBundlesForRegion (CheckDeprecatedApi.java:100)
    at org.apache.sling.feature.extension.apiregions.analyser.CheckDeprecatedApi.execute (CheckDeprecatedApi.java:70)
    at org.apache.sling.feature.analyser.Analyser.analyse (Analyser.java:222)
    at com.adobe.aem.analyser.AemAnalyser.analyse (AemAnalyser.java:190)
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.analyseFeatures (AemAnalyseMojo.java:303)
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.execute (AemAnalyseMojo.java:209)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.NumberFormatException: For input string: "[3"
    at java.lang.NumberFormatException.forInputString (NumberFormatException.java:65)
    at java.lang.Integer.parseInt (Integer.java:652)
    at java.lang.Integer.parseInt (Integer.java:770)
    at org.osgi.framework.Version.parseInt (Version.java:167)
    at org.osgi.framework.Version.<init> (Version.java:126)
    at org.apache.sling.feature.scanner.PackageInfo.getPackageVersion (PackageInfo.java:95)
    at org.apache.sling.feature.extension.apiregions.analyser.CheckDeprecatedApi.checkBundlesForRegion (CheckDeprecatedApi.java:100)
    at org.apache.sling.feature.extension.apiregions.analyser.CheckDeprecatedApi.execute (CheckDeprecatedApi.java:70)
    at org.apache.sling.feature.analyser.Analyser.analyse (Analyser.java:222)
    at com.adobe.aem.analyser.AemAnalyser.analyse (AemAnalyser.java:190)
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.analyseFeatures (AemAnalyseMojo.java:303)
    at com.adobe.aem.analyser.mojos.AemAnalyseMojo.execute (AemAnalyseMojo.java:209)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Improve error message output

Instead of inheriting from the Apache Sling analyse mojo, with this PR it is up to this maven plugin to define the output of the analysers. This way we are more flexible and can create a report at the end of the analyser run. In addition we can compact the error messages and avoid logging the same error several times.

We should also move the AEM specific handling of the error messages to a separate component

The output should also not contain the feature ids as they are not known to developers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.