Skip to content

Latest commit

 

History

History
executable file
·
40 lines (36 loc) · 1.64 KB

README.md

File metadata and controls

executable file
·
40 lines (36 loc) · 1.64 KB

License Java CD Maven Central

XtendM3 Maven Plugin

Introduction

This plugin adds support for linting extensions locally based on similar (though not identical and nor complete) security rules, checks and constraints for XtendM3. Plugin also support exporting extensions to the format where they can be imported to an M3 environment.

Usage

Add the plugin to your pom.xml file in the plugins section similar to below to run the linter automatically on compile and packaging the project.

      <plugin>
        <groupId>com.infor.m3</groupId>
        <artifactId>xtendm3-maven-plugin</artifactId>
        <version>0.1.10-SNAPSHOT</version>
        <executions>
          <execution>
            <id>lint</id>
            <phase>compile</phase>
            <goals>
              <goal>lint</goal>
            </goals>
          </execution>
          <execution>
            <id>export</id>
            <phase>package</phase>
            <goals>
              <goal>export</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

You can also run the goals separately:

  • ./mvnw xtendm3:lint for linting and verifying extensions
  • ./mvnw xtendm3:export for exporting the extensions
  • ./mvnw xtendm3:help to seek help