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

src.site.apt.usage.apt Maven / Gradle / Ivy

 ------
 Basic Usage :: Genesis Tools Plugin for Maven 2
 ------
 ------
 $Rev: 486884 $ $Date: 2006-12-13 14:55:41 -0800 (Wed, 13 Dec 2006) $

~~ 
~~ 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*
            
        
    

+----------+

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
            
        
    

+----------+

* Sign artifacts with GnuPG

 <> Deprecated; use the {{{http://maven.apache.org/plugins/maven-gpg-plugin/}maven-gpg-plugin}} instead.

 Signs all of a project's attached artifacts with GnuPG.

 You need to specify the passphrase with a <<<-Dpassphrase=thephrase>>> on the command line.
 <<>> also needs to be on the search path.
 
 You need to have previously configured the default key.

+----------+

    org.apache.geronimo.genesis.plugins
    tools-maven-plugin
    
        
            sign-artifacts
            verify
            
                gpg-sign-attached
            
        
    

+----------+





© 2015 - 2025 Weber Informatics LLC | Privacy Policy