Re: Building JAMES

"David Leangen (Apache)" <[email protected]>
Newsgroups gmane.comp.jakarta.james.user
Message-ID <5f1f0d58-f992-4f08-8ff5-36e22353ede5@Spark>
> If you are not able to install Java 11 on your build machine, and prefer
> using Docker I recommend that you use the tested docker image for
> compilation. See: https://github.com/apache/james-project/#java-11

The build worked using Docker as you recommended.

FYI, for the fun of it, I also installed Java 11 on my Mac and tried to compile without Docker, but the build failed.

james-project$ java -version
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.7+10, mixed mode)

[INFO] Apache James :: Server :: Task :: Memory implementation FAILURE [ 40.001 s]

[ERROR] Tests run: 32, Failures: 0, Errors: 32, Skipped: 0, Time elapsed: 0.089 s <<< FAILURE! - in org.apache.james.task.MemoryTaskManagerTest
[ERROR] additionalInformationShouldBeUpdatedWhenFailed  Time elapsed: 0.018 s  <<< ERROR!
java.lang.NoSuchMethodError: 'void org.apache.james.task.MemoryTaskManager.<init>(org.apache.james.task.Hostname)'
at org.apache.james.task.MemoryTaskManagerTest.setUp(MemoryTaskManagerTest.java:33)

[ERROR] getStatusShouldReturnCompletedWhenRunSuccessfully  Time elapsed: 0 s  <<< ERROR!
java.lang.NoSuchMethodError: 'void org.apache.james.task.MemoryTaskManager.<init>(org.apache.james.task.Hostname)'
at org.apache.james.task.MemoryTaskManagerTest.setUp(MemoryTaskManagerTest.java:33)

Should I file a bug?


Cheers,
=David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.