[
https://issues.apache.org/jira/browse/JAMES-3181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17107944#comment-17107944
]
Benoit Tellier commented on JAMES-3181:
---------------------------------------
Hi David.
That is weird.
Can you:
- Provide the maven version you rely on?
- Provide the command line you used.
- The SHA-1 of the source code you built from.
Here
{code:java}
$ java -version
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11)
OpenJDK 64-Bit Server VM (build 11.0.4+11, mixed mode)
{code}
{code:java}
$ maven -version
Apache Maven 3.6.3 (NON-CANONICAL_2019-11-27T20:26:29Z_root)
Java version: 11.0.4, vendor: Oracle Corporation, runtime:
/usr/lib/jvm/java-11-openjdk
Default locale: fr_FR, platform encoding: UTF-8
OS name: "linux", version: "5.2.9-arch1-1-arch", arch: "amd64", family: "unix"
{code}
{code:java}
SHA-1 af547499537ed3089d2e990e1b4a3abab7fb22e0
{code}
Running :
{code:java}
export MAVEN_OPTS="-Xmx3000m"
mvn clean package -T 4 -DskipTests -Dmaven.javadoc.skip=true
{code}
works great...
Otherwise the docker image for compilation can be used straight away:
{code:java}
docker build -t james/project dockerfiles/compilation/java-8
docker run -v $HOME/.m2:/root/.m2 -v $PWD:/origin -t james/project -s HEAD
{code}
Regards,
Benoit
> James does not compile
> ----------------------
>
> Key: JAMES-3181
> URL: https://issues.apache.org/jira/browse/JAMES-3181
> Project: James Server
> Issue Type: Bug
> Components: Build System
> Affects Versions: master
> Reporter: David Leangen
> Priority: Major
>
> Compilation breaks when attempting to build James.
> Java version:
>
> {noformat}
> 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)
> {noformat}
>
> On MacOS.
> Breaks here:
> {noformat}
> [INFO] Apache James :: Core Domain Objects ................ FAILURE [ 9.755
> s]{noformat}
> Broken test example:
> {noformat}
> -------------------------------------------------------------------------------
> Test set: org.apache.james.core.builder.MimeMessageBuilderTest
> -------------------------------------------------------------------------------
> Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.091 s <<<
> FAILURE! - in org.apache.james.core.builder.MimeMessageBuilderTest
> embeddedMessagesShouldBeSupported Time elapsed: 0.028 s <<< ERROR!
> java.lang.Error:
> Unresolved compilation problems:
> The method toArray(T[]) in the type
> ImmutableCollection<InternetAddress> is not applicable for the arguments
> (InternetAddress[]::new)
> The target type of this expression must be a functional interface
> The method toArray(T[]) in the type List<InternetAddress> is not
> applicable for the arguments (InternetAddress[]::new)
> The target type of this expression must be a functional interface
> The method toArray(T[]) in the type List<InternetAddress> is not
> applicable for the arguments (InternetAddress[]::new)
> The target type of this expression must be a functional interface
> The method toArray(T[]) in the type List<InternetAddress> is not
> applicable for the arguments (InternetAddress[]::new)
> The target type of this expression must be a functional interface
> at
> org.apache.james.core.builder.MimeMessageBuilderTest.embeddedMessagesShouldBeSupported(MimeMessageBuilderTest.java:70)buildShouldAllowToSpecifyMultipartSubtype
> Time elapsed: 0.057 s <<< ERROR!
> java.lang.Error:
> Unresolved compilation problems:
> The method toArray(T[]) in the type
> ImmutableCollection<InternetAddress> is not applicable for the arguments
> (InternetAddress[]::new)
> The target type of this expression must be a functional interface
> The method toArray(T[]) in the type List<InternetAddress> is not
> applicable for the arguments (InternetAddress[]::new)
> The target type of this expression must be a functional interface
> The method toArray(T[]) in the type List<InternetAddress> is not
> applicable for the arguments (InternetAddress[]::new)
> The target type of this expression must be a functional interface
> The method toArray(T[]) in the type List<InternetAddress> is not
> applicable for the arguments (InternetAddress[]::new)
> The target type of this expression must be a functional interface
> at
> org.apache.james.core.builder.MimeMessageBuilderTest.buildShouldAllowToSpecifyMultipartSubtype(MimeMessageBuilderTest.java:90)
> {noformat}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]