There are two things in Poml.
- Syntax for writing Poml file named
pom.poml
. - Conversion tool from
pom.poml
to Mavenpom.xml
.
Create a pom.poml
and save the following text. (ex. in the demo
directory.)
pkg=com.example:demo:0.0.1:jar
depend=
org.slf4j:slf4j-api:1.7.25,
junit:junit:4.12:test
properties=&encoding>UTF-8, &compiler>1.8
Execute poml
. ( After Installing Poml. )
demo$ poml
[INFO] Converting pom.poml
[INFO] Created pom.xml @30ms
Following pom.xml
is created.
<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.example</groupId>
<artifactId>demo</artifactId>
<version>0.0.1</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.25</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
</project>
Above pom.poml
and pom.xml
are in example/demo.
In the following directories, pom.poml
and converted pom.xml
exist.
- example/all: Using all configs of Poml
- example/all-layout: Using all configs and "Layout Section"
- example/demo-layout: Using "Layout Section"
- poml: eats own poml.
- kaze: java framework, deployed to the maven central repository.
- kaze-sample-rdb: kaze web app, packaged as fatjar.
Number is MAJOR.MINOR.PATCH
, based on Semantic Versioning 2.0.0.
Increment the:
MAJOR
for incompatible changes on poml syntax or command,MINOR
for backwards-compatible changes on those, andPATCH
for backwards-compatible bug fixes.