Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-2839: Maven configuration: added release packaging for non-mavenized dependencies jsonic and langdetect

Steven Rowe3c547fc36a4d
diff --git a/solr/contrib/langid/build.xml b/solr/contrib/langid/build.xml
index 661419ada79..642717769f9 100644
--- a/solr/contrib/langid/build.xml
+++ b/solr/contrib/langid/build.xml
@@ -31,4 +31,12 @@
<path refid="solr.base.classpath"/>
</path>
+ <dirname file="${ant.file.solr-langid}" property="solr-langid.dir"/>
+ <target name="dist-maven" depends="jar-core,javadocs,jar-src,contrib-build.dist-maven">
+ <m2-deploy-with-pom-template pom.xml="${solr-langid.dir}/lib/jsonic-pom.xml.template"
+ jar.file="${solr-langid.dir}/lib/jsonic-1.2.0.jar" />
+
+ <m2-deploy-with-pom-template pom.xml="${solr-langid.dir}/lib/langdetect-pom.xml.template"
+ jar.file="${solr-langid.dir}/lib/langdetect-r111.jar" />
+ </target>
</project>
diff --git a/solr/contrib/langid/lib/jsonic-pom.xml.template b/solr/contrib/langid/lib/jsonic-pom.xml.template
new file mode 100644
index 00000000000..284ff97a826
--- /dev/null
+++ b/solr/contrib/langid/lib/jsonic-pom.xml.template
@@ -0,0 +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">
+
+ <!--
+ 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.
+ -->
+
+ <parent>
+ <groupId>org.apache.solr</groupId>
+ <artifactId>solr-parent</artifactId>
+ <version>@version@</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.solr</groupId>
+ <artifactId>solr-jsonic</artifactId>
+ <name>Solr Specific JSONIC</name>
+ <version>@version@</version>
+ <description>Solr Specific JSONIC v1.2.0</description>
+ <packaging>jar</packaging>
+</project>
diff --git a/solr/contrib/langid/lib/langdetect-pom.xml.template b/solr/contrib/langid/lib/langdetect-pom.xml.template
new file mode 100644
index 00000000000..6a8e79aaa10
--- /dev/null
+++ b/solr/contrib/langid/lib/langdetect-pom.xml.template
@@ -0,0 +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">
+
+ <!--
+ 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.
+ -->
+
+ <parent>
+ <groupId>org.apache.solr</groupId>
+ <artifactId>solr-parent</artifactId>
+ <version>@version@</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.solr</groupId>
+ <artifactId>solr-langdetect</artifactId>
+ <name>Solr Specific langdetect</name>
+ <version>@version@</version>
+ <description>Solr Specific langdetect r111</description>
+ <packaging>jar</packaging>
+</project>