de.vandermeer.skb.mvn.pm.pom.stg Maven / Gradle / Ivy
/* Copyright 2016 Sven van der Meer
*
* 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.
*/
/*
* ST to generate a Maven POM file from a Managed Project object.
*
* @package de.vandermeer.skb.mvn.pm
* @author Sven van der Meer
* @copyright 2016 Sven van der Meer
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @version v0.0.2 build 160304 (04-Mar-16)
*/
delimiters "$", "$"
pom(mp, licenses, plugins, dependencies, developers, contributors, distMgmt, modules, reporting, profiles) ::= <<
4.0.0
$mp.mvnGroupId$
$mp.mvnArtifactId$
$mp.mvnVersion$
$mp.mvnPackaging$
$if(mp.mvnName)$$mp.mvnName$ $endif$
$if(mp.mvnDescription)$$mp.mvnDescription$ $endif$
$if(mp.mvnUrl)$$mp.mvnUrl$ $endif$
$if(mp.mvnInceptionYear)$$mp.mvnInceptionYear$ $endif$
3.0.0
$licenses:{v|$v$};separator="\n"$
$if(mp.mvnCompilerSource)$$mp.mvnCompilerSource$ $endif$
$if(mp.mvnCompilerTarget)$$mp.mvnCompilerTarget$ $endif$
$if(mp.mvnEncoding)$
$mp.mvnEncoding$
$mp.mvnEncoding$
$mp.mvnEncoding$
$mp.mvnEncoding$
$endif$
$if(mp.mvnOrgName&&mp.mvnOrgUrl)$
$mp.mvnOrgName$
$mp.mvnOrgUrl$
$endif$
$developers:{v|$v$};separator="\n"$
$if(contributors)$
$contributors:{v|$v$};separator="\n"$
$endif$
$if(mp.dependencies||dependencies)$
$if(mp.dependencies)$
$mp.dependencies:{v|$dependency(v)$};separator="\n"$
$endif$
$if(dependencies)$
$dependencies:{v|$v$};separator="\n"$
$endif$
$endif$
$if(modules)$
$modules:{p|$p$};separator="\n\n"$
$endif$
$if(plugins)$
$plugins:{p|$p$};separator="\n\n"$
$endif$
$if(profiles)$
$profiles:{p|$p$};separator="\n\n"$
$endif$
$if(reporting)$
$reporting:{p|$p$};separator="\n\n"$
$endif$
$mp.mvnIssueMgmtSystem$
$mp.mvnIssueMgmtUrl$
$mp.mvnScmConnection$
$mp.mvnScmDeveloperConnection$
HEAD
$mp.mvnScmUrl$
>>
//
// Internal: template for Model_Dependencies
//
dependency(dep) ::= <<
$dep.groupId$
$dep.artifactId$
$dep.version$
$dep.scope$
>>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy