Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a name for a Java Webapp's war that includes the source code? We will be using a webserver that accepts Java Web Projects with source code) uploaded into the docroot folder, so docroot/ would be the place to upload a webapp that handles This way the compiled binaries and source code are together (and down the road, even the compiled code might not be there at all, but compiled on the first runtime).

What are the most common file types for a webapp with source? If it means lining up with a standard, I would be glad to use a similar extension name and zip directory structure. If not, I will probably use something like I would just use .zip, but then the webserver would not know if it should serve out the zip or only use it as a webapp.

share|improve this question
up vote 1 down vote accepted

Perhaps the Maven standard can help.

For JAR files containing source the naming convention is example-1.0.0-sources.jar. Equally a WAR file could follow as example-1.0.0-sources.war.

I imagine the source itself would be in WEB-INF/src.

You then deploy as normal since the artifact is already zipped.

share|improve this answer
Sounds like a starting place. Thanks. – George Bailey Apr 16 '11 at 23:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.