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