Hi @Carlin,
Thank you for looking into this!
C:\>atlas-version
ATLAS Version: 8.2.7
ATLAS Home: C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7
ATLAS Scripts: C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\bin
ATLAS Maven Home: C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4
AMPS Version: 8.1.2
--------
Executing: "C:\d\apache-maven\apache-maven-3.8.6\bin\mvn.cmd" --version -gs C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4/conf/settings.xml
Apache Maven 3.8.6
Please note that I set AMPs version in the POM.
EDIT: I also set ATLAS_MVN (and M2_HOME) to Maven 3.8.6.
Relevant parts from our pom.xml:
<amps.version>8.11.4</amps.version>
<confluence.data.version>${version.confluence}</confluence.data.version>
<confluence-editor.version>${version.confluence}</confluence-editor.version>
<version.rest-api-browser>3.2.3</version.rest-api-browser>
<version.confluence-source-editor>2.0.0</version.confluence-source-editor>
<version.quick.reload>5.0.2</version.quick.reload>
<!-- SNIP -->
<profile>
<id>8.7.x</id>
<activation>
<property>
<name>env.CONFLUENCE_VERSION</name>
<value>8.7.x</value>
</property>
</activation>
<properties>
<version.confluence>8.7.0-m47</version.confluence>
<jdk.version>11</jdk.version>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<release>11</release>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<!-- SNIP -->
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>confluence-maven-plugin</artifactId>
<version>${amps.version}</version>
<extensions>true</extensions>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
<manifestFile>target/classes/META-INF/MANIFEST.MF</manifestFile>
</archive>
<productVersion>${version.confluence}</productVersion>
<productDataVersion>${confluence.data.version}</productDataVersion>
<httpPort>1990</httpPort>
<enableDevToolbox>false</enableDevToolbox>
<enablePde>false</enablePde>
<skipRestDocGeneration>false</skipRestDocGeneration>
<allowGoogleTracking>false</allowGoogleTracking>
<skipManifestValidation>true</skipManifestValidation>
<extractDependencies>false</extractDependencies>
<skipManifestValidation>true</skipManifestValidation>
<skipTests>true</skipTests>
<jvmArgs>-Xms4096m -Xmx4096m</jvmArgs>
<pluginArtifacts>
<pluginArtifact>
<groupId>com.atlassian.labs</groupId>
<artifactId>rest-api-browser</artifactId>
<version>${version.rest-api-browser}</version>
</pluginArtifact>
<pluginArtifact>
<groupId>com.atlassian.confluence.plugins.editor</groupId>
<artifactId>confluence-source-editor</artifactId>
<version>${version.confluence-source-editor}</version>
</pluginArtifact>
<pluginArtifact>
<groupId>com.atlassian.labs.plugins</groupId>
<artifactId>quickreload</artifactId>
<version>${version.quick.reload}</version>
</pluginArtifact>
</pluginArtifacts>
<products>
<product>
<id>confluence</id>
<instanceId>confluence</instanceId>
<version>${version.confluence}</version>
<dataVersion>${confluence.data.version}</dataVersion>
<server>localhost</server>
</product>
</products>
<instructions>
<Atlassian-Plugin-Key>${project.groupId}.${project.artifactId}</Atlassian-Plugin-Key>
<Spring-Context>*</Spring-Context>
<Import-Package>
com.atlassian.confluence.api.service.accessmode;resolution:="optional",
com.atlassian.confluence.impl.content.render.xhtml.analytics;resolution:="optional",
*;resolution:="optional"
</Import-Package>
<Export-Package>
de.smartics*
</Export-Package>
</instructions>
</configuration>
</plugin>
I am starting the server in debug mode.
atlas-debug -Dmaven.test.skip
I hope this includes everything needed to reproduce my configuration issue. It worked with previous versions of Confluence so I assume there is an issue with my configuration that prevents it from working with the current milestones.
Please let me know if you need further information!
Cheers,
Robert
EDIT 2: I tried m49 today, with the same result, albeit it is slightly different from what Adam posted (but I am running debug mode):
com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:8.1.2:debug (default-cli) on project XXX: Unable to execute mojo: Execution null of goal com.atlassian.maven.plugins:confluence-maven-plugin:8.11.4:debug failed: Container tomcat${tomcat.version.major}x not supported
The amps-dispatcher-maven-plugin is in version 8.1.2 where I would expect it to be 8.11.4. I ran the atlas-update again, and reinstalled version 8.2.7 (because of an update warning during the build). This is the result after the (probably unnecessary) update.
The whole error message:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.760 s
[INFO] Finished at: 2023-11-14T11:53:48+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:8.1.2:debug (default-cli) on project XXX: Unable to execute mojo: Execution null of goal com.atlassian.maven.plugins:confluence-maven-plugin:8.11.4:debug failed: Container tomcat${tomcat.version.major}x not supported -> [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
[INFO] Running Shutdown Hook
[INFO] confluence: Shutting down
Exception in thread "AMPS product shutdown" java.lang.IllegalStateException: Unable to shut down products in shutdown hook
at com.atlassian.maven.plugins.amps.RunMojo.lambda$addStopProductsShutdownHook$0(RunMojo.java:244)
at java.lang.Thread.run(Thread.java:750)
Caused by: org.apache.maven.plugin.MojoExecutionException: Exception while stopping the products
at com.atlassian.maven.plugins.amps.AbstractProductHandlerMojo.stopProducts(AbstractProductHandlerMojo.java:930)
at com.atlassian.maven.plugins.amps.RunMojo.lambda$addStopProductsShutdownHook$0(RunMojo.java:242)
... 1 more
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Container tomcat${tomcat.version.major}x not supported
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:206)
at com.atlassian.maven.plugins.amps.AbstractProductHandlerMojo.shutDown(AbstractProductHandlerMojo.java:951)
at com.atlassian.maven.plugins.amps.AbstractProductHandlerMojo.stopProducts(AbstractProductHandlerMojo.java:923)
... 2 more
Caused by: java.lang.IllegalArgumentException: Container tomcat${tomcat.version.major}x not supported
at com.atlassian.maven.plugins.amps.product.manager.Containers.findContainer(Containers.java:56)
at com.atlassian.maven.plugins.amps.product.manager.WebAppManagerImpl.getCustomContainer(WebAppManagerImpl.java:279)
at com.atlassian.maven.plugins.amps.product.manager.WebAppManagerImpl.getContainer(WebAppManagerImpl.java:354)
at com.atlassian.maven.plugins.amps.product.manager.WebAppManagerImpl.stopWebapp(WebAppManagerImpl.java:441)
at com.atlassian.maven.plugins.amps.product.AbstractWebappProductHandler.stop(AbstractWebappProductHandler.java:55)
at com.atlassian.maven.plugins.amps.AbstractProductHandlerMojo.lambda$shutDown$1(AbstractProductHandlerMojo.java:945)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
... 1 more
And even if I unset the ATLAS_MVN environment variable, I get the following:
C:\p\production\smartics-projectdoc-confluence>atlas-debug
[INFO] Project POM found
[INFO] Resolving plugin info, may take a while on the first run.
Der Befehl ""C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4\bin\mvn.cmd" --batch-mode org.apache.maven.plugins:maven-dependency-plugin:3.1.2:resolve-plugins -DincludeGroupIds=com.atlassian.maven.plugins -DexcludeTransitive=true" ist entweder falsch geschrieben oder konnte nicht gefunden werden.
[INFO] Project defined AMPS version detected: "8.1.2"
Executing: "C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4\bin\mvn.cmd" com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:8.1.2:debug -gs C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4/conf/settings.xml
“Der Befehl ist entweder falsch geschrieben oder konnte nicht gefunden werden.” translates to that the command is either misspelled or cannot be found. Maybe there are some redundant double quotes?