Re: Building JAMES

Raphaël Ouazana-Sustowski <[email protected]>
Newsgroups gmane.comp.jakarta.james.user
Message-ID <[email protected]>
Le 01/05/2020 à 07:39, David Leangen (Apache) a écrit :
>> 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?
>
Yes probably. Which version of Maven are you using?

On my Linux box `mvn -DskipTests clean package` is working fine (I can 
even add -T1C to make it faster). I skip tests because there are very 
long (about 2h) and better reproducibe via Docker.

Regards,

Raphaël.
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.