Hi Jerry,

Thanks for the report, we should refresh that page that looks like
mostly outdated.

The `with-assembly` profile was removed, so you do not need to pass it.

I would encourage you to also add the maven `clean` goal, just to be sure.

Also, running the test suite is quite long and requires docker to be
installed, this can be skipped with the `-DskipTests` option.

Finally `server/app` had been relocated to `server/apps/spring`.

You might also include threading options (more threads = faster): -T 3

As a reference this is the file used by the CI:
https://github.com/apache/james-project/blob/master/Jenkinsfile

The command I perfornnaly use is: mvn clean install -DskipTests
-Dmaven.javadoc.skip=true -T 3

Regards,

Benoit

On 08/09/2021 10:31, Jerry Malcolm wrote:
> I'm attempting to build the latest 3.x source code using the command
> line instructions in the dev-build page.  The compile option ran
> clean. But I'm having a bit of trouble understanding the 'package'
> command.
>
> "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'."
>
> The instructions appear to say the output builds are in
> 'server/container/spring/target'  but then it says the output builds
> are in 'JAMES_SRC_HOME/server/app/target' or does that mean that I
> need to run the mvn package from the server/container... folder?
>
> I ran the command "mvn package -Pwith-assembly"** It failed with: *
> *
>
> [WARNING] The requested profile "with-assembly" could not be activated
> because it does not exist.
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test
> (default-test) on project james-server-task-memory: There are test
> failures.*
> *
>
> Is there some dependency I need to additionally download?  Or do I
> have the syntax or folder or something incorrect to run the mvn
> package command?
>
> Thx
>
> Jerry*
> *
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to