[
https://issues.apache.org/jira/browse/JAMES-3181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17108005#comment-17108005
]
David Leangen commented on JAMES-3181:
--------------------------------------
Maven:
{code:java}
$ mvn -version
Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117;
2019-08-28T00:06:16+09:00)
Maven home: /Users/dleangen/.sdkman/candidates/maven/current
Java version: 11.0.7, vendor: AdoptOpenJDK, runtime:
/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
Default locale: en_JP, platform encoding: UTF-8
OS name: "mac os x", version: "10.13.6", arch: "x86_64", family: "mac"
{code}
Java:
{code:java}
$ 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)
{code}
Command used:
{code:java}
mvn package
{code}
I'm not sure how to get the SHA-1. I cloned from git. Is there something I
should do to get you the information you are asking for?
{code:java}
$ git status
On branch master
Your branch is up to date with 'my-fork/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: .java-version
{code}
I tried your suggestion:
{code:java}
export MAVEN_OPTS="-Xmx3000m"
mvn clean package -T 4 -DskipTests -Dmaven.javadoc.skip=true
{code}
I got much further along, but the build did not complete:
{code:java}
[INFO] Apache James :: Server :: App ...................... FAILURE [ 17.734 s]
{code}
I also tried setting the JVM params in the pom:
{code:xml}
<argLine>-Xms3000m -Xmx3000m</argLine>
{code}
Unfortunately, the build dies for lack of heap space:
{code:java}
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-assembly-plugin:3.1.1:single (make-assembly) on
project james-server-app: Failed to create assembly: Error creating assembly
archive app: Problem creating zip: Execution exception: Java heap space ->
[Help 1]
{code}
> 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]