`

Build and deploy workbench

 
阅读更多

To build Carrot2 Document Clustering Workbench from source code:

  1. Download Eclipse Target Platform from http://download.carrot2.org/eclipse and extract to some local folder.

  2. Copy local.properties.example from Carrot2 checkout folder tolocal.properties in the same folder. In local.properties edit thetarget.platform property to point to the Eclipse Target Platform you have downloaded.

    Important

    The folder pointed to by target.platform must have the eclipse/ folder inside.

    You may also change the configs property to match the platform you want to build Carrot2 Document Clustering Workbench for or rely on auto-detection.

  3. Run:

    ant workbench

    to build Carrot2 Document Clustering Workbench binaries.

  4. Go to the tmp/ workbench/ tmp/ carrot2-workbench folder in the Carrot2 checkout dir and run Carrot2 Document Clustering Workbench.

 

we can run ant jar successfully. but if we want to run ant workbench, we should modify 

1.

workbench/org.carrot2.workbench.core.feature/feature.xml

to add our custom chinese tokenizer related  jcseg jars

   <plugin
         id="org.lionsoul.jcseg"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

 

 2

workbench/org.carrot2.workbench.feature/carrot2.Workbench.launch

 

<stringAttribute key="selected_workspace_plugins" value="org.lionsoul.jcseg@default:default,com.carrotsearch.hppc@default:default,

 

3
#ant eclipse
etc/maven/poms/pom.xml
<org.lionsoul.jcseg.version>1.9.6</org.lionsoul.jcseg.version>


    <dependency>
      <groupId>org.lionsoul.jcseg</groupId>
      <artifactId>jcseg-core</artifactId>
      <version>${org.lionsoul.jcseg.version}</version>
    </dependency>
 

4

core/carrot2-util-text/META-INF/MANIFEST.MF

 

Bundle-SymbolicName: org.carrot2.text
Bundle-Version: 0.0.0.QUALIFIER
Require-Bundle:
 org.carrot2.core;bundle-version="0.0.0";visibility:=reexport,
 org.carrot2.util.matrix;bundle-version="0.0.0";visibility:=reexport,
 org.apache.lucene.v2;bundle-version="2.9.0";visibility:=reexport,
 org.lionsoul;bundle-version="1.9.6";visibility:=reexport,
 morfologik;bundle-version="1.1.2";resolution:=optional;visibility:=reexport,
 com.carrotsearch.hppc;bundle-version="0.3.0";visibility:=reexport

 

5
lib/org.lionsoul.jcseg/META-INF/MANIFEST.MF
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Jcseg Tokenizer
Bundle-SymbolicName: org.lionsoul.jcseg
Bundle-Version: 1.9.6
Bundle-ClassPath: jcseg-core-1.9.6.jar
Bundle-Vendor: jcseg Inc.
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
 
#ant workbench
Successfully!
#cd tmp/workbench/build/tmp/carrot2-workbench-3.11.0-SNAPSHOT
#./carrot2-workbench
Error:
org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)
solution: sudo apt-get install libwebkitgtk-1.0-0
 -----
But the custom tokenizer can't work. 
#jar tf  carrot2/tmp/workbench/build/tmp/carrot2-workbench-3.11.0-SNAPSHOT/plugins/org.lionsoul.jcseg_1.9.6.jar
Reason: there is a whitespace after
jcseg.LICENSE,\ 
solution: lib/org.lionsoul.jcseg/build.properties
bin.includes = META-INF/,\
               jcseg.LICENSE,\
               jcseg-core-1.9.6.jar
  
 
 
META-INF/
META-INF/MANIFEST.MF
jcseg.LICEN
there is no jcseg-core-1.9.6.jar in this plugin

 

#ant workbench

 

an error occurs

 

[java] [java] BUILD FAILED [java] /home/zhaohj/soft/eclipse/plugins/org.eclipse.pde.build_3.8.100.v20130514-1028/ scripts/productBuild/productBuild.xml:35: The following error occurred while executing this line: [java] /home/zhaohj/soft/eclipse/plugins/ org.eclipse.pde.build_3.8.100.v20130514-1028/scripts/productBuild/ productBuild.xml:69: org.eclipse.core.runtime.CoreException: x86_64 is not a valid configuration. [java] BUILD FAILED [java] /home/zhaohj/soft/eclipse/plugins/org.eclipse.pde.build_3.8.100.v20130514-1028/scripts/productBuild/productBuild.xml:35: The following error occurred while executing this line: [java] /home/zhaohj/soft/eclipse/plugins/org.eclipse.pde.build_3.8.100. v20130514-1028/scripts/productBuild/productBuild.xml:69: Unable to find element : /home/zhaohj/hadoop/src/carrot2/tmp/workbench/build/features/org.carrot2.workbench.feature/Workbench.product.

 

[eclipse.generateFeature] Incorrect directory entry: /home/zhaohj/hadoop/src/carrot2/.tools/rcp/3.7.1/eclipse.

----

cd carrot2/workbench/org.carrot2.workbench.target

README

Target platform definition. Download matching target's binary bundle from:

http://download.carrot2.org/eclipse

and unpack it to this folder.

 org.carrot2.workbench.eclipse-3.6.2.target

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.5"?>

<target name="org.carrot2.workbench.eclipse-3.6.2">
<locations>
<location path="${workspace_loc:org.carrot2.workbench.target}/3.6.2/eclipse" type="Directory"/>
</locations>
</target>

 

 

 

 http://download.carrot2.org/eclipse/

 

 lexicon put in dir :

/carrot2/tmp/workbench/build/tmp/carrot2-workbench-3.10.0-SNAPSHOT/configuration/org.eclipse.osgi/bundles/85/1/.cp

 

 

 

 

References

http://issues.carrot2.org/browse/CARROT-272

http://doc.carrot2.org/#section.workbench

分享到:
评论

相关推荐

    SAP HANA Developer Guide For SAP HANA Web Workbench

    and deploy applications that run in the SAP HANA XS classic model run-time environment using the tools provided with the browser-based SAP HANA Web-based Workbench. It also describes the technical ...

    SAP PO/PI教程 Process Orchestration The Comprehensive Guide

    10.5 Build and Deploy Your Process 10.5.1 Steps for Building a Process 10.5.2 Steps for Deploying a Process 10.6 Advanced Mapping 10.6.1 Mappings 10.6.2 Options in Mapping Assignment 10.6.3 ...

    ndslabs-deploy-tools:NDS实验室的部署工具

    docker build -t ndslabs/deploy-tools . 运行Docker映像 docker run -it -v /home/core/private:/root/SAVED_AND_SENSITIVE_VOLUME ndslabs/deploy-tools bash 注意:您应该记住将一些卷映射到包含*-openrc.sh文件...

    WDA学习笔记二.docx

    查看状态,可以看到自己 build 是否成功。 六、Deploy Deploy 是创建 Web Dynpro 程序的第四步。因为不是本地开发的,所以需要 deploy 到服务器。查看状态,习惯啦,终于完成了。 七、运行结果 最后,运行我们的...

    eclipse培训.rar

    9. **运行与部署(Run and Deploy)**:Eclipse支持本地和远程服务器的运行与部署,包括Tomcat、Jetty等Web服务器,以及Android模拟器或设备的部署。 10. **PDE(Plugin Development Environment)**:对于希望扩展...

    javatomcat源码-diabetes-registry:该糖尿病注册库源代码可用于构建用于保存和跟踪糖尿病患者健康信息的系统

    deploy application E - notes A部分-要求 a)从以下位置下载并安装MySQL Community Server 5.7和Workbench b)从以下位置下载并安装JDK 8 c)从以下位置下载并安装Apache Tomcat 7 d)从以下位置下载并安装NetBeans...

    Golang开源O2O实现Go2o.zip

    Deploy 1.Complied git clone https://github.com/atnet/go2o.git /home/usr/go/src/go2o export GOPATH=$GOPATH:/home/usr/go/ cd /home/usr/go go build server.go 2.Running Service Usage of ./...

    myeclipse导入eclipse

    完成上述所有步骤后,执行一次“Clean and Build”操作来确保所有更改生效。这一步骤对于解决可能的构建错误非常重要。 #### 注意事项 - **项目兼容性**:确保在导入前,项目的配置和依赖项都与目标 Eclipse 版本...

    Eclipse导入Myeclipse web项目运行

    &lt;nature&gt;org.eclipse.jem.workbench.JavaEMFNature ``` 4. **刷新项目**:通过右键点击项目并选择“Refresh”来更新项目配置。 5. **设置项目属性**:在项目上右键,选择“Properties”,然后进入“Project ...

    stuts框架实验一

    6. **配置Tomcat服务器**:在MyEclipse中配置Tomcat服务器,选择Window -&gt; Preferences -&gt; MyEclipse Enterprise Workbench -&gt; Servers -&gt; Tomcat -&gt; Tomcat 6.x,并启用Tomcat 6.x。然后选择Tomcat根目录,并完成...

    在Eclipse中使用JBoss数据库连接池技术

    这可以通过右键点击项目,选择"Build Path" -&gt; "Configure Build Path" -&gt; "Libraries" -&gt; "Add External JARs"来完成。 配置MySQL数据库是另一个关键步骤。你需要在MySQL中创建一个名为"test"的数据库,并且创建一...

Global site tag (gtag.js) - Google Analytics