Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile problem on Debian 11 #23

Open
gion86 opened this issue Nov 7, 2023 · 3 comments
Open

Compile problem on Debian 11 #23

gion86 opened this issue Nov 7, 2023 · 3 comments
Assignees

Comments

@gion86
Copy link

gion86 commented Nov 7, 2023

Hello,

I'm trying to compile this project (master branch), using this command:

./mvnw  clean compile -f releng/org.eclipse.sirius.emfjson.releng/pom.xml -P\!checkstyle

I'm using the maven wrapper (v3.1.1).

This is my environment configuration:

Maven home: ~/.m2/wrapper/dists/apache-maven-3.9.5-bin/2adeog8mj13csp1uusqnc1f2mo/apache-maven-3.9.5
Java version: 11.0.18, vendor: Debian, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.1.0-13-amd64", arch: "amd64", family: "unix"

I'm getting this error:

[ERROR] Internal error: java.lang.IllegalArgumentException: bundleLocation not found: /home/marchesini.local/boccalini_g/.m2/repository/org/eclipse/orbit/bundles/org.apache.commons.logging/1.2.0-SNAPSHOT/org.apache.commons.logging-1.2.0-SNAPSHOT.jar -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalArgumentException: bundleLocation not found: /home/marchesini.local/boccalini_g/.m2/repository/org/eclipse/orbit/bundles/org.apache.commons.logging/1.2.0-SNAPSHOT/org.apache.commons.logging-1.2.0-SNAPSHOT.jar
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:109)
    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.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:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
    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.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:47)
    at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:156)
    at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:72)
Caused by: java.lang.IllegalArgumentException: bundleLocation not found: /home/marchesini.local/boccalini_g/.m2/repository/org/eclipse/orbit/bundles/org.apache.commons.logging/1.2.0-SNAPSHOT/org.apache.commons.logging-1.2.0-SNAPSHOT.jar
    at org.eclipse.tycho.core.osgitools.EquinoxResolver.loadManifest (EquinoxResolver.java:266)
    at org.eclipse.tycho.core.osgitools.EquinoxResolver.newState (EquinoxResolver.java:161)
    at org.eclipse.tycho.core.osgitools.EquinoxResolver.newResolvedState (EquinoxResolver.java:69)
    at org.eclipse.tycho.core.osgitools.OsgiBundleProject.getResolverState (OsgiBundleProject.java:263)
    at org.eclipse.tycho.core.osgitools.OsgiBundleProject.resolveClassPath (OsgiBundleProject.java:164)
    at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject (DefaultTychoResolver.java:148)
    at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead (TychoMavenLifecycleParticipant.java:95)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:223)
    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.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:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
    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.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:47)
    at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:156)
    at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:72)
[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/InternalErrorException

On another PC, with Fedora, everything compile beautifully....
I think the only difference is I'm using the "normal" installed Maven and not a wrapper.

Do you know the cause of the problem?

Thankyou!

@vrichard12
Copy link
Contributor

Hi !
Can you try to see if the last commit I did here fixes the problem? : https://github.com/vrichard12/sirius-emf-json/tree/migration-pojodatatype-featureordering
The build is working on my KUbuntu machine, there's a good chance it will work on your machine too!

Please let me know!

Vincent

@lfasani lfasani assigned lfasani and vrichard12 and unassigned lfasani Nov 8, 2023
@gion86
Copy link
Author

gion86 commented Nov 8, 2023

OK, know the build works, with package phase.

If I run the verify phase the tests gets executed and something fails. Not a real problem for me because I can produce the P2 repository.

If you want investigate further: this is the command

./mvnw verify -f releng/org.eclipse.sirius.emfjson.releng/pom.xml -P\!checkstyle

and I get:

[INFO] Building Sirius EMF JSON - Tests 2.3.4-SNAPSHOT                    [5/8]
[INFO]   from /home/marchesini.local/boccalini_g/Workspace-Eclipse-EMF/Obeo/Sirius/EMF-Sirius-Vincent/tests/org.eclipse.sirius.emfjson.tests/pom.xml
[INFO] ------------------------[ eclipse-test-plugin ]-------------------------
[WARNING] Parameter 'debuglevel' is unknown for plugin 'tycho-compiler-plugin:2.7.5:validate-classpath (default-validate-classpath)'
[WARNING] Parameter 'debuglevel' is unknown for plugin 'tycho-compiler-plugin:2.7.5:compile (default-compile)'
[INFO] 
[INFO] --- tycho-packaging:2.7.5:build-qualifier (default-build-qualifier) @ org.eclipse.sirius.emfjson.tests ---
[INFO] The project's OSGi version is 2.3.4.202311081046
[INFO] 
[INFO] --- tycho-packaging:2.7.5:validate-id (default-validate-id) @ org.eclipse.sirius.emfjson.tests ---
[INFO] 
[INFO] --- tycho-packaging:2.7.5:validate-version (default-validate-version) @ org.eclipse.sirius.emfjson.tests ---
[INFO] 
[INFO] --- target-platform-configuration:2.7.5:target-platform (default-target-platform) @ org.eclipse.sirius.emfjson.tests ---
[INFO] 
[INFO] --- tycho-compiler:2.7.5:validate-classpath (default-validate-classpath) @ org.eclipse.sirius.emfjson.tests ---
[INFO] Resolving class path of Sirius EMF JSON - Tests...
[INFO] 
[INFO] --- resources:2.4.1:resources (default-resources) @ org.eclipse.sirius.emfjson.tests ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] Copying 296 resources
[INFO] 
[INFO] --- tycho-compiler:2.7.5:compile (default-compile) @ org.eclipse.sirius.emfjson.tests ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- resources:2.4.1:testResources (default-testResources) @ org.eclipse.sirius.emfjson.tests ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/marchesini.local/boccalini_g/Workspace-Eclipse-EMF/Obeo/Sirius/EMF-Sirius-Vincent/tests/org.eclipse.sirius.emfjson.tests/src/test/resources
[INFO] 
[INFO] --- tycho-packaging:2.7.5:update-consumer-pom (default-update-consumer-pom) @ org.eclipse.sirius.emfjson.tests ---
[INFO] 
[INFO] --- tycho-source:2.7.5:plugin-source (plugin-source) @ org.eclipse.sirius.emfjson.tests ---
[INFO] Building jar: /home/marchesini.local/boccalini_g/Workspace-Eclipse-EMF/Obeo/Sirius/EMF-Sirius-Vincent/tests/org.eclipse.sirius.emfjson.tests/target/org.eclipse.sirius.emfjson.tests-2.3.4-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- tycho-packaging:2.7.5:package-plugin (default-package-plugin) @ org.eclipse.sirius.emfjson.tests ---
[INFO] Building jar: /home/marchesini.local/boccalini_g/Workspace-Eclipse-EMF/Obeo/Sirius/EMF-Sirius-Vincent/tests/org.eclipse.sirius.emfjson.tests/target/org.eclipse.sirius.emfjson.tests-2.3.4-SNAPSHOT.jar
[INFO] 
[INFO] --- tycho-p2:2.7.5:p2-metadata-default (default-p2-metadata-default) @ org.eclipse.sirius.emfjson.tests ---
[INFO] 
[INFO] --- tycho-source-feature:2.7.5:source-feature (source-feature) @ org.eclipse.sirius.emfjson.tests ---
[WARNING]  Goal 'source-feature' is deprecated: this mojo is replaced by the tycho-source-plugin with execution feature-source which
            offers equivalent and even enhanced functionality
[WARNING] Mojo tycho-source-feature-plugin:source-feature is replaced by the tycho-source-plugin:feature-source which offers equivalent and even enhanced functionality
[INFO] 
[INFO] --- tycho-p2:2.7.5:p2-metadata (p2-metadata) @ org.eclipse.sirius.emfjson.tests ---
[INFO] 
[INFO] --- tycho-surefire:2.7.5:test (default-test) @ org.eclipse.sirius.emfjson.tests ---
[INFO] Could not find a java toolchain of type jdk, using java from JAVA_HOME instead (/usr/lib/jvm/java-11-openjdk-amd64/bin/java)
[INFO] Executing Test Runtime with timeout 0, logs (if any) will be placed at: /home/marchesini.local/boccalini_g/Workspace-Eclipse-EMF/Obeo/Sirius/EMF-Sirius-Vincent/tests/org.eclipse.sirius.emfjson.tests/target/work/data/.metadata/.log
[INFO] Command line:
	[/usr/lib/jvm/java-11-openjdk-amd64/bin/java, -Dosgi.noShutdown=false, -Dosgi.os=linux, -Dosgi.ws=gtk, -Dosgi.arch=x86_64, -Dosgi.clean=true, -jar, /home/marchesini.local/boccalini_g/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.5.400.v20190515-0925/org.eclipse.equinox.launcher-1.5.400.v20190515-0925.jar, -data, /home/marchesini.local/boccalini_g/Workspace-Eclipse-EMF/Obeo/Sirius/EMF-Sirius-Vincent/tests/org.eclipse.sirius.emfjson.tests/target/work/data, -install, /home/marchesini.local/boccalini_g/Workspace-Eclipse-EMF/Obeo/Sirius/EMF-Sirius-Vincent/tests/org.eclipse.sirius.emfjson.tests/target/work, -configuration, /home/marchesini.local/boccalini_g/Workspace-Eclipse-EMF/Obeo/Sirius/EMF-Sirius-Vincent/tests/org.eclipse.sirius.emfjson.tests/target/work/configuration, -application, org.eclipse.tycho.surefire.osgibooter.headlesstest, -testproperties, /home/marchesini.local/boccalini_g/Workspace-Eclipse-EMF/Obeo/Sirius/EMF-Sirius-Vincent/tests/org.eclipse.sirius.emfjson.tests/target/surefire.properties, -Xmx1024m]
An error has occurred. See the log file
/home/marchesini.local/boccalini_g/Workspace-Eclipse-EMF/Obeo/Sirius/EMF-Sirius-Vincent/tests/org.eclipse.sirius.emfjson.tests/target/work/configuration/1699440397745.log.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Sirius EMF JSON 2.3.4-SNAPSHOT:
[INFO] 
[INFO] Sirius EMF JSON .................................... SUCCESS [  0.285 s]
[INFO] emfjson-2019-06 .................................... SUCCESS [  0.350 s]
[INFO] Sirius EMF JSON .................................... SUCCESS [  0.675 s]
[INFO] Sirius EMF JSON - IDE Integration .................. SUCCESS [  0.137 s]
[INFO] Sirius EMF JSON - Tests ............................ FAILURE [  1.220 s]
[INFO] Sirius EMF JSON Feature ............................ SKIPPED
[INFO] Sirius EMF JSON - IDE Integration Feature .......... SKIPPED
[INFO] Sirius EMF JSON Repository ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  21.327 s
[INFO] Finished at: 2023-11-08T11:46:38+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:2.7.5:test (default-test) on project org.eclipse.sirius.emfjson.tests: An unexpected error occurred while launching the test runtime (process returned error code 13). Command-line used to launch the sub-process was /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Dosgi.noShutdown=false -Dosgi.os=linux -Dosgi.ws=gtk -Dosgi.arch=x86_64 -Dosgi.clean=true -jar /home/marchesini.local/boccalini_g/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.5.400.v20190515-0925/org.eclipse.equinox.launcher-1.5.400.v20190515-0925.jar -data /home/marchesini.local/boccalini_g/Workspace-Eclipse-EMF/Obeo/Sirius/EMF-Sirius-Vincent/tests/org.eclipse.sirius.emfjson.tests/target/work/data -install /home/marchesini.local/boccalini_g/Workspace-Eclipse-EMF/Obeo/Sirius/EMF-Sirius-Vincent/tests/org.eclipse.sirius.emfjson.tests/target/work -configuration /home/marchesini.local/boccalini_g/Workspace-Eclipse-EMF/Obeo/Sirius/EMF-Sirius-Vincent/tests/org.eclipse.sirius.emfjson.tests/target/work/configuration -application org.eclipse.tycho.surefire.osgibooter.headlesstest -testproperties /home/marchesini.local/boccalini_g/Workspace-Eclipse-EMF/Obeo/Sirius/EMF-Sirius-Vincent/tests/org.eclipse.sirius.emfjson.tests/target/surefire.properties -Xmx1024m in working directory /home/marchesini.local/boccalini_g/Workspace-Eclipse-EMF/Obeo/Sirius/EMF-Sirius-Vincent/tests/org.eclipse.sirius.emfjson.tests -> [Help 1]

Log attached.
1699440397745.log

@vrichard12
Copy link
Contributor

Thank you for this feedback, I will definitely have a look at this error.
Meanwhile, you can use this command : mvn -DskipTests clean verify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants