Hi Benoit,

I'm just getting back to this issue.  Unfortunately, no success with the -DskipTests option.  Same error on the scala plugin.

-- Attempt 2: I moved to a completely separate pristine Windows 11 machine, installed java 11, installed maven, cloned JAMES. Same error.  I know there's always the chance of something different in the environment that would cause the build to not work.  But this is on a completely new machine.

-- Attempt 3: I moved to my AWS Linux EC2 (Linux2) to get off of Windows completely for the build.  After a half day of realizing AWS Linux 2 is completely stuck on Maven 3.0 and the JAMES build requires a minimum of Maven 3.6, I gave up on that.

-- Attempt 4: I created a brand new AWS EC2 now with Amazon Linux 2023.  I installed Java 23 and Maven 3.9.  Nothing else on the EC2 other than the OS, Java 23, and Maven 3.9, GitHub, and the cloned JAMES tree.  I'm now stuck on the error below.  I tried backing out Java 23 and went to Java 17 then all the way back to Java 11. Same error.   The error message means nothing to me.  (release version 21 of WHAT is not supported? The referenced plugin is 3.13.0 ).   Any suggestions?  As you can see, I can build on Windows or Linux, and with enough effort I can install any version of anything to try to get a clean build out of the box.  But I hate wasting more time just shooting in the dark.  Any suggestions?  I'm going to download a pre-built just to keep moving.  But I have some code contributions that I'm planning to submit that need to get integrated in.  So I really need to be able to build the image.

Note: I tried the -e and -X switches.  Nothing useful.  I can capture and send those outputs as well if you like.  Also if necessary, I can give someone puTTY access to this new EC2 I just created and you can play around with attempting to build it yourself and see what I'm seeing.  If I'm missing something obvious, please let me know.  Thx. (The command I used was "mvn clean compile")

[INFO] Apache James :: Server :: Matcher :: LDAP .......... SKIPPED
[INFO] Apache James :: Server :: Web Admin ................ SKIPPED
[INFO] Apache James :: Third Party :: Crowdsec ............ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  15.176 s
[INFO] Finished at: 2025-01-07T20:48:28Z
[INFO] ------------------------------------------------------------------------
[INFO] 31 goals, 30 executed, 1 from cache
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project testing-base: Fatal error compiling: error: release version 21 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

On 12/11/2024 7:31 PM, Jerry Malcolm wrote:
Hi Benoit,

I lost you on the question about what SHA-1 I'm building.  I don't know.  I didn't do anything unique to build something different. I just cloned the repository and ran the mvn compile command. I'll try it with the -DskipTests option and let you know.

Thanks.

Jerry

On 12/11/2024 1:47 PM, Benoit TELLIER wrote:
Hello,

This looks weird, maven scala plugin is supposed to be self sufficient.

Which SHA-1 are you building?

and please try `mvn clean compile -DskipTests`

Best regards,

Benoit

On 10/12/2024 05:02, Jerry Malcolm wrote:
Benoit,

This thread is a few months old.  But I just came across it tonight.  In answer to your question... yes.. it's still happening.  At least it is for me.  I cloned the JAMES git repository this afternoon and expanded it into a new directory (Windows 11 with latest updates).  I have maven 3.9.8 installed. Per the web site command line build instructions, I set JAMES_SRC_HOME then ran mvn clean followed by mvn compile.  I got the error shown below.  I've tried a bunch of variations of the mvn command with -X and -e.  It doesn't appear to be generating any useful information at all.

I'm not an expert in maven, but learning.  There was a discussion in the jira post you referenced about the scala plugin 4.6 vs 4.8.  But I can't find any place in any pom.xml files that reference a scala-maven plugin version number.  And I'm a bit wary at my knowledge level of maven editing james pom.xml files right out of github trying to get it to compile. Can you or someone tell me how I can get past this and get James to build?

Thanks.  (console/log info follows)

[INFO] Apache James :: Server :: Guice :: Mailet :: Custom testing mailets SKIPPED [INFO] Apache James :: Server :: Guice :: Mailet :: Custom testing mailets :: implement SKIPPED
[INFO] Apache James :: Server :: Matcher :: LDAP .......... SKIPPED
[INFO] Apache James :: Server :: Web Admin ................ SKIPPED
[INFO] Apache James :: Third Party :: Crowdsec ............ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  15.832 s
[INFO] Finished at: 2024-12-09T21:57:30-06:00
[INFO] ------------------------------------------------------------------------ [DEBUG] State transition from 'API_LOCKED' to 'CLOSED' for Gradle Enterprise Maven extension version '1.20'.
[DEBUG] Setting Maven session to null.
[DEBUG] Transitioning to 'EXECUTION_FINISHED'.
[INFO] 79 goals, 79 executed
[DEBUG] Finishing project 'Apache James :: Event sourcing :: Pojo'
[DEBUG] Transitioning to 'CLOSED'.
[DEBUG] Build operation 'Clean up local build cache' started
[DEBUG] Skipping local build cache cleanup because the cleanup interval has not yet passed. The next cleanup is due 2024-12-11T02:57:02.802028300Z.
[DEBUG] Completing Build operation 'Clean up local build cache'
[DEBUG] Build operation 'Clean up local build cache' completed
[DEBUG] Closing remote build cache
[DEBUG] State transition from 'CLOSED' to 'CLOSED' for Gradle Enterprise Maven extension version '1.20'. [ERROR] Failed to execute goal io.github.evis:scalafix-maven-plugin_2.13:0.1.10_0.11.0:scalafix (scala-check-style) on project event-sourcing-pojo: Scalafix invoked with errors. Check logs for details. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.github.evis:scalafix-maven-plugin_2.13:0.1.10_0.11.0:scalafix (scala-check-style) on project event-sourcing-pojo: Scalafix invoked with errors. Check logs for details.     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333)     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:903)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:280)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:203)
    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) Caused by: org.apache.maven.plugin.MojoExecutionException: Scalafix invoked with errors. Check logs for details.     at io.github.evis.scalafix.maven.plugin.phases.ShowErrors.showErrors (ShowErrors.scala:12)     at io.github.evis.scalafix.maven.plugin.phases.ShowErrors.showErrors$ (ShowErrors.scala:9)     at io.github.evis.scalafix.maven.plugin.mojo.package$.showErrors (package.scala:5)     at io.github.evis.scalafix.maven.plugin.phases.Run.run (Run.scala:17)     at io.github.evis.scalafix.maven.plugin.phases.Run.run$ (Run.scala:12)     at io.github.evis.scalafix.maven.plugin.mojo.package$.run (package.scala:5)     at io.github.evis.scalafix.maven.plugin.mojo.ScalafixMojo.execute (ScalafixMojo.scala:80)
    at com.gradle.maven.cache.extension.d.c.a (SourceFile:27)
    at com.gradle.maven.cache.extension.d.n.a (SourceFile:23)
    at com.gradle.maven.cache.extension.d.h.a (SourceFile:28)
    at com.gradle.maven.cache.extension.d.m.a (SourceFile:27)
    at com.gradle.maven.cache.extension.d.a.c (SourceFile:115)
    at com.gradle.maven.cache.extension.d.a.a (SourceFile:61)
    at com.gradle.maven.cache.extension.d.e.a (SourceFile:27)
    at com.gradle.maven.cache.extension.d.l.a (SourceFile:17)
    at com.gradle.maven.cache.extension.d.d.a (SourceFile:42)
    at com.gradle.maven.cache.extension.d.b.a (SourceFile:26)
    at com.gradle.maven.cache.extension.d.f$1.run (SourceFile:35)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute (SourceFile:29)     at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute (SourceFile:26)     at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute (SourceFile:66)     at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute (SourceFile:59)     at org.gradle.internal.operations.DefaultBuildOperationRunner.execute (SourceFile:157)     at org.gradle.internal.operations.DefaultBuildOperationRunner.execute (SourceFile:59)     at org.gradle.internal.operations.DefaultBuildOperationRunner.run (SourceFile:47)
    at com.gradle.maven.cache.extension.d.f.a (SourceFile:31)
    at com.gradle.maven.cache.extension.d.k.a (SourceFile:67)
    at com.gradle.maven.cache.extension.h.b.lambda$createProxy$0 (SourceFile:79)
    at jdk.proxy13.$Proxy93.execute (Unknown Source)
    at com.gradle.maven.scan.extension.internal.d.a.executeMojo (SourceFile:114)     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:903)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:280)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:203)
    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)
[ERROR]
[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 :event-sourcing-pojo
[DEBUG] Shutting down adapter factory; available factories [file-lock, rwlock-local, semaphore-local, noop]; available name mappers [discriminating, file-gav, file-hgav, file-static, gav, static]
[DEBUG] Shutting down 'file-lock' factory
[DEBUG] Shutting down 'rwlock-local' factory
[DEBUG] Shutting down 'semaphore-local' factory
[DEBUG] Shutting down 'noop' factory

On 6/3/2024 9:09 AM, Benoit Tellier (Jira) wrote:
[https://issues.apache.org/jira/browse/JAMES-3969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17851653#comment-17851653 ]

Benoit Tellier commented on JAMES-3969:
---------------------------------------

Does this still happen?

Compilation issue for James 3.8.0 related to scala-maven-plugin
---------------------------------------------------------------

                 Key: JAMES-3969
URL:https://issues.apache.org/jira/browse/JAMES-3969
             Project: James Server
          Issue Type: Bug
          Components: James Core
    Affects Versions: 3.8.0
         Environment: Development
            Reporter: Sachin Nilajkar
            Priority: Blocker

We are compiling the James source file - [james-project-3.8.0-source-release.zip|https://www.apache.org/dyn/closer.lua/james/server/3.8.0/james-project-3.8.0-source-release.zip] but compilation getting failed with error as - [ERROR]: Failed to execute goal alchim31.maven:scala-maven-plugin:4.6.1:compile (scala-compile-first) on project apache-james-backend-pulsar   which is the correct version of "scala-maven-plugin" to be use for this compilation?
We are using Java 11 and
tried various versions of Maven such as 3.6.0 till 3.9.6 but still getting error so kindly help to provide correct version of "scala-maven-plugin" to be use for this compilation.


--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail:server-dev-unsubscr...@james.apache.org
For additional commands, e-mail:server-dev-h...@james.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to