3

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).

bluish
  • 26,356
  • 27
  • 122
  • 180
Epitaph
  • 3,128
  • 10
  • 34
  • 43

1 Answers1

3
  • 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)
Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
  • +1 for avoid committing generated files because if somebody decides to customize 1 file.... god help you/him/everybody in the project, then! – Leni Kirilov Jul 09 '10 at 23:51
  • 1
    There are cases where you *should* commit auto-generated files; e.g. when using EMF ... – Stephen C Jul 10 '10 at 04:22
  • @StephenC - yes, that's why I was not so strict on that point - sometimes it's 'allowed' :) – Bozho Jul 10 '10 at 05:06
  • What about the part of the question "I am especially unsure of all the web app axis2 and tomcat libraries, and directories like axis2-web, META-INF, WEB-INF (in WebContent)." – user2518618 Jul 19 '14 at 14:11