<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    javaGrowing

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      92 隨筆 :: 33 文章 :: 49 評論 :: 0 Trackbacks
    Archetype Command
    JSF Basic mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-jsf -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
    Spring MVC Basic mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
    Struts 2 Basic mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
    Tapestry Basic mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-tapestry -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
    JSF Modular mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-jsf -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
    Spring MVC Modular mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-spring -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
    Struts 2 Modular mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-struts -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
    Tapestry Modular mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-tapestry -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
    Core
    (backend only)
    mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-core -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject

    You should be able to run AppFuse immediately if you have a MySQL 5.x database installed and it's accessible to root using no password. If you'd prefer to use an embedded database, we've recently added Database Profiles for H2, HSQLDB, etc.

    MySQL Security
    Running MySQL using root with no password is not the most secure thing to do. Once your database is created, you can change the root password using the command below:
    mysql --user=root --pass='' mysql -e "update user set password=password('newpw') where user='root'; flush privileges;"

    AppFuse uses the username "root" and a blank password by default. To change these values, modify the <jdbc.username> and <jdbc.password> properties in your project's pom.xml (at the bottom).

    Run your application

    Running AppFuse is easy now. Once the archetype project is created, Maven will create and populate your database using the hibernate3 and dbunit plugins, respectively. All you have to do is use Maven to run the Jetty container and view your application.

    1. Check your new project into source control, unless you have a good reason not to. Google Code has free Subversion hosting, as do many others.
    2. From the command line, cd into your new project's directory and run mvn to download JARs, Tomcat and run the integration tests in your project. Now is a good time to take a coffee break or grab a beer - downloading everything and running the tests can take 5-10 minutes.
    3. To view your application run mvn jetty:run-war from your project's directory (for a modular project, you'll need to run mvn jetty:run-war from your project's web directory). Maven will start Jetty and you should be able to view your application in your browser at http://localhost:8080.
      The default username/password for an admin user is admin/admin. For a regular user, use user/user.
    4. To override files from AppFuse, run mvn war:inplace. This will extract the dependent WARs into src/main/webapp, where you can change files to your heart's content. When you have the war expanded in your source tree, you can run mvn jetty:run. This will allow you to change files on-the-fly and Jetty will reload them as needed. The only problem with this approach is you end up with an "exploded AppFuse" in your project, which won't bode well for upgrading. We recommend you check your project into source control before running mvn war:inplace. That way, it'll be easier for you to decide what needs to be checked in (over written) and what can be deleted.

    If you receive OutOfMemory errors when using mvn jetty:run, see this mailing list thread.

    You can change AppFuse from its "embedded mode" to full-source mode by running mvn appfuse:full-source from your project's root directory.

    Bug with Ant 1.7.0
    Local repositories and projects on Windows platforms are held in directories whose paths contain no spaces. To fix this issue, modify your $M2_HOME/conf/settings.xml and change your localRepository to something like the following:
    <localRepository>c:\docume~1\username\.m2\repository</localRepository> 
    
    Development Environment
    See development environment for detailed instructions on how to setup your computer to develop AppFuse-based applications.
    Changing database settings
    To change your MySQL database settings, simply change the <jdbc.*> properties at the bottom of your pom.xml. See Database Profiles to use a database other than MySQL


    set MAVEN_OPTS=-Xmx512m -Xms512m -XX:MaxPermSize=512m
    posted on 2008-09-03 18:07 javaGrowing 閱讀(477) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: mm1313亚洲国产精品无码试看| 中国一级毛片免费看视频| 久草视频在线免费看| 亚洲中文字幕无码永久在线| 一级女性全黄久久生活片免费| 亚洲国产主播精品极品网红| 亚洲av午夜福利精品一区人妖| 亚洲精品成a人在线观看☆| 黄网站免费在线观看| 亚洲精品亚洲人成在线观看| 久艹视频在线免费观看| 久久久亚洲欧洲日产国码是AV | 亚洲精品日韩中文字幕久久久| 大地影院MV在线观看视频免费| 日韩激情无码免费毛片| 亚洲AV无码精品色午夜在线观看| 秋霞人成在线观看免费视频| 亚洲精品视频观看| 成人五级毛片免费播放| 亚洲视频在线免费播放| 国产91免费在线观看| 亚洲人成未满十八禁网站| 日韩免费人妻AV无码专区蜜桃| 亚洲色四在线视频观看| 国产一级在线免费观看| 久久青青草原亚洲av无码app| 中文字幕影片免费在线观看| 羞羞的视频在线免费观看| 亚洲啪啪AV无码片| 国产福利免费视频| av无码东京热亚洲男人的天堂| 国产精品免费αv视频| 亚洲免费视频在线观看| 午夜电影免费观看| 一个人看的www免费视频在线观看 一个人免费视频观看在线www | 免费a在线观看播放| a级片免费在线观看| 亚洲精品成人a在线观看| 久久免费福利视频| 亚洲aⅴ无码专区在线观看春色| 亚洲一区二区三区香蕉|