adobe / aio-lib-java

Adobe I/O - Java SDK
https://opensource.adobe.com/aio-lib-java/
Apache License 2.0
5 stars 17 forks source link

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

Closed francoisledroff closed 10 months ago

francoisledroff commented 10 months ago

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

francoisledroff commented 10 months ago

https://github.com/adobe/aio-lib-java/pull/175