https://github.com/making/mvc-1.0-blank
Blank project for MVC 1.0 (JSR-371)
https://github.com/making/mvc-1.0-blank
Last synced: about 1 year ago
JSON representation
Blank project for MVC 1.0 (JSR-371)
- Host: GitHub
- URL: https://github.com/making/mvc-1.0-blank
- Owner: making
- Created: 2015-04-15T15:33:56.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-01T18:55:25.000Z (over 10 years ago)
- Last Synced: 2025-01-11T04:26:12.128Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 179 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MVC 1.0 Blank
Maven archetype to create a maven project for MVC 1.0 (JSR-371)
[](https://travis-ci.org/making/mvc-1.0-blank)
## How to use
with Bash
mvn archetype:generate\
-DarchetypeGroupId=am.ik.archetype\
-DarchetypeArtifactId=mvc-1.0-blank-archetype\
-DarchetypeVersion=1.0.0-m02
with CommandPrompt (Windows)
mvn archetype:generate^
-DarchetypeGroupId=am.ik.archetype^
-DarchetypeArtifactId=mvc-1.0-blank-archetype^
-DarchetypeVersion=1.0.0-m02
### Example
#### Create a project
```
$ mvn archetype:generate -B\
-DarchetypeGroupId=am.ik.archetype\
-DarchetypeArtifactId=mvc-1.0-blank-archetype\
-DarchetypeVersion=1.0.0-m02\
-DgroupId=com.example\
-DartifactId=mvc-demo\
-Dversion=1.0.0-SNAPSHOT
```
#### Import into NetBeans
**Following procedures are for version 1.0.0-m01**
Open the project with NetBeans and run the application

Choose GlassFish 4.1

Access [http://localhost:8080/mvc-demo/app/hello](http://localhost:8080/mvc-demo/app/hello) (Context root is your artifactId).

This project uses **Facelets** as a view technology. Currently Facelets view requires `web.xml`.
You can remove `web.xml` if you use other view (JSP, Thymeleaf, Handlebars and so on).
See also [this article](http://www.coppermine.jp/docs/programming/2015/04/ozark-facelet.html).
## License
Licensed under the Apache License, Version 2.0.