All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.helidon-archetype.xml.mustache Maven / Gradle / Ivy

There is a newer version: 2.6.10
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (c) 2022 Oracle and/or its affiliates.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<archetype-descriptor modelVersion="1.0" name="helidon-oci-mp">
    <properties>
        <property id="groupId"/>
        <property id="artifactId"/>
        <property id="version" value="1.0-SNAPSHOT"/>
        <property id="name" value="myproject"/>
        <property id="package"/>
        <property id="maven" exported="false"/>
        <property id="helidonVersion" exported="false" readonly="true" value="{{project.version}}"/>
    </properties>
    <transformations>
        <transformation id="packaged">
            <replace regex="__pkg__" replacement="${package/\./\/}"/>
        </transformation>
        <transformation id="mustache">
            <replace regex="\.mustache$" replacement=""/>
        </transformation>
    </transformations>
    <template-sets transformations="mustache">
        <template-set transformations="packaged">
            <directory>./server/src/main/java</directory>
            <includes>
                <include>**/*.mustache</include>
            </includes>
        </template-set>
        <template-set transformations="packaged">
            <directory>./server/src/test/java</directory>
            <includes>
                <include>**/*.mustache</include>
            </includes>
        </template-set>
        <template-set if="maven" transformations="packaged">
            <directory>.</directory>
            <includes>
                <include>pom.xml.mustache</include>
                <include>*/*.mustache</include>
                <include>*/.dockerignore</include>
            </includes>
        </template-set>
    </template-sets>
    <file-sets>
        <file-set>
            <directory>./spec</directory>
            <includes>
                <include>**/*</include>
            </includes>
        </file-set>
        <file-set>
            <directory>.</directory>
            <includes>
                <include>*/src/main/resources/**</include>
                <include>server/distribution.xml</include>
                <include>README.md</include>
            </includes>
        </file-set>
    </file-sets>
    <input-flow>
        <input property="name" text="Project name" default="${name}"/>
        <input property="groupId" text="Project groupId" if="maven" default="${groupId}"/>
        <input property="artifactId" text="Project artifactId" default="${artifactId}"/>
        <input property="version" text="Project version" default="${version}"/>
        <input property="package" text="Java package name" default="${package}"/>
    </input-flow>
</archetype-descriptor>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy