Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

description_to_be_fill

License

Notifications You must be signed in to change notification settings

ohpensource/run-maven-gh-action

Repository files navigation

setup-maven-gh-action

  • Action runs maven command with supplied parameters.
  • Includes saving cache after build.
  • Maven run command uses: maven-aws-profile for running build.
  • It sets also environment variables to be backward compatible with AWS SDK v.1. ** for this purpose is used plugins-aws-profile (set for PLUGINS_AWS_PROFILE environment variable) if not set, then: maven-aws-profile
      - uses: ohpensource/[email protected]
        name: Run maven command
        with:
          phases: clean install
          profiles: github
          parameters: >- 
            -DuseGitHub=true
            -Denable.deploy=false
          threads: 1C
          save-cache: true

Advanced settings

  • save-cache - If cache should be saved after maven run
  • jvm-options - Maven Java virtual machine settings like memory configuration
    • if missing JVM -Xmx parameter then action automatically calculate maximally available memory for maven process
  • threads - Maven thread parameter: eg. 1.5C, 1C, 4. Default 1 thread pre CPU core
    • if missing JVM -Xmx parameter then number of CPU cores are included into calculation of maximally available memory for maven process
    • if there is use "[0-9.]C" setting then all available CPU cores are used for memory calculation
  • build-dependant-modules - Use [true] for argument --also-make-dependents, [false] for argument --also-make

License Summary

This code is made available under the MIT license. Details here.

About

description_to_be_fill

Resources

License

Stars

Watchers

Forks

Packages

No packages published