|
SimpleLife_Product
SimpleLife.Product项目首页
SimpleLife.Product项目简介实现简单的商品管理(增/删/改/查)功能. 使用Java多项技术, 包含Hibernate3.2/Spring2.0/Struts2.0等. 通过Maven自动构建, 简化开发和部署等. 下载和构建准备工作
svn --version mvn -version 下载源代码打开命令行, 进入某个目录(源代码将下载到该目录下) 输入如下命令: svn checkout http://simplelife.googlecode.com/svn/trunk/simplelife.product 运行结束后, 在该目录下, 会有一个simplelife.product目录, 源代码在simplelife.product/src目录下 编译和运行前提条件因为下面编译过程会自动从互联网下载依赖的类库, 所以必须联网才能执行下面过程. 编译在命令行simplelife目录下, 输入: mvn package 如果是第一次执行, 下载依赖类库需要很多时间, 以后将使用本地库. 执行后生成target目录, 和src并列. target目录下的simplelife.product.war可以部署到tomcat等服务器中执行. 运行可以跳过上面编译, 直接运行web应用, 不需要安装配置数据库和web服务器. 这里会自动安装web应用服务器, 编译系统并执行. 执行前请检查8080端口是否可用, 这里需要使用该端口. 在命令行simplelife目录下, 输入: mvn jetty:run 然后通过浏览器访问: http://localhost:8080/simplelife.product 可能出现的问题和解决办法如果在执行上述任务中出现以下提示: ...
[INFO] Failed to resolve artifact.
Missing:
----------
1) javax.transaction:jta:jar:1.0.1B
Try downloading the file manually from:
http://java.sun.com/products/jta
Then, install it using the command:
mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta \
-Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=javax.transaction -DartifactId=jta \
-Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file \
-Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) simplelife.googlecode.com:simplelife.product:war:0.1.0
2) javax.transaction:jta:jar:1.0.1B
...提示说的很清楚,因为缺少jta包,这个需要手工下载和安装。 简易的办法是:
开发者文档以上是作为部署者和使用者需要执行的内容. 如果需要理解系统设计和参与开发, 需要 命令行执行: mvn site 生成系统文档网站. 访问生成的文档: simplelife.product/target/site/index.html 其中主要内容有:
|
► Sign in to add a comment