`
aaagu1234
  • 浏览: 145282 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
<?xml version="1.0" encoding="UTF-8"?> <persistence version="1.0" xmlns:persistence="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persi ...
到目前为止,我们已经大概了解并安装好了Maven,现在,我们开始创建一个最简单的Hello World项目。如果你是初次接触Maven,我建议你按照本章的内容一步步地编写代码并执行,可能你会碰到一些概念暂时难以理解,不用着急,记 ...
常用命令        Maven2 的运行命令为 : mvn , 常用命令为 :              mvn archetype:create :创建 Maven 项目              mvn compile :编译源代码              mvn test-compile :编译测试代码              mvn test : 运行应用程序中的单元测试              mvn site : 生成项目相关信息的网站              mvn clean :清除目标目录中的生成结果              mvn package : 依据项目生 ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <HTML> <HEAD> <TITLE> New Document </TITLE> <meta http-equiv=Content-Type content="text/html; charset=utf-8" ...
    环境是maven 2.2.1 我用过3.几的不好用最好不要用。     jdk是java version "1.6.0_10"     先不用安装tomcat,可以用jetty这个插件来当容器(下载好的appfuse里面已经有了)。     这个先在系统环境变量里面配置好。    首 ...
Here is what worked like a charm for me on Windows XP: Go to the folder 'C:\Program Files\Mercurial\hgrc.d' assuming you have installed Mercurial to'C:\Program Files\Mercurial\'. You should see a Mercurial.RC file in there. Copy the file to 'C:\Documents and Settings\ [USERNAME]\' Rename Mercuria ...
[INFO] Configuration Properties file loaded: C:\Documents and Settings\Administrator\cms2\core\target\test-classes\jdbc.properties ERROR - SchemaExport.execute(274) | schema export unsuccessful java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES) at com.mysql.jdbc.S ...
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building AppFuse Modular Application - Core [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [resources:r ...
因为搞了几天前几天的没有记录。我从一半开始记录。以后会做一些整理。会把开始的都写出来。 我采用的struts2  modular 的安装。用采用maven2.2.1 我用过最新的maven 会出错。最常见的是unable find resource 错误。这个是pom 的依赖包的版本的问题。我对maven不熟悉。我把根目录下面的pom.xml 和core文件夹下面的 pom.xml 的<version>1.2.4</version>都要写成你.m2/repository/  这个目录下的版本号。这样就可以运行了。我目前运行到在core下面 写入命令 mvn install ...
[size=medium]Appfuse2开发流程 2008年05月20日 星期二 下午 05:48 學習了Appfuse2一些時間,把自己使用appfuse2開發項目的方法流程總結一下。也希望大家可以给予意见指点一下…… 1、創建工程(這里用的是Struts2),命令為: mvn archetype:create ...
1、新建一Maven project工程。选择Archetype时选取appfuse-basic-struts-archetype(v2.1.0-M1),在填写maven坐标时使包名与Group Id相同(如果不同在用appfuse自动生成Pojo,dao,service代码时包名会不一样,即自动生成代码时appfuse默认会用Group Id作为主包名)。在成功生成初始工程后系统会报错,,此错误可能是appfuse的bug,默认会多一层包(即在会在用户指定包名后多了一个".webapp",但生成类的代码中的包名为正确),解决办法,将src/main/java和src/tes ...
使用appfuse的时候 出现下面的错误 有可能是maven的版本错误最好用2.2.1的版本 Failed to execute goal org.appfuse.plugins:appfuse-maven-plugin
[ERROR] No goals have been specified for this build. You must specify a valid li fecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id >:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are : validate, initialize ...
本文内容主要参考 http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html 1.安装 下载Maven.目前的版本是2.0.4 http://www.apache.org/dyn/closer.cgi/maven/binaries/maven-2.0.4-bin.zip 解压缩后,设置环境变量M2_HOME到maven目录;在环境变量path中增加maven的bin目录。 在命令行输入 Mvn -version 显示 Maven version: 2.0.4 则安装成功 ...
public static void main(String args[]){     int n =5;     int m=0;     int leftCount=5;     boolean b[] = new boolean[leftCount];     int count=0; while(leftCount>1){ if(b[m]==false){ ++count; if(count ==3){ b[m] = true; --leftCount; count = 0; } } + ...
Global site tag (gtag.js) - Google Analytics