Actions
bug #6407
openUpgrade maven compiler plugin to latest version
Start date:
Due date:
% Done:
0%
Estimated time:
Severity:
major
Found in Version:
Description
Currently this is not yet possible as it results in test errors probably related to missing aspectj support. This problems starts with version 3.x
Related issues
Updated by Andreas Müller about 6 years ago
- Related to task #6401: Update working environment to jdk 1.8 added
Updated by Andreas Müller about 6 years ago
- Related to bug #6404: StackOverflow when compiling large java classes in Java8 (jdk1.8) added
Updated by Andreas Müller about 6 years ago
- Tags set to jdk1.8
Maybe a related 1ddde622ae10b01976cdb99fb50a469a5506ca7e
Updated by Andreas Müller almost 3 years ago
- Assignee changed from Patrick Plitzner to Andreas Kohlbecker
Updated by Andreas Müller over 1 year ago
- Related to task #9359: Update cdmlib, taxeditor, cdmserver etc. dependencies added
Updated by Andreas Müller about 1 year ago
- Has duplicate task #9919: Upgrade maven-compiler-plugin to 3.x in cdmlib added
Updated by Andreas Müller about 1 year ago
- Assignee changed from Andreas Kohlbecker to Andreas Müller
- Target version changed from Unassigned CDM tickets to Release 5.39
Updated by Andreas Müller 3 months ago
- Related to task #10055: Updates, upgrades and cleanup 2023 added
Updated by Andreas Müller 3 months ago
- Blocks task #6981: Migrate to Java 11 added
Updated by Andreas Müller 3 months ago
- Tags changed from jdk1.8 to jdk1.8, java11
- Description updated (diff)
- Target version changed from Release 5.39 to Release 5.37
I tried to handle aspectj with aspectj-maven-plugin (and remove the ant-run-plugin) in cdmlib-model
https://www.mojohaus.org/aspectj-maven-plugin/index.html
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>aspectj-maven-plugin</artifactId> <version>1.14.0</version> <executions> <execution> <goals> <goal>compile</goal> <!-- use this goal to weave all your main classes --> <goal>test-compile</goal> <!-- use this goal to weave all your test classes --> </goals> </execution> </executions> <dependencies> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjrt</artifactId> <version>${aspectj.version}</version> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjtools</artifactId> <version>${aspectj.version}</version> </dependency> </dependencies> </plugin>
but resulted in a StackOverflow due to (self-referencing?) generics in TypeDesginationStatusBase (and maybe others).
[INFO] [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ cdmlib-model --- [INFO] Compiling 585 source files to c:\Users\a.mueller\eclipse\git\cdmlib2\cdmlib-model\target\classes [INFO] [INFO] --- aspectj-maven-plugin:1.14.0:compile (default) @ cdmlib-model --- [INFO] Showing AJC message detail for messages of types: [error, warning, fail] java.lang.RuntimeException: PR341926 diagnostics: Incorrect setup for a generic type, raw type should not point to raw: eu.etaxonomy.cdm.model.name.TypeDesignationStatusBase at org.aspectj.weaver.ReferenceType.setGenericType(ReferenceType.java:1101) at org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory.addSourceTypeBinding(EclipseFactory.java:1169) at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.completeTypeBindings(AjLookupEnvironment.java:169) at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:893) at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:395) at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:445) at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:427) at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:1096) at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performBuild(AjBuildManager.java:275) at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:188) at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:103) at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:47) at org.aspectj.tools.ajc.Main.run(Main.java:372) at org.aspectj.tools.ajc.Main.runMain(Main.java:250) at org.codehaus.mojo.aspectj.AbstractAjcCompiler.execute(AbstractAjcCompiler.java:568) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289) at org.apache.maven.cli.MavenCli.main(MavenCli.java:193) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347) [ERROR] ABORT Jan 05, 2023 5:49:00 PM org.aspectj.weaver.tools.Jdk14Trace info INFORMATION: Dumping to c:\Users\a.mueller\eclipse\git\cdmlib2\cdmlib-model\.\ajcore.20230105.174900.124.txt [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 16.439 s [INFO] Finished at: 2023-01-05T17:49:00+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.14.0:compile (default) on project cdmlib-model: AJC compiler errors: [ERROR] abort ABORT -- (StackOverflowError) null [ERROR] null [ERROR] java.lang.StackOverflowError [ERROR] at org.aspectj.weaver.ReferenceType.setDelegate(ReferenceType.java:1015) [ERROR] at org.aspectj.weaver.ReferenceType.setDelegate(ReferenceType.java:1026) [ERROR] at org.aspectj.weaver.ReferenceType.setDelegate(ReferenceType.java:1026) [ERROR] at org.aspectj.weaver.ReferenceType.setDelegate(ReferenceType.java:1026) ...
Actions