Skip to content

aem65 failing maven-install-plugin using aem65 profile #170

@francoisledroff

Description

@francoisledroff

bug description

Our last PR upgraded maven-install-plugin from 2.5.2 to 3.1.1.
But this caused our AEM 6.5 profile build to fail see

see https://github.com/adobe/aio-lib-java/actions/runs/5961896409/job/16172001866#step:5:22627

[INFO] Adobe I/O - Java SDK - OSGI bundle ................. FAILURE [  4.098 s]
[INFO] Adobe I/O - AEM Core - OSGI bundle ................. SKIPPED
[INFO] Adobe I/O - AEM Events Management - OSGI bundle .... SKIPPED
[INFO] Adobe I/O - AEM Events Publishing - OSGI bundle .... SKIPPED
[INFO] Adobe I/O - AEM OSGI Events Mapper - OSGI bundle ... SKIPPED
[INFO] Adobe I/O - AEM Events Package ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  31.755 s
[INFO] Finished at: 2023-08-24T09:23:25Z
[INFO] ------------------------------------------------------------------------
Error:  Failed to execute goal org.apache.maven.plugins:maven-install-plugin:3.1.1:install (default-install) on project aio-lib-osgi: The packaging plugin for this project did not assign a main file to the project but it has attachments. Change packaging to 'pom'. -> [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/MojoExecutionException
Error:  
Error:  After correcting the problems, you can resume the build with the command
Error:    mvn <args> -rf :aio-lib-osgi
Error: Process completed with exit code 1.

workaround

downgrading maven-install-plugin to 2.5.2 fixes it ...
it looks like 3.1.1 has a similar bug to https://issues.apache.org/jira/browse/MINSTALL-151

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions