build the eclipse project of tucany sdo

原创 2007年09月25日 09:32:00

1)Download the following:

    * JDK 5.0+ (J2SE 1.5.0+)
    * Apache Maven (2.0.4+)
    * Subversion (1.2+)

2)用svn取到 的代码

3)在环境变量 path中加入 maven,设置JAVA_HOME

4)在cmd中,转到 <sdo-source-root>/sdo目录,执行 mvn
  ( attention:保证网络是连通的)

5)在cmd中,转到 <sdo-source-root>/sdo/sdo-api目录,执行 mvn -Peclipse eclipse:eclipse

6)在cmd中,转到 <sdo-source-root>/sdo/impl目录,执行 mvn -Peclipse eclipse:eclipse

7)在cmd中,转到 <sdo-source-root>/sdo/tools目录,执行 mvn -Peclipse eclipse:eclipse


    * Start up eclipse
    * Switch to the Java perspective
    * Execute "File => Import ... => General => Existing project into workspace
    * Click "Browse ..." Navigate to the spec/sdo-api directory and click OK
    * Select the sdo-api project and click OK
    * After Eclipse has built the project you will see that there are compile errors. This is because Maven has created build dependencies for the project on the contents of your maven repository, but Eclipse doesn't yet know where that repository is. You must create and assign a value to the M2_REPO variable within eclipse to resolve these dependencies
          o Right click in the Package Explorer frame on the root of the newly created project and select Properties => Java Build Path
          o Click on the "Libraries" tab and select "Add Variable...", "Configure Variables ...", "New ..."
          o Set Name to M2_REPO and Click on "Folder..."
          o Navigate to the "repository" folder/directory (on Windows this is /Documents and Settings/<user>/.m2/repository, on Linux it is ~/.m2/repository) and click OK
          o Accept the request for doing a full rebuild
          o Cancel away from the "Configure Variables" dialog
          o Click "OK" on the Project Properties Window
          o When building is complete the project should now have no errors

Now repeat the same instructions for importing the sdo-impl and sdo-tools projects into the eclipse environment. You aklready have the M2_REPO variable defined now, so these projects should build OK.

At this point you have three separate projects each dependent on binary artifacts in your maven repository. Don't be tricked into thinking that
if you modify the sdo-impl project, that those changes will be picked up by the sdo-tools project. If you want this behaviour then follow these steps

    * In the package exlporer pane of the Java perspective, Right Click on Properties and select the libraries tab
    * Select the M2_REPO/commonj/sdo-api* library entry and click "remove"
    * Select the Projects tab and click "Add..."
    * Select the SDO API project and click OK
    * If you plan to work in the tools project
          o Select the "Order and Export" tab and select the sdo-api project and click OK (this means that the sdo-impl project will expose the interfaces of the sdo-api project, so that you don't have to import them into projects which depend on the sdo-impl project)
          o Repeat the above instructions, removing the sdo-api and sdo-impl library dependencies from the tools project, and adding a project dependency for the sdo-tools project on the sdo-impl project

Eclipse无法自动编译出class文件(Build Automatically的作用)

eclipse怎么把.java编译成.class,一般来说直接保存就可以了。       其实,保存了未必就可以自动生成.class文件,其中一个前提条件是你的Project->Build  Au...
  • yorkyork753
  • yorkyork753
  • 2015年03月31日 08:58
  • 2562

Eclipse 中java build path面板的功能梳理

简易版: Source标签页,指定本工程的源码目录和输出目录。 Projects标签页,指定本工程所依赖的其他工程。 Libraries标签页,指定本工程所需的jar包和class目录等。 Or...
  • zhouhuakang
  • zhouhuakang
  • 2016年02月26日 15:33
  • 2940

Eclipse 工程Clear与build的作用

Eclipse 工程Clear与build的作用 由于eclipse的编译是基于时间戳的判断机制的。 因此当你按build all的时候有些eclipse认为时间戳没有改变的类不会被编译。 因此...
  • u014299815
  • u014299815
  • 2015年05月24日 11:50
  • 3379


1右击项目,properties,builders 2windows,preference,javascript,validator,error/warnning,去掉√ 3windows...
  • Ideality_hunter
  • Ideality_hunter
  • 2016年05月28日 21:15
  • 1480

eclipse 运行Maven时报错总结

No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in t...
  • jiutianhe
  • jiutianhe
  • 2015年01月06日 10:41
  • 22666

android开发过程中 R文件消失 clean 和 build project都无效 已解决

Android 在开发中会自动生成一个 文件 ,这个文件是自动生成的,最好不要去改。不过有时候这个 java 文件会跟我们捉迷藏,在程序中 会出现经常报错现象。 1 ...
  • zyu67
  • zyu67
  • 2015年03月06日 17:45
  • 1560

Eclipse中Project的属性Deployment Assembly(支配程序集) 部署 组装 消失了

Eclipse中Project的属性Deployment Assembly(支配程序集) 部署 组装 消失了
  • master_yao
  • master_yao
  • 2017年01月05日 14:56
  • 1998

eclipse中project Explorer下项目字体修改

使用mac时项目名字很小,眼都看发炎了,也没找到调整的方法,实在受不了啦,在网上终于找到了办法,然后自己又摸索着弄个了下,很好用 这是没调整之前的项目字体: 然后使用下面代码添加到ecli...
  • just_you_java
  • just_you_java
  • 2016年03月11日 15:07
  • 2800

eclipse中的.project 和 .classpath文件的具体作用 project 是项目文件,项目的结构都在其中定义,比如lib的位置,src...
  • Ideality_hunter
  • Ideality_hunter
  • 2016年12月13日 13:02
  • 1475

eclipse没有(添加)”Dynamic Web Project”选项的方法

转载出处:eclipse没有(添加)"Dynamic Web Project"选项的方法 第一种方法: 你安装的是专门开发java项目的,而Dynamic Web Project  属于J2EE...
  • u011070171
  • u011070171
  • 2015年11月24日 21:24
  • 6962
您举报文章:build the eclipse project of tucany sdo