------ Basic Usage :: Genesis Tools Plugin for Maven 2 ------ ------ $Rev$ $Date$ ~~ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you 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. ~~ Java Version Control Allow builds to fail quickly if the Java version is not correct. * Require a specific Java version This will only allow the build to function if the Java version is 1.4.1, any other version will cause a build failure. NOTE: That for 1.4.1 you specify 1.41. The version should have only one decimal. +----------+ org.apache.geronimo.genesis.plugins tools-maven-plugin validate require-java-version 1.41 +----------+ * Require Java version greater than or equal Specify the '+' token as a suffix to the version number. This will only allow the build to function if the Java version is 1.4 or grater. For example 1.4.1 or 1.5, but not 1.3. +----------+ org.apache.geronimo.genesis.plugins tools-maven-plugin validate require-java-version 1.4+ +----------+ * Require Java version in the same group Specify the '*' token as a suffix to the version number. This will only allow the build to function if the Java version is 1.4 or grater in the same group. For example 1.4.1 or 1.4.2, but not 1.5. +----------+ org.apache.geronimo.genesis.plugins tools-maven-plugin validate require-java-version 1.4* +----------+ Maven Version Control Allow builds to fail quickly if the Maven version is not correct. * Require a specific Maven version This will only allow the build to function if the Maven version is 2.0.4, any other version will cause a build failure. NOTE: The basic syntax is the same as for require-java-version, except that you can specify values like 1.4.1 (you do not need to, or should, specify 1.41). +----------+ org.apache.geronimo.genesis.plugins tools-maven-plugin validate require-maven-version 2.0.4 +----------+ Other Tools * Copy legal files Copy <<>>, <<>> and <<>> to <<>> for inclusion into archives. +----------+ org.apache.geronimo.genesis.plugins tools-maven-plugin install-legal-files generate-resources copy-legal-files +----------+ The list of files to include can be configured explicitly if desired. +----------+ org.apache.geronimo.genesis.plugins tools-maven-plugin install-legal-files generate-resources copy-legal-files ${pom.basedir} *.txt +----------+ * Verify that artifacts include legal files Help to make sure that your generated project artifacts (and attached artifacts), which are zip-encoded include required legal files. By default checks for <<>> and <<>> in <<>> and <<>>: +----------+ org.apache.geronimo.genesis.plugins tools-maven-plugin verify-legal-files verify verify-legal-files +----------+ Fail builds using strict mode: +----------+ org.apache.geronimo.genesis.plugins tools-maven-plugin verify-legal-files verify verify-legal-files true +----------+ Specify the list of required legal files: +----------+ org.apache.geronimo.genesis.plugins tools-maven-plugin verify-legal-files verify verify-legal-files LICENSE.txt NOTICE.txt DISCLAIMER.txt +----------+