Apache maven

Clone this repo:
  1. 57b721c Bump maven-extensions parent to 50 by Sylwester Lachiewicz · 2 weeks ago main
  2. 7fe57d9 Bump org.apache.maven.extensions:maven-extensions from 45 to 47 by dependabot[bot] · 9 months ago
  3. 4026986 Set up default protection ruleset for default and release branches by The Apache Software Foundation · 5 months ago
  4. 816e9a7 Build against Maven 4.0.0-rc-7 and stop exporting META-INF.maven by Sylwester Lachiewicz · 2 weeks ago
  5. 1f37dc8 Tag releases as maven-hocon-extension-<version> by Sylwester Lachiewicz · 2 weeks ago

⚠️ WARNING ⚠️

This extension has several significant limitations:

  • No location tracking support, making error messages less helpful
  • Uses an unmaintained library as its core dependency

Consider using Mason instead, which provides a more robust and maintained alternative.

📢 ARCHIVED REPOSITORY 📢

This repository has been archived and is no longer maintained. Please use Mason instead.

Apache Maven Hocon Extension

Apache License, Version 2.0, January 2004 Maven Central

This project provides a Hocon POM parser extension for Maven 4. It allows POMs to be written with the Hocon syntax, which is a superset of the JSON syntax.

License

This code is under the [Apache License, Version 2.0, January 2004][./LICENSE].

See the NOTICE file for required notices and attributions.

Usage

To use this extension, the following declaration needs to be done in your ${rootDirectory}/.mvn/extensions.xml:

<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.2.0">
    <extension>
        <groupId>org.apache.maven.extensions</groupId>
        <artifactId>maven-hocon-extension</artifactId>
        <version>@project.version@</version>
    </extension>
</extensions>

This allows defining a POM using Hocon syntax:

modelVersion = 4.1.0
parent {
    groupId = org.apache.maven.hocon.its
    artifactId = parent
    version = 1.0.0-SNAPSHOT
}
artifactId = test

properties = {
  "my.property" = foo
  pluginVersion = 3.9
}

dependencies = [
    # just add one dummy dependency
    "com.typesafe:config:1.4.2"
]