update Maven pom - add release-profile

to create the release archive only if profile is activated (speeding up normal compilation)
- bind install of the 2 jar's not available in repository to validate phase (was clean)
  to automatically add these to local repository (with disadvantage it's done every time)
pull/40/head
reger 9 years ago
parent 04161912a5
commit b29db4640c

@ -121,27 +121,6 @@
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
<finalName>yacy_v${project.version}_${DSTAMP}_${releaseNr}</finalName>
<outputDirectory>RELEASE</outputDirectory>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- compile htroot --> <!-- compile htroot -->
<plugin> <plugin>
<artifactId>maven-antrun-plugin</artifactId> <artifactId>maven-antrun-plugin</artifactId>
@ -265,7 +244,7 @@
<execution> <execution>
<id>install-webcat-jar</id> <id>install-webcat-jar</id>
<phase>clean</phase> <phase>validate</phase>
<goals> <goals>
<goal>install-file</goal> <goal>install-file</goal>
</goals> </goals>
@ -281,7 +260,7 @@
<execution> <execution>
<id>install-J7Zip-jar</id> <id>install-J7Zip-jar</id>
<phase>clean</phase> <phase>validate</phase>
<goals> <goals>
<goal>install-file</goal> <goal>install-file</goal>
</goals> </goals>
@ -301,6 +280,35 @@
</build> </build>
<profiles> <profiles>
<profile>
<!-- profile to create a release archive -->
<id>release-profile</id>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
<finalName>yacy_v${project.version}_${DSTAMP}_${releaseNr}</finalName>
<outputDirectory>RELEASE</outputDirectory>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile> <profile>
<id>report</id> <id>report</id>
<build> <build>

Loading…
Cancel
Save