`
superloafer
  • 浏览: 170354 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Seam Maven integration

阅读更多
By running this command you will get template for your project.
    mvn archetype:create  -DarchetypeArtifactId=softeu-archetype-seam \
    -DremoteRepositories=http://maven.softeu.cz/ \
    -DgroupId=cz.softeu.test -DartifactId=helloApp


Read README.txt inside the generated project.

Modify profiles.xml and jdbc.properties and configure it for your environment (DB + Container).

Now you can use Maven Seam plugin (similar to SeamGen):
    mvn seam:new-entity
    mvn seam:new-action
    mvn seam:new-form
    mvn seam:new-conversation


Note: mvn seam:generate-entities doesn't work yet.
Seam Examples

You can download few Seam examptes that I converted to using Maven:

    * hibernate2.zip
    * blog.zip

Using by hand

Add our Maven repository to your repositories in pom.xml:
<repositories>
    <repository>
        <id>softeu-repo</id>
        <url>http://maven.softeu.cz/</url>
    </repository>
</repositories>

And add dependency on your chosen profile(s)
<dependency>
    <groupId>jboss.seam.profiles</groupId>
    <artifactId>seam-facelets</artifactId>
    <version>1.1.6.GA</version>
    <scope>compile</scope>
</dependency>

不过运行这个命令后,在eclipse里面总是会出现找不到包的错误,原来maven下不到它要求的版本的包。于是把该项目目录下的.classpath文件改一改,修改为maven-repository里面已有版本的包就行了,不过觉得好多包都用不上。修改后的.classpath文件为:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="src" path="src/main/java"/>
	<classpathentry excluding="**/*.java" kind="src" path="src/main/resources"/>
	<classpathentry excluding="**/*.java" kind="src" path="src/main/resources-filter"/>
	<classpathentry excluding="**/*.java" kind="src" output="target/test-classes" path="src/test/resources"/>
	<classpathentry excluding="**/*.java" kind="src" output="target/test-classes" path="src/test/resources-filter"/>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
	<classpathentry kind="var" path="M2_REPO/stax/stax-api/1.0/stax-api-1.0.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/jboss-security/5.0.0alpha/jboss-security-5.0.0alpha.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/jboss-transaction/5.0.0alpha/jboss-transaction-5.0.0alpha.jar"/>
	<classpathentry kind="var" path="M2_REPO/hsqldb/hsqldb/1.8.0.7/hsqldb-1.8.0.7.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/jboss-archive-browsing/5.0.0alpha-200607201-119/jboss-archive-browsing-5.0.0alpha-200607201-119.jar"/>
	<classpathentry kind="var" path="M2_REPO/javax/activation/activation/1.1/activation-1.1.jar" sourcepath="M2_REPO/javax/activation/activation/1.1/activation-1.1-sources.jar"/>
	<classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-annotations/3.2.1.ga/hibernate-annotations-3.2.1.ga.jar"/>
	<classpathentry kind="var" path="M2_REPO/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar" sourcepath="M2_REPO/javax/persistence/persistence-api/1.0/persistence-api-1.0-sources.jar"/>
	<classpathentry kind="var" path="M2_REPO/org/apache/myfaces/core/myfaces-impl/1.1.2/myfaces-impl-1.1.2.jar"/>
	<classpathentry kind="var" path="M2_REPO/qdox/qdox/1.5/qdox-1.5.jar"/>
	<classpathentry kind="var" path="M2_REPO/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar" sourcepath="M2_REPO/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2-sources.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/seam/profiles/seam-ajax4jsf/1.2.1.GA/seam-ajax4jsf-1.2.1.GA.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/jboss-jca/5.0.0alpha/jboss-jca-5.0.0alpha.jar"/>
	<classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-entitymanager/3.2.1.ga/hibernate-entitymanager-3.2.1.ga.jar"/>
	<classpathentry kind="var" path="M2_REPO/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar" sourcepath="M2_REPO/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0-sources.jar">
		<attributes>
			<attribute name="javadoc_location" value="jar:file:/D:/maven-repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0-javadoc.jar!/"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="var" path="M2_REPO/javax/mail/mail/1.4/mail-1.4.jar" sourcepath="M2_REPO/javax/mail/mail/1.4/mail-1.4-sources.jar"/>
	<classpathentry kind="var" path="M2_REPO/org/apache/commons/commons-jci-core/1.0-406301/commons-jci-core-1.0-406301.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/seam/profiles/seam-jpa/1.2.1.GA/seam-jpa-1.2.1.GA.jar"/>
	<classpathentry kind="var" path="M2_REPO/javax/resource/connector-api/1.5/connector-api-1.5.jar"/>
	<classpathentry kind="var" path="M2_REPO/org/testng/testng/5.1/testng-5.1-jdk15.jar"/>
	<!-- <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar" sourcepath="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4-sources.jar">
		<attributes>
			<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
		</attributes>
	</classpathentry>
	 -->
	<classpathentry kind="var" path="M2_REPO/jaxen/jaxen/1.1-beta-6/jaxen-1.1-beta-6.jar"/>
	<classpathentry kind="var" path="M2_REPO/org/ajax4jsf/ajax4jsf/1.1.1/ajax4jsf-1.1.1.jar"/>
	<classpathentry kind="var" path="M2_REPO/jaxme/jaxme-api/0.3/jaxme-api-0.3.jar"/>
	<classpathentry kind="var" path="M2_REPO/xerces/xercesImpl/2.5.0/xercesImpl-2.5.0.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/jnpserver/5.0.0alpha/jnpserver-5.0.0alpha.jar"/>
	<classpathentry kind="var" path="M2_REPO/com/sun/facelets/jsf-facelets/1.1.14/jsf-facelets-1.1.14.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/seam/jboss-seam-ui/1.2.1.GA/jboss-seam-ui-1.2.1.GA.jar" sourcepath="M2_REPO/jboss/seam/jboss-seam-ui/1.2.1.GA/jboss-seam-ui-1.2.1.GA-sources.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/seam/profiles/seam-ejb/1.2.1.GA/seam-ejb-1.2.1.GA.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/seam/jboss-seam/1.2.1.GA/jboss-seam-1.2.1.GA.jar" sourcepath="M2_REPO/jboss/seam/jboss-seam/1.2.1.GA/jboss-seam-1.2.1.GA-sources.jar">
		<attributes>
			<attribute name="javadoc_location" value="jar:file:/D:/maven-repository/jboss/seam/jboss-seam/1.2.1.GA/jboss-seam-1.2.1.GA-javadoc.jar!/"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="var" path="M2_REPO/pull-parser/pull-parser/2/pull-parser-2.jar"/>
	<classpathentry kind="var" path="M2_REPO/cz/softeu/softeu-rewriter/1.1/softeu-rewriter-1.1.jar" sourcepath="M2_REPO/cz/softeu/softeu-rewriter/1.1/softeu-rewriter-1.1-sources.jar">
		<attributes>
			<attribute name="javadoc_location" value="jar:file:/D:/maven-repository/cz/softeu/softeu-rewriter/1.1/softeu-rewriter-1.1-javadoc.jar!/"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="var" path="M2_REPO/concurrent/concurrent/1.3.4/concurrent-1.3.4.jar" sourcepath="M2_REPO/concurrent/concurrent/1.3.4/concurrent-1.3.4-sources.jar"/>
	<classpathentry kind="var" path="M2_REPO/drools/drools-compiler/3.0.5/drools-compiler-3.0.5.jar"/>
	<classpathentry kind="var" path="M2_REPO/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar"/>
	<classpathentry kind="var" path="M2_REPO/drools/drools-core/3.0.5/drools-core-3.0.5.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/seam/profiles/seam-hibernate/1.2.1.GA/seam-hibernate-1.2.1.GA.jar"/>
	<classpathentry kind="var" path="M2_REPO/javax/el/el-api/1.2/el-api-1.2.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/jboss-common/5.0.0alpha/jboss-common-5.0.0alpha.jar"/>
	<classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar" sourcepath="M2_REPO/junit/junit/3.8.1/junit-3.8.1-sources.jar"/>
	<classpathentry kind="var" path="M2_REPO/commons-codec/commons-codec/1.3/commons-codec-1.3.jar" sourcepath="M2_REPO/commons-codec/commons-codec/1.3/commons-codec-1.3-sources.jar">
		<attributes>
			<attribute name="javadoc_location" value="jar:file:/D:/maven-repository/commons-codec/commons-codec/1.3/commons-codec-1.3-javadoc.jar!/"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="var" path="M2_REPO/msv/xsdlib/20030807/xsdlib-20030807.jar"/>
	<classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar" sourcepath="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1-sources.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/jboss-microcontainer/5.0.0alpha/jboss-microcontainer-5.0.0alpha.jar"/>
	<classpathentry kind="var" path="M2_REPO/asm/asm/1.5.3/asm-1.5.3.jar"/>
	<classpathentry kind="var" path="M2_REPO/org/apache/commons/commons-jci-janino/2.4.3/commons-jci-janino-2.4.3.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/seam/profiles/seam-microcontainer/1.2.1.GA/seam-microcontainer-1.2.1.GA.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/seam/jboss-seam-debug/1.2.1.GA/jboss-seam-debug-1.2.1.GA.jar" sourcepath="M2_REPO/jboss/seam/jboss-seam-debug/1.2.1.GA/jboss-seam-debug-1.2.1.GA-sources.jar"/>
	<classpathentry kind="var" path="M2_REPO/commons-io/commons-io/1.1/commons-io-1.1.jar" sourcepath="M2_REPO/commons-io/commons-io/1.1/commons-io-1.1-sources.jar">
		<attributes>
			<attribute name="javadoc_location" value="jar:file:/D:/maven-repository/commons-io/commons-io/1.1/commons-io-1.1-javadoc.jar!/"/>
		</attributes>
	</classpathentry>
	<!--  <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar"/> -->
	<classpathentry kind="var" path="M2_REPO/msv/relaxngDatatype/20030807/relaxngDatatype-20030807.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/jboss-container/5.0.0alpha/jboss-container-5.0.0alpha.jar"/>
	<classpathentry kind="var" path="M2_REPO/javax/el/el-ri/1.2/el-ri-1.2.jar"/>
	<classpathentry kind="var" path="M2_REPO/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar"/>
	<classpathentry kind="var" path="M2_REPO/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/seam/profiles/seam-facelets/1.2.1.GA/seam-facelets-1.2.1.GA.jar"/>
	<classpathentry kind="var" path="M2_REPO/xom/xom/1.0b3/xom-1.0b3.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/jboss-common-jdbc-wrapper/5.0.0alpha/jboss-common-jdbc-wrapper-5.0.0alpha.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/jboss-dependency/5.0.0alpha/jboss-dependency-5.0.0alpha.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/javassist/3.4.ga/javassist-3.4.ga.jar"/>
	<classpathentry kind="var" path="M2_REPO/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar"/>
	<classpathentry kind="var" path="M2_REPO/commons-fileupload/commons-fileupload/1.0/commons-fileupload-1.0.jar" sourcepath="M2_REPO/commons-fileupload/commons-fileupload/1.0/commons-fileupload-1.0-sources.jar"/>
	<classpathentry kind="var" path="M2_REPO/org/apache/myfaces/core/myfaces-api/1.1.3/myfaces-api-1.1.3.jar"/>
	<classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6.jar" sourcepath="M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6-sources.jar"/>
	<classpathentry kind="var" path="M2_REPO/commons-digester/commons-digester/1.6/commons-digester-1.6.jar"/>
	<classpathentry kind="var" path="M2_REPO/cglib/cglib/2.1_3/cglib-2.1_3.jar" sourcepath="M2_REPO/cglib/cglib/2.1_3/cglib-2.1_3-sources.jar"/>
	<classpathentry kind="var" path="M2_REPO/bsh/bsh/2.0b1/bsh-2.0b1.jar"/>
	<classpathentry kind="var" path="M2_REPO/javax/jms/jms/1.1/jms-1.1.jar"/>
	<classpathentry kind="var" path="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" sourcepath="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1-sources.jar"/>
	<classpathentry kind="var" path="M2_REPO/org/apache/myfaces/tomahawk/tomahawk/1.1.3/tomahawk-1.1.3.jar"/>
	<classpathentry kind="var" path="M2_REPO/commons-el/commons-el/1.0/commons-el-1.0.jar"/>
	<classpathentry kind="var" path="M2_REPO/xpp3/xpp3/1.1.3.3/xpp3-1.1.3.3.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/seam/jboss-seam-mail/1.2.1.GA/jboss-seam-mail-1.2.1.GA.jar" sourcepath="M2_REPO/jboss/seam/jboss-seam-mail/1.2.1.GA/jboss-seam-mail-1.2.1.GA-sources.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/jboss-system/5.0.0alpha/jboss-system-5.0.0alpha.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/jboss-local-jdbc/5.0.0alpha/jboss-local-jdbc-5.0.0alpha.jar"/>
	<classpathentry kind="var" path="M2_REPO/asm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar"/>
	<classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.1/commons-lang-2.1.jar" sourcepath="M2_REPO/commons-lang/commons-lang/2.1/commons-lang-2.1-sources.jar"/>
	<classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate/3.2.1.ga/hibernate-3.2.1.ga.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/jboss-j2se/5.0.0alpha/jboss-j2se-5.0.0alpha.jar"/>
	<classpathentry kind="var" path="M2_REPO/jboss/seam/profiles/seam-drools/1.2.1.GA/seam-drools-1.2.1.GA.jar"/>
	<classpathentry kind="output" path="target/classes"/>
</classpath>
分享到:
评论
1 楼 wenjinglian 2009-08-01  

相关推荐

    使用 Maven 管理 Seam 项目

    本篇文章将深入探讨如何使用Maven来管理Seam项目,一个基于Java EE的轻量级框架,专为富互联网应用程序(RIA)设计。 Seam项目是一个集成框架,它将JSF、EJB、CDI、JPA等Java EE技术紧密融合,提供了丰富的功能和...

    jboss seam maven ant jdk

    【标题】 "jbos seam maven ant jdk" 涉及的关键技术点主要涵盖了四个核心领域:JBoss Seam、Maven、Ant以及Java Development Kit(JDK)。这些技术在Java开发环境中扮演着至关重要的角色,特别是对于企业级应用的...

    maven+jetty+seam+hibernate

    【标题】"maven+jetty+seam+hibernate"是一个集成开发环境的配置,主要用于Java Web应用的快速开发。这个组合充分利用了Maven的项目管理和构建能力,Jetty的轻量级服务器特性,Seam的Java EE集成框架,以及Hibernate...

    eclipse 工程seam 例子2

    【Eclipse工程Seam示例2】是一个关于Java企业级开发的实践案例,它涉及到的主要技术包括Seam框架、EJB(Enterprise JavaBeans)以及JSF(JavaServer Faces)。这个项目可能是为了演示如何在Eclipse集成开发环境中...

    JBoss Seam--A Deep Integration Framework

    **JBoss Seam——深度整合框架** JBoss Seam是一款开源的企业级应用框架,它以其深度集成的能力而闻名。这个框架的设计目标是简化Java EE(现在称为Jakarta EE)开发,通过提供一个统一的环境来整合各种技术和组件...

    为Seam做好准备

    6. **Seam配置**:`seam-getting-started-build.xml`文件很可能是Seam项目的构建文件,可能包含Maven或Ant的配置信息,用于编译、测试和打包项目。理解如何配置Seam项目以及依赖管理是非常重要的。 7. **开发环境**...

    Jboss seam3 实战

    从部分内容来看,文章可能由名为JeffreyJia的作者撰写,提到了一些JBoss Seam3的关键概念和相关技术,同时也提到了构建工具Maven,以及Weld,这是Java EE 6中的CDI(Contexts and Dependency Injection)规范的参考...

    seam创建工程

    1. **环境准备**:确保你的开发环境中已经安装了Java JDK、Eclipse IDE(或其他支持Seam的IDE)、JBoss AS(或WildFly,因为Seam是基于JBoss的应用服务器)以及Seam工具集,如Seam Gen或Maven插件。 2. **新建项目*...

    JBoss encore 工程和maven仓库

    这个框架集成了多个关键组件,包括Seam和Weld,它们都是Java EE生态中的重要部分。 Seam是一个全栈的Java EE框架,它将JSF(JavaServer Faces)、EJB(Enterprise JavaBeans)和CDI(Contexts and Dependency ...

    Seam-gen生成基础项目骨架

    Seam-gen 是一款用于快速生成基于 Seam 框架的基础项目结构的工具,它通过简单的命令行交互式过程,帮助开发者构建项目的雏形,并且能够根据数据库信息自动生成管理数据库的 CRUD(Create, Read, Update, Delete)...

    jboss seam 2.01GA REF DOC

    ### JBoss Seam 2.01GA REF DOC #### 引言:JBoss Seam概览与功能介绍 JBoss Seam 是一个为简化企业级 Java 应用开发而设计的框架。它结合了 JavaServer Faces (JSF)、Java Persistence API (JPA) 和 Java ...

    整合了seam的一些资源

    4. `pom.xml`:如果包含此文件,那可能是一个Maven项目,`pom.xml`定义了项目的依赖和构建过程。 5. `.xml`配置文件:如`faces-config.xml`和`seam-config.xml`,这些配置文件用于定制Seam和JSF的行为。 使用这些...

    jboss seam 学习资料,seam in action和官方手册

    **JBoss Seam 学习资源概述** JBoss Seam 是一个开源的应用程序框架,它整合了JavaServer Faces (JSF)、Enterprise JavaBeans (EJB)、Java Persistence API (JPA) 和其他Java EE技术,旨在简化开发过程,提高开发...

    Maven 的41种骨架功能介绍

    ### Maven的41种骨架功能介绍 Maven作为一款强大的构建工具,在软件开发过程中扮演着极其重要的角色。它不仅能够帮助开发者自动化构建过程,还能通过其骨架(Archetype)功能来快速搭建项目的初始结构,极大地提高...

    seam 的eclipse工程例子3

    - 相关的配置文件,如`pom.xml`(如果使用Maven构建),`seam.properties`,`web.xml`和`faces-config.xml`。 - 可能还会有数据库连接配置和实体类,如果示例涉及到了数据持久化。 通过学习和实践这个例子,你可以...

    seam_carving 代码实现 seam

    **Seam Carving 技术详解** Seam Carving,又称图像拉链,是一种基于能量最小化的图像调整方法,主要用于图像大小的动态调整,而不仅仅是简单的等比例缩放。它能够在保持图像主要结构不变的情况下,根据需要增加或...

    JBOSS SEAM组件中文手册

    **JBoss Seam组件中文手册** **一、Seam框架概述** Seam是一个开源的企业级Java框架,由JBoss公司开发,旨在简化Java EE应用程序的开发。它将多种技术如JavaServer Faces (JSF),Java Persistence API (JPA),EJB 3...

    Seam框架文档简述

    ### Seam框架核心知识点详解 #### 一、Seam框架简介 Seam,全称为JBoss Seam,是一款基于Java EE 5的技术栈构建的应用框架。它通过整合JSF(JavaServer Faces)与EJB 3.0(Enterprise JavaBeans 3.0)组件,并充分...

    MATLAB_Seam_Carving_seamcarving_

    MATLAB_Seam_Carving_seamcarving_ 是一个与图像处理相关的项目,主要涉及到一种称为“seam carving”的技术,这是一种动态图像调整大小的方法,它可以在不改变图像整体视觉效果的情况下,增加或减少图像的宽度和...

    seam需要的jar包

    Seam框架是一个全面的Java企业级应用开发框架,它整合了JSF(JavaServer Faces)、EJB、CDI(Contexts and Dependency Injection)以及许多其他Java EE技术,为开发者提供了强大的组件模型和丰富的功能,旨在简化...

Global site tag (gtag.js) - Google Analytics