'Mojo Codehaus Properties Plugin Alternatives

I am currently trying to work with Codehaus Mojo Properties. I only found out about it this morning.

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>properties-maven-plugin</artifactId>
    <version>1.0.0</version>
</plugin>

So I cant say that I am an expert on it. But when trying to build a war file I keep getting:

Caused by: org.apache.maven.plugin.MojoFailureException: Circular property definition:

My plugin configuration is:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>properties-maven-plugin</artifactId>
    <inherited>true</inherited>
    <executions>
        <execution>
            <id>read-pal-properties</id>
            <phase>initialize</phase>
            <goals>
                <goal>read-project-properties</goal>
            </goals>                        
            <configuration>
                <files>
                    <file>${project.basedir}\src\main\resources\system.properties</file>
                </files>
            </configuration>
        </execution>
    </executions>
</plugin>

A property that fails is:

webserver.websphere=WebSphere:cell=${webserver.cell},node=${webserver.node},server=${webserver.server}

I googled a bit about it, and saw that this is a known bug. So just wanted to see if there are other plugins that do that same job.

https://github.com/mojohaus/properties-maven-plugin/issues/27

Any help would be appreciated.



Solution 1:[1]

If you still haven't found the answer yet after >2years, use the 1.0-alpha-2 version

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jacky