-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpom.xml
106 lines (104 loc) · 3.15 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.ricksbrown</groupId>
<artifactId>cowsay-example</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<cowsay.version>1.1.0</cowsay.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<!-- Example cowsay plugin usage -->
<groupId>com.github.ricksbrown</groupId>
<artifactId>cowsay</artifactId>
<version>${cowsay.version}</version>
<executions>
<execution>
<id>say-moo</id>
<phase>compile</phase>
<goals>
<goal>moo</goal>
</goals>
<configuration>
<message>What good is a maven build without cows?</message>
<cowfile>stegosaurus</cowfile>
</configuration>
</execution>
</executions>
<!--
If you want the additional/excluded cows you need to add them
<dependencies>
<dependency>
<groupId>com.github.ricksbrown</groupId>
<artifactId>cowjar-off</artifactId>
<version>${cowsay.version}</version>
</dependency>
<dependency>
<groupId>com.github.ricksbrown</groupId>
<artifactId>cowjar-extra</artifactId>
<version>${cowsay.version}</version>
</dependency>
<dependency>
<groupId>com.github.ricksbrown</groupId>
<artifactId>cowjar-js</artifactId>
<version>${cowsay.version}</version>
</dependency>
</dependencies>
-->
</plugin>
<plugin>
<!-- Ant example called from maven -->
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>ant-from-maven-example</id>
<phase>compile</phase>
<configuration>
<target>
<property name="cowjarpath" refid="maven.compile.classpath"/>
<ant antfile="${basedir}/build.xml">
<target name="build"/>
</ant>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<!--
If you want the additional/excluded cows you need to add them
<dependency>
<groupId>com.github.ricksbrown</groupId>
<artifactId>cowjar-off</artifactId>
<version>${cowsay.version}</version>
</dependency>
<dependency>
<groupId>com.github.ricksbrown</groupId>
<artifactId>cowjar-extra</artifactId>
<version>${cowsay.version}</version>
</dependency>
<dependency>
<groupId>com.github.ricksbrown</groupId>
<artifactId>cowjar-js</artifactId>
<version>${cowsay.version}</version>
</dependency>
-->
<dependency>
<!-- Example cowsay java library usage -->
<groupId>com.github.ricksbrown</groupId>
<artifactId>cowsay</artifactId>
<classifier>lib</classifier><!-- This is a lightweight version you can use as a java library but is not executable -->
<version>${cowsay.version}</version>
</dependency>
</dependencies>
</project>