Bash Doc Maven Plugin
This will create documentation files for a bash script based on in script comments
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<goals>
<goal>copy-resources</goal>
</goals>
<phase>validate</phase>
<configuration>
<outputDirectory>${basedir}/target/bash</outputDirectory>
<resources>
<resource>
<directory>src/main/bash</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.darkowl.bashDoc</groupId>
<artifactId>bashDoc-maven-plugin</artifactId>
<executions>
<execution>
<id>Document Library</id>
<goals>
<goal>document</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
mvn release:clean release:prepare
mvn release:perform
This tells the plugin where to place the documentation files
DEFAULT:${project.build.directory}/doc
This tells the plugin the source files to process are located
DEFAULT:${project.build.directory}/bash
Tells the plugin to output a Raw xml version of the documentation
DEFAULT:true
This Tells the plugin to output a text version of the documentation
DEFAULT:true
This is the general author of the file
This is the email of the author of the file
This is the Examples of how to use the method
This documents the exit code for either a script or a function
indicates that the comment is for the file as a whole
Indicates that the code block is for a method
Indicates that the code section was intended to be private
Indicates that the code section was intended to be protected
Indicates that the code section was intended to be public
This is the date of a given release
This will describe the Return from the Method (if there is one)
This is used under the VERSION tag and tells the name of the version to be described
This indicates that the comment will be for a variable
Current Version of the File
This indicates that a list of versions with notes about each will follow
- Add ability to document return data from a method
- Fixed issues in how this handles non-text charators when formating lines
- Split Return code form method Exit code
- General Code quality cleanups
- Added Markdown as an output Option
- Added Exit codes
- Update Flatten Pom Plugin so we can deploy to nexus
- Added Examples
- Added Return Values
- Add Parameters
- Wrap Long Lines
- Issue with flatten pom plugin that won't allow nexus deploy
- Install GnuPG
-
sudo apt install gnupg
-
- Generate a Key
-
gpg --gen-key
-
- Cut Release
-
mvn release:prepare mvn release:perform
-