Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

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)

regerb29db4640cba
diff --git a/pom.xml b/pom.xml
index 969da8d1c..6770b091e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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>