You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2011/03/11 17:31:14 UTC
svn commit: r1080646 - in /lucene/dev/branches/branch_3x: dev-tools/maven/
dev-tools/maven/solr/contrib/clustering/ solr/ solr/contrib/clustering/lib/
Author: sarowe
Date: Fri Mar 11 16:31:13 2011
New Revision: 1080646
URL: http://svn.apache.org/viewvc?rev=1080646&view=rev
Log:
LUCENE-2957: Renamed carrot2-core to org.apache.solr:solr-carrot2-core:<solr-version>; enabled maven filtering of solr-carrot2-core pom to substitute the project version in the POM for local installation through the 'bootstrap' profile; included solr-carrot2-core jar in generate-maven-artifacts
Added:
lucene/dev/branches/branch_3x/solr/contrib/clustering/lib/solr-carrot2-core-pom.xml.template (contents, props changed)
- copied, changed from r1080579, lucene/dev/branches/branch_3x/solr/contrib/clustering/lib/carrot2-core-3.4.2.pom
Removed:
lucene/dev/branches/branch_3x/solr/contrib/clustering/lib/carrot2-core-3.4.2.pom
Modified:
lucene/dev/branches/branch_3x/dev-tools/maven/pom.xml.template
lucene/dev/branches/branch_3x/dev-tools/maven/solr/contrib/clustering/pom.xml.template
lucene/dev/branches/branch_3x/solr/build.xml
lucene/dev/branches/branch_3x/solr/common-build.xml
Modified: lucene/dev/branches/branch_3x/dev-tools/maven/pom.xml.template
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/dev-tools/maven/pom.xml.template?rev=1080646&r1=1080645&r2=1080646&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/dev-tools/maven/pom.xml.template (original)
+++ lucene/dev/branches/branch_3x/dev-tools/maven/pom.xml.template Fri Mar 11 16:31:13 2011
@@ -297,9 +297,9 @@
<version>3.3.1</version>
</dependency>
<dependency>
- <groupId>org.carrot2</groupId>
- <artifactId>carrot2-core</artifactId>
- <version>3.4.2</version>
+ <groupId>org.apache.solr</groupId>
+ <artifactId>solr-carrot2-core</artifactId>
+ <version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.woodstox</groupId>
@@ -374,7 +374,7 @@
</dependencies>
</dependencyManagement>
<build>
- <directory>lucene/build/lucene-parent</directory>
+ <directory>lucene/build/lucene-solr-grandparent</directory>
<pluginManagement>
<plugins>
<plugin>
@@ -591,6 +591,33 @@
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>filter-carrot2-core-pom</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <resources>
+ <resource> <!-- Filter carrot2-core POM, for local install -->
+ <directory>solr/contrib/clustering/lib</directory>
+ <includes>
+ <include>*pom.xml.template</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ <configuration>
+ <outputDirectory>${project.build.directory}</outputDirectory>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
@@ -701,18 +728,16 @@
<!-- use the org.carrot2:carrot2-core .jar compiled with -->
<!-- Java5 in solr/contrib/clustering/lib/ - the .jar in -->
<!-- the central Maven repository was compiled with Java6. -->
+ <!-- The version in the carrot2-core POM file is filtered -->
+ <!-- so that the version is the same as this project's. -->
<id>install-java5-carrot2-core</id>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
- <groupId>org.carrot2</groupId>
- <artifactId>carrot2-core</artifactId>
- <version>3.4.2</version>
- <packaging>jar</packaging>
<file>solr/contrib/clustering/lib/carrot2-core-3.4.2.jar</file>
- <pomFile>solr/contrib/clustering/lib/carrot2-core-3.4.2.pom</pomFile>
+ <pomFile>lucene/build/lucene-solr-grandparent/solr-carrot2-core-pom.xml.template</pomFile>
</configuration>
</execution>
<execution>
Modified: lucene/dev/branches/branch_3x/dev-tools/maven/solr/contrib/clustering/pom.xml.template
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/dev-tools/maven/solr/contrib/clustering/pom.xml.template?rev=1080646&r1=1080645&r2=1080646&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/dev-tools/maven/solr/contrib/clustering/pom.xml.template (original)
+++ lucene/dev/branches/branch_3x/dev-tools/maven/solr/contrib/clustering/pom.xml.template Fri Mar 11 16:31:13 2011
@@ -72,8 +72,8 @@
<scope>provided</scope>
</dependency>
<dependency>
- <groupId>org.carrot2</groupId>
- <artifactId>carrot2-core</artifactId>
+ <groupId>org.apache.solr</groupId>
+ <artifactId>solr-carrot2-core</artifactId>
<exclusions>
<exclusion>
<groupId>org.apache.lucene</groupId>
Modified: lucene/dev/branches/branch_3x/solr/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/build.xml?rev=1080646&r1=1080645&r2=1080646&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/build.xml (original)
+++ lucene/dev/branches/branch_3x/solr/build.xml Fri Mar 11 16:31:13 2011
@@ -1010,6 +1010,9 @@
<m2-deploy-with-pom-template pom.xml="contrib/uima/lib/solr-uima-core-pom.xml.template"
jar.file="contrib/uima/lib/uima-core.jar" />
+ <m2-deploy-with-pom-template pom.xml="contrib/clustering/lib/solr-carrot2-core-pom.xml.template"
+ jar.file="contrib/clustering/lib/carrot2-core-3.4.2.jar" />
+
<!-- ========== SOLR ARTIFACTS ========== -->
<m2-deploy pom.xml="contrib/dataimporthandler/src/pom.xml"
Modified: lucene/dev/branches/branch_3x/solr/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/common-build.xml?rev=1080646&r1=1080645&r2=1080646&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/common-build.xml (original)
+++ lucene/dev/branches/branch_3x/solr/common-build.xml Fri Mar 11 16:31:13 2011
@@ -398,6 +398,9 @@
<filterset begintoken="@" endtoken="@">
<filter token="version" value="${version}"/>
</filterset>
+ <filterset begintoken="$${" endtoken="}">
+ <filter token="project.version" value="${version}"/>
+ </filterset>
</copy>
<artifact:install-provider artifactId="wagon-ssh" version="1.0-beta-7"/>
<artifact:pom id="maven.project" file="${maven.build.dir}/@{pom.xml}" />
Copied: lucene/dev/branches/branch_3x/solr/contrib/clustering/lib/solr-carrot2-core-pom.xml.template (from r1080579, lucene/dev/branches/branch_3x/solr/contrib/clustering/lib/carrot2-core-3.4.2.pom)
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/contrib/clustering/lib/solr-carrot2-core-pom.xml.template?p2=lucene/dev/branches/branch_3x/solr/contrib/clustering/lib/solr-carrot2-core-pom.xml.template&p1=lucene/dev/branches/branch_3x/solr/contrib/clustering/lib/carrot2-core-3.4.2.pom&r1=1080579&r2=1080646&rev=1080646&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/contrib/clustering/lib/carrot2-core-3.4.2.pom (original)
+++ lucene/dev/branches/branch_3x/solr/contrib/clustering/lib/solr-carrot2-core-pom.xml.template Fri Mar 11 16:31:13 2011
@@ -1,16 +1,36 @@
-<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">
+<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">
+ <!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ -->
<modelVersion>4.0.0</modelVersion>
-
- <groupId>org.carrot2</groupId>
- <artifactId>carrot2-core</artifactId>
- <version>3.4.2</version>
- <name>Carrot2</name>
+ <groupId>org.apache.solr</groupId>
+ <artifactId>solr-carrot2-core</artifactId>
+ <version>${project.version}</version>
+ <packaging>jar</packaging>
+ <name>Solr Specific Carrot2</name>
<description>
Carrot2 search results clustering framework core, document
sources and clustering algorithms.
- </description>
- <packaging>jar</packaging>
+ Compiled with Java 1.5 from carrot2-core v3.4.2 sources.
+ </description>
<licenses>
<license>
<name>BSD license</name>