mirror of
https://github.com/jlengrand/picocli.git
synced 2026-03-10 08:41:17 +00:00
130 lines
4.2 KiB
XML
130 lines
4.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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>org.myorg.myproject</groupId>
|
|
<artifactId>myapp</artifactId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.8.1</version>
|
|
<configuration>
|
|
<source>1.6</source>
|
|
<target>1.6</target>
|
|
<compilerArgs>
|
|
<arg>-Aproject=${project.groupId}/${project.artifactId}</arg>
|
|
</compilerArgs>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>3.2.0</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<version>3.0.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>generateManPages</id>
|
|
<phase>process-classes</phase>
|
|
<goals>
|
|
<goal>java</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<includeProjectDependencies>true</includeProjectDependencies>
|
|
<includePluginDependencies>true</includePluginDependencies>
|
|
<mainClass>picocli.codegen.docgen.manpage.ManPageGenerator</mainClass>
|
|
<arguments>
|
|
<argument>--outdir=${project.build.directory}/generated-picocli-docs</argument>
|
|
<argument>-v</argument>
|
|
<!-- FIXME: remove the template-dir option after generating templates once -->
|
|
<argument>--template-dir=src/docs/mantemplates</argument>
|
|
<argument>com.company.Main</argument>
|
|
<!-- <argument>com.your.package.YourCommand2</argument>-->
|
|
</arguments>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>info.picocli</groupId>
|
|
<artifactId>picocli-codegen</artifactId>
|
|
<version>4.5.2</version>
|
|
<type>jar</type>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.asciidoctor</groupId>
|
|
<artifactId>asciidoctor-maven-plugin</artifactId>
|
|
<version>2.1.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>output-html</id>
|
|
<!-- <phase>prepare-package</phase>-->
|
|
<phase>process-classes</phase>
|
|
<goals>
|
|
<goal>process-asciidoc</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sourceHighlighter>coderay</sourceHighlighter>
|
|
<backend>html5</backend>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>output-manpage</id>
|
|
<!-- <phase>prepare-package</phase>-->
|
|
<phase>process-classes</phase>
|
|
<goals>
|
|
<goal>process-asciidoc</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sourceHighlighter>coderay</sourceHighlighter>
|
|
<backend>manpage</backend>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<sourceDirectory>${project.build.directory}/generated-picocli-docs</sourceDirectory>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!--
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>3.8.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
-->
|
|
<dependency>
|
|
<groupId>info.picocli</groupId>
|
|
<artifactId>picocli</artifactId>
|
|
<version>4.5.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>info.picocli</groupId>
|
|
<artifactId>picocli-codegen</artifactId>
|
|
<version>4.5.2</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</project>
|