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

@ -120,27 +120,6 @@
</filesets>
</configuration>
</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 -->
<plugin>
@ -265,7 +244,7 @@
<execution>
<id>install-webcat-jar</id>
<phase>clean</phase>
<phase>validate</phase>
<goals>
<goal>install-file</goal>
</goals>
@ -281,7 +260,7 @@
<execution>
<id>install-J7Zip-jar</id>
<phase>clean</phase>
<phase>validate</phase>
<goals>
<goal>install-file</goal>
</goals>
@ -301,6 +280,35 @@
</build>
<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>
<id>report</id>
<build>

Loading…
Cancel
Save