I got past the previous problem by commenting out the release line on the following xml. I think this may have to do with the plan to go to jdk 11?
It got past the compile now it is failing a cassandra test apache-james-backends-cassandra Can i go directly to package? I am not using cassandra.... HOw do I avoid the testing or get past this error. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <optimize>true</optimize> <source>${target.jdk}</source> <target>${target.jdk}</target> <!--<release>${target.jdk}</release> --> </configuration> </plugin> [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project apache-james-backends-cassandra: There are test failures. [ERROR] [ERROR] Please refer to /home/orderpt/james-project/backends-common/cassandra/target/surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [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/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :apache-james-backends-cassandra On Fri, Oct 25, 2019 at 6:09 PM Mark Gordon <m...@ordertech.com> wrote: > I have used james in the past but now having trouble getting 3.4 to > deliver mail. > > I would like to be able to build the latest release so I and figure out > what is going on. Also would like to work on some maillets..... > Is there an up to date tutorial on building the latest master? > > I did not make it very far.... > > Any direction would be appreciated. > > I cloned the repository and I get this error when I try to compile. > https://james.apache.org/server/3/dev-build.html > > In the JAMES_SRC_HOME top level directory (where the parent pom.xml > resides), invoke maven with 'mvn' with any of the following command line > arguments: > > - clean - deletes the target directory, making the system ready for a > clean build. > - compile - compiles the source code. > - test - run unit tests for James. > - *package - generates all the James distributions, packed. From the > root directory, cd to 'server/container/spring/target' to have the build > distribution. Notice, for the latest trunk(revision 1430655+), a specific > profile argument need to be set: '-Pwith-assembly'. The location of final > distributions is also changed to 'JAMES_SRC_HOME/server/app/target'.* > - javadocs:javadocs - builds the James javadocs. > - site - builds the entirety of the James website. > > > I did: > > clone > mvn clean > mvn compile > > > [INFO] Apache James :: Server :: Web Admin server integration tests SKIPPED > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 16.635 s > [INFO] Finished at: 2019-10-25T18:04:55Z > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile > (default-compile) on project james-server-util: Fatal error compiling: > invalid flag: --release -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the > -e switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [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 <goals> -rf :james-server-util > > -- > Mark Gordon <m...@ordertech.com> > > OrderTech Corporation | 819 W Fairmont Dr Ste 2 | Tempe, AZ 85282 > > *o:* (480) 285-1403 <4802851403> | *f:* (480) 464-5824 <4804645824> | *m:* > (602) 549-0488 <6025490488> > > www.ordertech.com > > LinkedIn <http://www.linkedin.com/company/ordertech-corp> | Twitter > <https://twitter.com/OrderTech> | Facebook > <https://www.facebook.com/OrderTech> > -- Mark Gordon <m...@ordertech.com> OrderTech Corporation | 819 W Fairmont Dr Ste 2 | Tempe, AZ 85282 *o:* (480) 285-1403 <4802851403> | *f:* (480) 464-5824 <4804645824> | *m:* (602) 549-0488 <6025490488> www.ordertech.com LinkedIn <http://www.linkedin.com/company/ordertech-corp> | Twitter <https://twitter.com/OrderTech> | Facebook <https://www.facebook.com/OrderTech>