哪些文件应导入到用于Web服务项目的子版本库中? [英] Which files should be imported in a subversion repository for a web services project?

查看:140
本文介绍了哪些文件应导入到用于Web服务项目的子版本库中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse中使用Web服务自上而下的方法创建了一个Java项目(即创建一个WSDL文件并使用它来生成具有axis2的Skeleton Java类和Web服务)(因此,有很多自动生成的文件和axis2 jar库)。



我的项目有以下文件/目录结构:

 部署描述符
- build
- build.xml
- doc(即生成的javadoc)
- src
- com.package1
- com.package2
- 库
- Apache Tomcat 6.0(apache jar文件)
- Web应用程序库(axis2 jar文件)
- lib(包含外部jar文件)
- 资源
- WebContent
- axis2-web
- META-INF
- MANIFEST.MF
- WEB-INF
- classes
- conf
- lib
- 模块
- 服务
web.xml
- wsdl(包含WSDL文件)

我想将此项目导入远程主机上的一个subversion版本库。应该导入哪些文件,以确保任何人检查这个项目可以快速运行吗?据我所知,我们不会将jar,类文件导入到subversion存储库中。这里应该是最好的方法?我特别不确定所有的Web应用程序的axis2和tomcat库,以及像axis2-web,META-INF,WEB-INF(在WebContent中)的目录。

解决方案


  • 如果可能,请使用 Maven 常春藤 - 这些将处理依赖关系管理,所以你不需要提交jar

  • 不提交自动生成的文件

  • 避免提交IDE资源文件(但是您可能不太严格)


I created a Java Project in Eclipse using the Web services Top down approach (i.e. creating a WSDL file and using it to generate the Skeleton Java class and web services with axis2) (Hence, there are a lot of auto-generated files and axis2 jar libraries).

My Project has the following files/directory structure:

- Deployment Descriptor         
- build              
- build.xml                 
- doc (i.e. generated javadoc)         
- src     
  - com.package1
  - com.package2
  - Libraries
    - Apache Tomcat 6.0 (apache jar files)
    - Web App libraries (axis2 jar files)
- lib (containing external jar files)          
- resources     
- WebContent           
  - axis2-web           
  - META-INF    
    - MANIFEST.MF    
  - WEB-INF 
    - classes
    - conf
    - lib
    - modules
    - services
    web.xml
- wsdl (contains WSDL file)

I want to import this project into a subversion repository on a remote host. Which files should be imported in order to ensure anybody checking out this project can have it up and running quickly? As per my understanding, we DO NOT import jars, class files, into subversion repository. What should be the best approach here? I am especially unsure of all the web app axis2 and tomcat libraries, and directories like axis2-web, META-INF, WEB-INF (in WebContent).

解决方案

  • If possible use Maven or Ivy - these will handle the dependency management, so you don't need to commit jars
  • don't commit auto-generated files
  • avoid committing IDE resource files (but you can be less strict with this)

这篇关于哪些文件应导入到用于Web服务项目的子版本库中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