Revision 40769 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.projection.app/org.gvsig.projection.app.cresques/pom.xml

View differences:

pom.xml
122 122
  <properties>
123 123
      <gvsig.package.info.codealias>org.gvsig.projection.app.mainplugin</gvsig.package.info.codealias>
124 124
	  <gvsig.package.info.official>true</gvsig.package.info.official>
125
	  <gvsig.package.info.dependencies>conflict: org.gvsig.projection.app.proj4j -ge 1</gvsig.package.info.dependencies>
125
	  <gvsig.package.info.dependencies>conflict: org.gvsig.projection.app.proj4j -ge 1, conflict: org.gvsig.projection.app.jcrs -ge 1</gvsig.package.info.dependencies>
126
	  <gvsig.install.plugin>false</gvsig.install.plugin>
126 127
  </properties>
127 128

  
128
  <profiles>
129
      <profile>
130
        <id>gvsig-plugin</id>
131
        <activation>
132
          <file>
133
            <exists>buildNumber.properties</exists>
134
          </file>
135
        </activation>
136
        <build>
137
          <plugins>
138

  
139
            <plugin>
140
                <artifactId>maven-assembly-plugin</artifactId>
141
                <executions>
142
                  <execution>
143
                    <id>gvsig-plugin-package</id>
144
                    <phase>package</phase>
145
                    <goals>
146
                        <goal>single</goal>
147
                    </goals>
148
                  </execution>
149
                </executions>
150
            </plugin>
151

  
152
            <plugin>
153
              <artifactId>maven-clean-plugin</artifactId>
154
              <configuration>
155
                <skip>false</skip>
156
                <failOnError>true</failOnError>
157
                <filesets>
158
                  <fileset>
159
                    <directory>${gvsig.product.folder.path}/gvSIG/extensiones/${project.artifactId}</directory>
160
                  </fileset>
161
                </filesets>
162
              </configuration>
163
              <executions>
164
                <execution>
165
                  <id>default-clean</id>
166
                  <phase>clean</phase>
167
                </execution>
168
              </executions>
169
            </plugin>
170

  
171

  
172
            <plugin>
173
              <groupId>org.codehaus.gmaven</groupId>
174
              <artifactId>gmaven-plugin</artifactId>
175
              <executions>
176

  
177
                <execution>
178
                  <id>increase-build-number</id>
179
                  <phase>process-sources</phase>
180
                  <goals>
181
                    <goal>execute</goal>
182
                  </goals>
183
                </execution>
184

  
185
                <execution>
186
                  <id>build-package-info</id>
187
                  <phase>prepare-package</phase>
188
                  <goals>
189
                    <goal>execute</goal>
190
                  </goals>
191
                </execution>
192

  
193
                <execution>
194
                  <id>build-package-index</id>
195
                  <phase>package</phase>
196
                  <goals>
197
                    <goal>execute</goal>
198
                  </goals>
199
                </execution>
200

  
201
                <execution>
202
                  <id>install-plugin</id>
203
                  <phase>install</phase>
204
                  <goals>
205
                    <goal>execute</goal>
206
                  </goals>
207
                  <configuration>
208
                    <source><![CDATA[
209
                      //
210
                      // Don't install the gvsig plugin by default in the product/gvSIG/extensiones,
211
                      // only install the package in the product/install folder.
212
                      //
213
                      ant = new AntBuilder()
214
                      pkgname = "gvSIG-desktop-" + 
215
                        project.properties["gvsig.package.info.gvSIGVersion"] + "-" + 
216
                        project.artifactId + "-" + 
217
                        project.properties["gvsig.package.info.version"] + "-" + 
218
                        project.properties["buildNumber"] + "-" + 
219
                        project.properties["gvsig.package.info.state"] + "-" + 
220
                        project.properties["gvsig.package.info.operatingSystem"] + "-" + 
221
                        project.properties["gvsig.package.info.architecture"] + "-" + 
222
                        project.properties["gvsig.package.info.javaVM"]
223
                        
224
                      source = project.basedir.getAbsolutePath() + "/target/" + pkgname + ".gvspkg.zip"
225
                      target = new File(project.properties["gvsig.product.folder.path"] + 
226
                        "/install/" + 
227
                        project.artifactId + "/" +
228
                        pkgname + ".gvspkg")
229
                      target.getParentFile().mkdirs()
230

  
231
                      log.info("Copy plugin package from " + source + " to " + target)
232
                      ant.copy(file:source, tofile:target.getAbsolutePath())
233

  
234
                      source  = project.basedir.getAbsolutePath() + "/target/" + pkgname + ".gvspki"
235
                      target = project.properties["gvsig.product.folder.path"] + 
236
                        "/install/" + 
237
                        project.artifactId + "/" +
238
                        pkgname + ".gvspki"
239
                      log.info("Copy plugin package index from " + source + " to " + target)
240
                      ant.copy(file:source, tofile:target)
241

  
242
                    ]]></source>
243
                  </configuration>
244
                </execution>
245

  
246
              </executions>
247
            </plugin>
248

  
249
          </plugins>
250
        </build>
251
      </profile>
252

  
253
  </profiles>
254

  
255 129
</project>
256 130

  

Also available in: Unified diff