Skip to content

[GAMA] Plugin's auto compilation is broken #15

@RoiArthurB

Description

@RoiArthurB

Partly related to gama-platform/gama#794 but the maven compilation doesn't work.

More specifically, what doesn't work is :

Compilation

  • Maven gathering GAMA plugins (specificly the gama.core with the log below)
Error:    Missing requirement: gama.core 2025.6.4 requires 'osgi.bundle; gama.processor 0.0.0' but it could not be found
Full log
Downloaded from gamaRepo: https://updates.gama-platform.org/2025-06/org/gama/gama.dependencies/2025.6.4/gama.dependencies-2025.6.4.jar (66 MB at 21 MB/s)
[INFO] Maven Artifact org.apache.xmlgraphics:batik-i18n:1.18 @ /home/runner/.m2/repository/org/apache/xmlgraphics/batik-i18n/1.18/batik-i18n-1.18.jar is not a bundle and will be ignored, automatic wrapping of such artifacts can be enabled with <pomDependencies>wrapAsBundle</pomDependencies> in target platform configuration.
[INFO] Maven Artifact com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava @ /home/runner/.m2/repository/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar is not a bundle and will be ignored, automatic wrapping of such artifacts can be enabled with <pomDependencies>wrapAsBundle</pomDependencies> in target platform configuration.
[INFO] Maven Artifact aopalliance:aopalliance:1.0 @ /home/runner/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar is not a bundle and will be ignored, automatic wrapping of such artifacts can be enabled with <pomDependencies>wrapAsBundle</pomDependencies> in target platform configuration.
[INFO] Maven Artifact org.codehaus.mojo:animal-sniffer-annotations:1.9 @ /home/runner/.m2/repository/org/codehaus/mojo/animal-sniffer-annotations/1.9/animal-sniffer-annotations-1.9.jar is not a bundle and will be ignored, automatic wrapping of such artifacts can be enabled with <pomDependencies>wrapAsBundle</pomDependencies> in target platform configuration.
[INFO] Maven Artifact xml-apis:xml-apis-ext:1.3.04 @ /home/runner/.m2/repository/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar is not a bundle and will be ignored, automatic wrapping of such artifacts can be enabled with <pomDependencies>wrapAsBundle</pomDependencies> in target platform configuration.
[INFO] Maven Artifact org.apache.xmlgraphics:batik-constants:1.18 @ /home/runner/.m2/repository/org/apache/xmlgraphics/batik-constants/1.18/batik-constants-1.18.jar is not a bundle and will be ignored, automatic wrapping of such artifacts can be enabled with <pomDependencies>wrapAsBundle</pomDependencies> in target platform configuration.
[INFO] Maven Artifact org.apache.xmlgraphics:batik-css:1.18 @ /home/runner/.m2/repository/org/apache/xmlgraphics/batik-css/1.18/batik-css-1.18.jar is not a bundle and will be ignored, automatic wrapping of such artifacts can be enabled with <pomDependencies>wrapAsBundle</pomDependencies> in target platform configuration.
[INFO] Maven Artifact org.apache.xmlgraphics:batik-util:1.18 @ /home/runner/.m2/repository/org/apache/xmlgraphics/batik-util/1.18/batik-util-1.18.jar is not a bundle and will be ignored, automatic wrapping of such artifacts can be enabled with <pomDependencies>wrapAsBundle</pomDependencies> in target platform configuration.
[INFO] Maven Artifact org.apache.xmlgraphics:xmlgraphics-commons:2.10 @ /home/runner/.m2/repository/org/apache/xmlgraphics/xmlgraphics-commons/2.10/xmlgraphics-commons-2.10.jar is not a bundle and will be ignored, automatic wrapping of such artifacts can be enabled with <pomDependencies>wrapAsBundle</pomDependencies> in target platform configuration.
[INFO] Maven Artifact org.apache.xmlgraphics:batik-shared-resources:1.18 @ /home/runner/.m2/repository/org/apache/xmlgraphics/batik-shared-resources/1.18/batik-shared-resources-1.18.jar is not a bundle and will be ignored, automatic wrapping of such artifacts can be enabled with <pomDependencies>wrapAsBundle</pomDependencies> in target platform configuration.
[INFO] Maven Artifact com.google.j2objc:j2objc-annotations:3.0.0 @ /home/runner/.m2/repository/com/google/j2objc/j2objc-annotations/3.0.0/j2objc-annotations-3.0.0.jar is not a bundle and will be ignored, automatic wrapping of such artifacts can be enabled with <pomDependencies>wrapAsBundle</pomDependencies> in target platform configuration.
[INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86_64, org.eclipse.update.install.sources=true}
Error:  Cannot resolve project dependencies:
Error:    Software being installed: gaml.extension.unity 2.0.0.qualifier
Error:    Missing requirement: gama.core 2025.6.4 requires 'osgi.bundle; gama.processor 0.0.0' but it could not be found
Error:    Cannot satisfy dependency: gaml.extension.unity 2.0.0.qualifier depends on: osgi.bundle; gama.core 0.0.0
Error:  
Error:  See https://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for eu.project-simple.parent 2.0.0-SNAPSHOT:
[INFO] 
[INFO] eu.project-simple.parent ........................... SUCCESS [  0.039 s]
[INFO] gaml.extension.unity ............................... FAILURE [ 14.010 s]
[INFO] gaml.feature.unity ................................. SKIPPED
[INFO] eu.project-simple.site ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  30.752 s
[INFO] Finished at: 2025-12-03T09:12:56Z
[INFO] ------------------------------------------------------------------------
Error:  Cannot resolve dependencies of project eu.project-simple:gaml.extension.unity:eclipse-plugin:2.0.0-SNAPSHOT
Error:   with context {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86_64, org.eclipse.update.install.sources=true}
Error:    Software being installed: gaml.extension.unity 2.0.0.qualifier
Error:    Missing requirement: gama.core 2025.6.4 requires 'osgi.bundle; gama.processor 0.0.0' but it could not be found
Error:    Cannot satisfy dependency: gaml.extension.unity 2.0.0.qualifier depends on: osgi.bundle; gama.core 0.0.0: See log for details
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/ResolverException
Error:  
Error:  After correcting the problems, you can resume the build with the command
Error:    mvn <args> -rf :gaml.extension.unity
Error: Process completed with exit code 1.

