Project

General

Profile

Actions

bug #6407

open

Upgrade maven compiler plugin to latest version

Added by Andreas Müller over 7 years ago. Updated about 1 year ago.

Status:
New
Priority:
Priority14
Category:
platform
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Severity:
major
Found in Version:
Tags:

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

Also interesting might be maven wrapper: https://maven.apache.org/wrapper/


Related issues

Related to EDIT - task #6401: Update working environment to jdk 1.8ClosedPatrick Plitzner

Actions
Related to EDIT - bug #6404: StackOverflow when compiling large java classes in Java8 (jdk1.8)RejectedPatrick Plitzner

Actions
Related to EDIT - task #9359: Update cdmlib, taxeditor, cdmserver etc. dependenciesClosedAndreas Müller

Actions
Related to EDIT - task #10055: Updates, upgrades and cleanup 2023NewAndreas Müller

Actions
Has duplicate EDIT - task #9919: Upgrade maven-compiler-plugin to 3.x in cdmlibDuplicateAndreas Müller

Actions
Blocks EDIT - task #6981: Migrate to Java 11NewAndreas Müller05/04/202205/13/2022

Actions
Actions #1

Updated by Andreas Müller over 7 years ago

  • Related to task #6401: Update working environment to jdk 1.8 added
Actions #2

Updated by Andreas Müller over 7 years ago

  • Related to bug #6404: StackOverflow when compiling large java classes in Java8 (jdk1.8) added
Actions #3

Updated by Andreas Müller over 7 years ago

  • Tags set to jdk1.8
Actions #4

Updated by Andreas Müller about 4 years ago

  • Assignee changed from Patrick Plitzner to Andreas Kohlbecker
Actions #5

Updated by Andreas Müller over 2 years ago

  • Related to task #9359: Update cdmlib, taxeditor, cdmserver etc. dependencies added
Actions #6

Updated by Andreas Müller over 2 years ago

  • Has duplicate task #9919: Upgrade maven-compiler-plugin to 3.x in cdmlib added
Actions #7

Updated by Andreas Müller over 2 years ago

  • Assignee changed from Andreas Kohlbecker to Andreas Müller
  • Target version changed from Unassigned CDM tickets to Release 5.46
Actions #8

Updated by Andreas Müller over 1 year ago

  • Related to task #10055: Updates, upgrades and cleanup 2023 added
Actions #10

Updated by Andreas Müller over 1 year ago

Actions #11

Updated by Andreas Müller over 1 year ago

  • Tags changed from jdk1.8 to jdk1.8, java11
  • Description updated (diff)
  • Target version changed from Release 5.46 to Release 5.44

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 #12

Updated by Andreas Müller about 1 year ago

  • Description updated (diff)
Actions

Also available in: Atom PDF