9
~~ Licensed to the Apache Software Foundation (ASF) under one
10
~~ or more contributor license agreements. See the NOTICE file
11
~~ distributed with this work for additional information
12
~~ regarding copyright ownership. The ASF licenses this file
13
~~ to you under the Apache License, Version 2.0 (the
14
~~ "License"); you may not use this file except in compliance
15
~~ with the License. You may obtain a copy of the License at
17
~~ http://www.apache.org/licenses/LICENSE-2.0
19
~~ Unless required by applicable law or agreed to in writing,
20
~~ software distributed under the License is distributed on an
21
~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
22
~~ KIND, either express or implied. See the License for the
23
~~ specific language governing permissions and limitations
26
~~ NOTE: For help with the syntax of this file, see:
27
~~ http://maven.apache.org/doxia/references/apt-format.html
29
Using <<<\<target/\>>>> Attributes
31
Since plugin version 1.2 you can specify attributes in the <<<\<target/\>>>> configuration to execute or not
32
Ant tasks depending some conditions. For example, to skip Ant call, you could add the following:
41
<groupId>org.apache.maven.plugins</groupId>
42
<artifactId>maven-antrun-plugin</artifactId>
43
<version>${project.version}</version>
46
<phase> <!-- a lifecycle phase --> </phase>
49
<target unless="maven.test.skip">
50
<echo message="To skip me, just call mvn -Dmaven.test.skip=true"/>