This page contains all information related to the Glassfish v3 workspace structure, and the Maven targets needed to support that structure. It also contains information on how non-java file types will be processed. glassfish v3 Workspace Under svn Below is the v3 workspace structure. Check back for updates.
- v3 trunk
- admin
- admin-core
- cli
- config-api
- monitor
- util
- api
- activation
- deployment-api
- ejb-api
- mail
- persistence-api
- transaction-api
- build
- legal
- maven-glassfish-plugin
- common
- annotation-framework
- common-util
- dol
- glassfish-api
- core
- distributions
- external
- gem
- nucleus
- nucleus-base
- pe
- pe-base
- extras
- web
- appserv-webtier
- pwc-commons
- war-util
- web-connector
Current glassfish Workspace Under cvs This is the current organization of the glassfish workspace:
- glassfish
- activation
- admin
- admin-cli
- admin-cli-ee
- admin-core
- admin-core-ee
- admin-ee
- dmin-gui
- admin-gui-ee
- annotation-framework
- appserv-addons
- appserv-api
- appserv-commons
- appserv-commons-ee
- appserv-core
- appserv-core-ee
- appserv-docs
- appserv-docs-ee
- appserv-http-engine
- appserv-jstl
- appserv-native
- appserv-native-ee
- appserv-persistence
- appserv-tests
- appserv-webtier
- avk
- bootstrap
- cmp
- common-util
- config-api
- config-api-tests
- connector-api
- container-auth
- deployment-api
- distributions
- ejb-api
- entity-persistence
- entity-persistence-tests
- external
- glassfish
- jacc-api
- jacc-provider
- javaee-api
- jaxr-api
- jaxr-ri
- jdbcra
- jmac-api
- jmac-provider
- jms-api
- jmx-remote
- jsf-extensions
- jts
- legal
- mail
- management-api
- packager-ext
- persistence-api
- persistence-impl
- public
- pwc-commons
- repo
- sailfin-linkage
- servlet-api
- tools
- transaction-api
- update-center
- webtier-extensions
- web-util
- www
v3 Maven Directory Layout Requirements (Draft)
- The v3 directory structure should conform to Maven standard directory layout. Background info:
- At the top level files descriptive of the project: a pom.xml file (and any properties, maven.xml or build.xml if using Ant). In addition, there are textual documents meant for the user to be able to read immediately on receiving the source: README.txt, LICENSE.txt, etc.
- There are just two subdirectories of this structure: src and target. The only other directories that would be expected here are metadata like CVS or .svn, and any subprojects in a multiproject build (each of which would be laid out as above).
- The target directory is used to house all output of the build.
- The src directory contains all of the source material for building the project, its site and so on. It contains a subdirectory for each type: main for the main build artifact, test for the unit test code and resources, site and so on.
- Within artifact producing source directories (ie. main and test), there is one directory for the language java (under which the normal package hierarchy exists), and one for resources (the structure which is copied to the target classpath given the default resource definition).
- If there are other contributing sources to the artifact build, they would be under other subdirectories: for example src/main/antlr would contain Antlr grammar definition files.
Directory Layout Table
table-filter
Directory |
File Types |
module/LICENSE.txt |
License |
module/README.txt |
Readme |
module/pom.xml |
Maven pom file |
module/maven.xml |
Maven properties file |
module/build.xml |
Ant build file |
module/src/main/java |
Java Application/Library sources |
module/src/main/cpp |
c/cpp Application/Library sources 1 |
module/src/main/resources |
Application/Library resources that are added to the jar file's META-INF subdir (e.g. application.properties) |
module/src/main/filters |
Resource filter files that provide build-time property values |
module/src/main/assembly |
Assembly descriptors that describe assembly formats and dependencies (e.g., app.xml) |
module/src/main/config |
Configuration files. (e.g., application.xml describing services bundled into an app) |
module/src/main/webapp |
Web application sources |
module/src/main/webapp/WEB-INF/jsp |
JSP files |
module/src/main/webapp/css |
CSS files |
module/src/main/webapp/images |
Image files |
module/src/main/webapp/js |
Javascript files |
module/src/test/java |
Java Test sources |
module/src/test/cpp |
c/cpp Test sources 1 |
module/src/test/resources |
Test resources |
module/src/test/filters |
Test resource filter files |
module/src/site |
Site: Documentation + extra resources (css, image, etc) |
module/src/site/site.xml |
Site descriptor |
module/src/site/apt |
Almost Plan Text (APT). wiki-like format that allows you to write simple, structured documents. |
module/src/site/fml |
FML format is the FAQ format] |
module/src/site/xdoc |
XDoc format |
module/src/site/fr |
i18n'ed docs in fr locale |
module/target |
Houses all build output |
%% %% 1 - Additional file type not described by Maven standard directory layout.
- Non-java file types must be handled by Maven targets. These types include:
- .xml
- .html
- .c
- .properties
- .js
- .gif (+ other image file types)
- Multiple, hierarchical modules must be handled by Maven targets.
Task Plan (Draft)
- Review Maven standard directory layout.
- Review existing Maven projects for examples of how different file types are managed.
- Select a glassfish module on which to start. Current plan is to choose glassfish/activation.
- Modify directory structure in a workspace. Current plan is to use cvs GF_V3_PREWORK_BRANCH.
- Modify Maven targets to support new layout.
- Modify Maven targets to process non-java files.
- Review changes with stakeholders.
- Start QA test cycle
- Make edits as needed.
- Commit changes to target module.
- Run smoke tests on target module.
- Repeat cycle, if needed.
- Apply same pattern to all glassfish modules.
- Add pom.xml to glassfish directory
Task Breakdown (Draft)
- Determine modules that have non-java files
- activation
- admin
- admin-cli
- admin-core
- admin-core
- admin-ee
- admin-gui
- admin-gui/admin-jsf
- admin-gui-ee
- annotation-framework
- appserv-addons
- appserv-api
- appserv-commons
- appserv-core
- appserv-core-ee
- appserv-docs
- appserv-docs-ee
- appserv-http-engine
- html
- css
- js
- gif
- png
- jpg
- xml
- appserv-jstl
- appserv-native
- appserv-native-ee
- appserv-persistence
- appserv-webtier
- avk
- bootstrap
- cmp
- common-util
- connector-api
- deployment-api
- ejb-api
- jacc-api
- jacc-api-provider
- jaxr-api
- jaxr-ri
- jdbcra
- jmac-api
- jmx-remote
- jms-api
- jsf-extensions
- js
- html
- xml
- gif (+ other image file types)
- css
- jts
- mail
- management-api
- packager-ext
- persistence-api
- persistence-impl
- pwc-commons
- servlet-api
- tools
- transaction-api
- update-center
- webtier-extensions
Questions
- Are there any dependencies between html files located in each of the modules?
Feedback Please add feedback here:
|