
org.kuali.common.deploy.mvn.enforcer.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kuali-deploy Show documentation
Show all versions of kuali-deploy Show documentation
Project containing deployment logic for Kuali applications
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2004-2013 The Kuali Foundation Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php 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. --> <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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>${parent.groupId}</groupId> <artifactId>${parent.artifactId}</artifactId> <version>${parent.version}</version> </parent> <groupId>${project.groupId}</groupId> <artifactId>kuali-enforcer</artifactId> <version>${project.version}</version> <name>Kuali Enforcer</name> <description>This pom contains plugin executions for making sure the properties needed for deployment are set correctly</description> <build> <pluginManagement> <plugins> <plugin> <groupId>org.kuali.maven.plugins</groupId> <artifactId>properties-maven-plugin</artifactId> <version>${plugin.properties.version}</version> <executions> <execution> <id>read</id> <phase>validate</phase> <goals> <goal>read-project-properties</goal> </goals> <configuration> <quiet>false</quiet> <locations> <param>${properties.original}</param> </locations> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-enforcer-plugin</artifactId> <version>${plugin.enforcer.version}</version> <executions> <execution> <id>enforce</id> <phase>validate</phase> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <requireProperty> <property>deploy.groupId</property> <message>You must provide a group id</message> </requireProperty> <requireProperty> <property>deploy.artifactId</property> <message>You must provide an artifact id</message> </requireProperty> <requireProperty> <property>deploy.version</property> <message>You must provide a version to deploy</message> <regex>^\d(.)*</regex> <regexMessage>Version must begin with a number</regexMessage> </requireProperty> <requireProperty> <property>deploy.env</property> <message>You must provide an environment</message> <!-- Comment this out for now so we can use envlocal.properties <regex>^\d(.)*</regex> <regexMessage>Environment must be a number</regexMessage> --> </requireProperty> </rules> <fail>true</fail> </configuration> </execution> </executions> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.kuali.maven.plugins</groupId> <artifactId>properties-maven-plugin</artifactId> </plugin> <plugin> <artifactId>maven-enforcer-plugin</artifactId> </plugin> </plugins> </build> </project>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy