哪些文件应导入到用于Web服务项目的子版本库中? [英] Which files should be imported in a subversion repository for a web services project?
问题描述
我的项目有以下文件/目录结构:
部署描述符
- 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中)的目录。
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屋!