set COBDIR=C:\Program Files (x86)\Micro Focus\Enterprise Developer
set COBOL_VERSION=<product-version>
where <product-version> is the version of your current product; for example: 8.0.0, 9.0.0, etc...
mvn install:install-file -Dfile="%COBDIR%\bin\mfant.jar" -DgroupId=com.microfocus.cobol.build -DartifactId=mfant -Dversion=%COBOL_VERSION% -Dpackaging=jarAfter a successful build, mfant.jar is installed in your Maven repository (%USERPROFILE%\.m2 , by default).
The Create New File dialog box is displayed.
The file is opened in the editor.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.mfcobolbook.cobol</groupId> <artifactId>MyMavenProject</artifactId> <version>1.0.0</version> <build> </build> </project>
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.output.dir>${project.basedir}/New_Configuration.bin</project.output.dir> </properties>
Property | Description |
---|---|
<project.output.dir> | The output directory for your project. |
<plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>3.0.0</version> <executions> <execution> <id>build</id> <phase>compile</phase> <configuration> <target> <ant antfile="${project.basedir}/.combinedbuild" target="combinedbuild" /> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> <execution> <id>clean</id> <phase>clean</phase> <configuration> <target> <ant antfile="${project.basedir}/.combinedbuild" target="clean" /> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>ant-contrib</groupId> <artifactId>ant-contrib</artifactId> <version>1.0b3</version> <exclusions> <exclusion> <groupId>ant</groupId> <artifactId>ant</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.microfocus.cobol.build</groupId> <artifactId>mfant</artifactId> <version>8.0.0</version> </dependency> </dependencies> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> <version>3.0.0-M1</version> <configuration> <skip>true</skip> </configuration> </plugin> </plugins>
A build is invoked and the results of the build are shown in <project.output.dir>.