Project

General

Profile

« Previous | Next » 

Revision e48f844f

Added by Cherian Mathew over 9 years ago

added profile for uploading plugins to update site

View differences:

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
  <modelVersion>4.0.0</modelVersion>
4 5
  <prerequisites>
5 6
    <maven>3.0</maven>
......
19 20
    <!-- TODO can we use project.version ????? -->
20 21
    <tycho.version>0.14.0</tycho.version>
21 22
    <taxeditor.version>3.3.8-SNAPSHOT</taxeditor.version>
23
    <update.dir>snapshot</update.dir>
22 24
  </properties>
23 25
  <modules>
24 26
    <module>eu.etaxonomy.taxeditor.cdmlib</module>
......
27 29
    <module>eu.etaxonomy.taxeditor.editor</module>
28 30
    <module>eu.etaxonomy.taxeditor.bulkeditor</module>
29 31
    <module>eu.etaxonomy.taxeditor.printpublisher</module>
30
    <!--module>eu.etaxonomy.taxeditor.annotatedlineeditor</module-->
31 32
    <module>eu.etaxonomy.taxeditor.help</module>
32 33
    <module>eu.etaxonomy.taxeditor.application</module>
33 34
    <module>eu.etaxonomy.taxeditor.feature.platform</module>
34 35
    <module>eu.etaxonomy.taxeditor.feature</module>
35 36
    <module>eu.etaxonomy.taxeditor</module>
37

  
36 38
  </modules>
37 39
  <scm>
38 40
    <connection>scm:svn:http://dev.e-taxonomy.eu/svn/trunk/taxeditor/</connection>
......
76 78
        <role>Java Developer</role>
77 79
        <role>Architect</role>
78 80
      </roles>
79
      <url/>
81
      <url />
80 82
    </developer>
81 83
    <developer>
82 84
      <!-- your SVN account id please! -->
......
94 96
        <role>Java Developer</role>
95 97
        <role>Architect</role>
96 98
      </roles>
97
      <url/>
99
      <url />
98 100
    </developer>
99 101
  </developers>
100 102
  <issueManagement>
......
129 131
        </repository>
130 132
      </repositories>
131 133
    </profile>
134
    <profile>
135
      <!-- Upload the repo to the server -->
136
      <id>uploadRepo</id>
137
      <build>
138
        <plugins>
139
          <plugin>
140
            <groupId>org.codehaus.mojo</groupId>
141
            <artifactId>wagon-maven-plugin</artifactId>
142
            <version>1.0-beta-3</version>
143
            <!-- Problems with the wagon-maven-plugin have been encounterd 
144
              on Windows, it should work properly on linux though. -->
145
            <executions>
146
              <execution>
147
                <phase>package</phase>
148
                <goals>
149
                  <goal>upload</goal>
150
                </goals>
151
              </execution>
152
            </executions>
153
            <configuration>
154
              <fromDir>eu.etaxonomy.taxeditor/target/repository</fromDir>
155
              <url>scpexe://wp5.e-taxonomy.eu/var/www/download/taxeditor/update/${update.dir}</url>
156
              <includes>binary/*,content.jar,artifacts.jar,**/eu.etaxonomy.*.jar</includes>
157
              <!-- Comment out the above and uncomment the below to upload 
158
                all jars -->
159
              <!-- <includes>**/*</includes> -->
160
              <serverId>wp5.e-taxonomy.eu</serverId>
161
            </configuration>
162
          </plugin>
163
        </plugins>
164
      </build>
165
    </profile>
132 166
  </profiles>
133 167
  <repositories>
134 168
    <!-- the cdm internal repository -->
......
168 202
          <strictVersions>true</strictVersions>
169 203
        </configuration>
170 204
      </plugin>
205
      <plugin>
206
        <groupId>org.eclipse.tycho</groupId>
207
        <artifactId>tycho-p2-repository-plugin</artifactId>
208
        <version>${tycho.version}</version>
209
        <configuration>
210
          <includeAllDependencies>true</includeAllDependencies>
211
        </configuration>
212
      </plugin>
171 213
      <plugin>
172 214
        <groupId>org.eclipse.tycho</groupId>
173 215
        <artifactId>target-platform-configuration</artifactId>
......
301 343
        <configuration>
302 344
          <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
303 345
          <autoVersionSubmodules>false</autoVersionSubmodules>
304
          <!--preparationGoals>clean verify install</preparationGoals-->
305
          <!--goals>deploy</goals-->
346
          <!--preparationGoals>clean verify install</preparationGoals -->
347
          <!--goals>deploy</goals -->
306 348
          <!-- skipping site-deploy by explicitly configuring the goal here -->
307 349
          <tagBase>http://dev.e-taxonomy.eu/svn/tags/taxeditor</tagBase>
308 350
        </configuration>
309 351
      </plugin>
310
      <plugin>
311
        <groupId>org.codehaus.mojo</groupId>
312
        <artifactId>wagon-maven-plugin</artifactId>
313
        <version>1.0-beta-3</version>
314
        <!--
315
			      	Problems with the wagon-maven-plugin have been encounterd on Windows,
316
					it should work properly on linux though.
317
				 -->
318
        <executions>
319
          <execution>
320
            <phase>deploy</phase>
321
            <goals>
322
              <goal>upload</goal>
323
            </goals>
324
          </execution>
325
        </executions>
326
        <configuration>
327
          <fromDir>eu.etaxonomy.taxeditor/target/products</fromDir>
328
          <includes>*.zip</includes>
329
          <url>scpexe://wp5.e-taxonomy.eu/var/www/download/taxeditor/${project.version}</url>
330
          <serverId>wp5.e-taxonomy.eu</serverId>
331
        </configuration>
332
      </plugin>
352

  
333 353
    </plugins>
334 354
    <extensions>
335 355
      <extension>
......
386 406
        </configuration>
387 407
      </plugin>
388 408
      <plugin>
389
        <!-- this will generate an indexed and cross-referenced HTML version of your source code -->
409
        <!-- this will generate an indexed and cross-referenced HTML version 
410
          of your source code -->
390 411
        <groupId>org.apache.maven.plugins</groupId>
391 412
        <artifactId>maven-jxr-plugin</artifactId>
392 413
        <version>2.2</version>
......
410 431
      </plugin>
411 432
    </plugins>
412 433
  </reporting>
413
  <!--	 DISTRIBUTION MANAGEMENT -->
434
  <!-- DISTRIBUTION MANAGEMENT -->
414 435
  <distributionManagement>
415 436
    <site>
416 437
      <id>wp5.e-taxonomy.eu</id>
......
424 445
      <url>scpexe://wp5.e-taxonomy.eu/var/www/wp5.e-taxonomy.eu/mavenrepo/</url>
425 446
    </repository>
426 447
  </distributionManagement>
448

  
427 449
</project>

Also available in: Unified diff