Deploy

  • The plugin's p2 repo can't be regenerated because of unauthorized push permission
[INFO] --- exec:3.0.0:exec (git-push) @ eu.project-simple.site ---
remote: Permission to project-SIMPLE/simple.toolchain.git denied to RoiArthurB.
fatal: unable to access 'https://github.com/project-SIMPLE/simple.toolchain/': The requested URL returned error: 403
Full log
Total time: 0 seconds
[INFO]
[INFO] --- exec:3.0.0:exec (git-add) @ eu.project-simple.site ---
[INFO]
[INFO] --- exec:3.0.0:exec (git-commit) @ eu.project-simple.site ---
[p2-deploy c3f7fbe] Release 2.0.0.v20251203-0920
 9 files changed, 10 insertions(+), 4 deletions(-)
 create mode 100644 releases/2.0.0.v20251203-0920/artifacts.jar
 create mode 100644 releases/2.0.0.v20251203-0920/artifacts.xml.xz
 create mode 100644 releases/2.0.0.v20251203-0920/content.jar
 create mode 100644 releases/2.0.0.v20251203-0920/content.xml.xz
 create mode 100644 releases/2.0.0.v20251203-0920/features/gaml.feature.unity_2.0.0.v20251203-0920.jar
 create mode 100644 releases/2.0.0.v20251203-0920/p2.index
 create mode 100644 releases/2.0.0.v20251203-0920/plugins/gaml.extension.unity_2.0.0.v20251203-0920.jar
[INFO]
[INFO] --- tycho-p2:4.0.8:update-local-index (default-update-local-index) @ eu.project-simple.site ---
[INFO]
[INFO] --- deploy:3.1.1:deploy (default-deploy) @ eu.project-simple.site ---
[INFO] Skipping artifact deployment
[INFO]
[INFO] --- exec:3.0.0:exec (git-push) @ eu.project-simple.site ---
remote: Permission to project-SIMPLE/simple.toolchain.git denied to RoiArthurB.
fatal: unable to access 'https://github.com/project-SIMPLE/simple.toolchain/': The requested URL returned error: 403
[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 128 (Exit value: 128)
    at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:404)
    at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:166)
    at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:982)
    at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:929)
    at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:457)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
    at java.lang.reflect.Method.invoke (Method.java:580)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:255)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:201)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:361)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for eu.project-simple.parent 2.0.0-SNAPSHOT:
[INFO]
[INFO] eu.project-simple.parent ........................... SUCCESS [  0.044 s]
[INFO] gaml.extension.unity ............................... SUCCESS [  7.344 s]
[INFO] gaml.feature.unity ................................. SUCCESS [  0.362 s]
[INFO] eu.project-simple.site ............................. FAILURE [05:16 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  05:29 min
[INFO] Finished at: 2025-12-03T16:26:17+07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (git-push) on project eu.project-simple.site: Command execution failed.: Process exited with an error: 128 (Exit value: 128) -> [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 :eu.project-simple.site

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions