Project

General

Profile

« Previous | Next » 

Revision 9e671498

Added by Cherian Mathew over 8 years ago

Remove profile for clean goals to delete cdmlib jars

View differences:

eu.etaxonomy.taxeditor.cdmlib/pom.xml
1 1
<?xml version="1.0" encoding="UTF-8"?>
2
<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">
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3 4
  <parent>
4 5
    <groupId>eu.etaxonomy</groupId>
5 6
    <artifactId>taxeditor-parent</artifactId>
......
83 84
                <move todir="./src/main/resources/etc/jetty">
84 85
                  <fileset dir="./src/main/resources/etc/jetty" />
85 86
                  <mapper type="regexp"
86
                    from="(^cdmlib\-remote\-webapp).*(\.war)"
87
                    to="\1\2" />
87
                    from="(^cdmlib\-remote\-webapp).*(\.war)" to="\1\2" />
88 88
                </move>
89 89
                <echo>Update cdmlib jars to SNAPSHOT when build with
90 90
                  timestamp
......
99 99
                  <fileset dir="./lib" />
100 100
                  <mapper type="regexp"
101 101
                    from="(^cdmlib\-.*\-\d+\.\d+\.\d+\-)[\d.-]+(\-sources\.jar)"
102
                    to="\1SNAPSHOT\2" />                
102
                    to="\1SNAPSHOT\2" />
103 103
                </move>
104 104
              </target>
105 105
            </configuration>
106 106
          </execution>
107
          <execution>
108
            <id>remove-existing-jars</id>
109
            <phase>clean</phase>
110
            <goals>
111
              <goal>run</goal>
112
            </goals>
113
            <configuration>
114
              <target>
115
                <echo>Remove all cdmlib jars</echo>
116
                <delete>
117
                  <fileset dir="./lib" includes="cdmlib-*" />
118
                </delete>
119
              </target>
120
            </configuration>
121
          </execution>
107 122
        </executions>
108 123
      </plugin>
109 124
    </plugins>
110 125
  </build>
111 126
  <profiles>
112
    <profile>
113
      <id>cleanCdmlibJars</id>
114
      <build>
115
        <plugins>
116
          <plugin>
117
            <artifactId>maven-clean-plugin</artifactId>
118
            <version>2.3</version>
119
            <configuration>
120
              <filesets>
121
                <fileset>
122
                  <directory>${basedir}/lib</directory>
123
                  <includes>
124
                    <include>cdmlib-*</include>
125
                  </includes>
126
                  <followSymlinks>false</followSymlinks>
127
                </fileset>
128
              </filesets>
129
            </configuration>
130
          </plugin>
131
        </plugins>
132
      </build>
133
    </profile>
134
    <profile>
135
      <id>cleanAllJars</id>
136
      <build>
137
        <plugins>
138
          <plugin>
139
            <artifactId>maven-clean-plugin</artifactId>
140
            <version>2.3</version>
141
            <configuration>
142
              <filesets>
143
                <fileset>
144
                  <directory>${basedir}/lib</directory>
145
                  <includes>
146
                    <include>*</include>
147
                  </includes>
148
                  <followSymlinks>false</followSymlinks>
149
                </fileset>
150
              </filesets>
151
            </configuration>
152
          </plugin>
153
        </plugins>
154
      </build>
155
    </profile>
156 127
    <profile>
157 128
      <id>copyAllJars</id>
158 129
      <build>

Also available in: Unified diff