Configurando seam-gen:
- Descompactar numa pasta o jboss-seam;
- Jboss Instalado;
- Verifique a instalação Java jdk e a variável de ambiente JAVA_HOME.
- Entre na pasta e siga os passos abaixo:
~/Java/jboss-seam$ ./seam setup
SEAM_HOME: ~/Java/jboss-seam
Using seam-gen sources from: ~/Java/jboss-seam/seam-gen
Buildfile: ~/Java/jboss-seam/seam-gen/build.xml
init:
setup:
[echo] Welcome to seam-gen :-)
[echo] Answer each question or hit ENTER to accept the default (in brackets)
[echo]
[input] Enter the directory where you want the project to be created (should not contain spaces) [/home/crleal/workspace] [/home/crleal/workspace]
[input] Enter your JBoss AS home directory [] []
/home/crleal/Java/jboss-5.1.0.GA
[input] Enter your JBoss AS domain [default] [default]
[input] Enter your GlassFish V2 or V3 home directory (Ignore if you aren't deploying to GlassFish) [C:/Program Files/glassfish-v2.1] [C:/Program Files/glassfish-v2.1]
[input] Enter your GlassFish domain (Ignore if you aren't deploying to GlassFish) [domain1] [domain1]
[input] Enter the project name [] []
AplicacaoTeste
[echo] Accepted project name as: AplicacaoTeste
[input] Do you want to use ICEfaces instead of RichFaces? [n] (y, [n])
[input] skipping input as property icefaces.home.new has already been set.
[input] Select a RichFaces skin [emeraldTown] (blueSky, classic, darkX, deepMarine, DEFAULT, [emeraldTown], glassX, japanCherry, laguna, ruby, wine)
[input] Is this project deployed as an EAR (with EJB components) or a WAR (with no EJB support)? [war] (ear, [war])
[input] Enter the base package name for your Java classes [com.mydomain.AplicacaoTeste] []
br.com.aplicacaoteste
[input] Enter the Java package name for your session beans [br.com.aplicacaoteste.action] [br.com.aplicacaoteste.action]
[input] Enter the Java package name for your entity beans [br.com.aplicacaoteste.model] [br.com.aplicacaoteste.model]
[input] Enter the Java package name for your test cases [br.com.aplicacaoteste.test] [br.com.aplicacaoteste.test]
[input] What kind of database are you using? [hsql] ([hsql], mysql, derby, oracle, postgres, mssql, db2, sybase, enterprisedb, h2)
mysql
[input] Enter the filesystem path to the JDBC driver jar [] []
/home/crleal/Java/libs/mysql-connector-java-5.1.11-bin.jar
[input] skipping input as property driver.license.jar.new has already been set.
[input] Enter the Hibernate dialect for your database [org.hibernate.dialect.MySQLDialect] [org.hibernate.dialect.MySQLDialect]
[input] Enter the JDBC driver class for your database [com.mysql.jdbc.Driver] [com.mysql.jdbc.Driver]
[input] Enter the JDBC DataSource class for your database [com.mysql.jdbc.jdbc2.optional.MysqlDataSource] [com.mysql.jdbc.jdbc2.optional.MysqlDataSource]
[input] Enter the JDBC URL for your database [] []
jdbc\:mysql\://192.168.0.86\:3306/banco
[input] Enter the database username [] []
admin
[input] Enter the database password [] []
[input] skipping input as property hibernate.default_schema.entered has already been set.
[input] Enter the database catalog name (Enter '-' to clear previous value) [] []
[input] Are you working with tables that already exist in the database? [y] ([y], n)
[input] Do you want to recreate the database tables and execute import.sql each time you deploy? [n] (y, [n])
[propertyfile] Creating new property file: /home/crlea/Java/jboss-seam/seam-gen/build.properties
[echo] Installing JDBC driver jar to JBoss AS
[copy] Copying 1 file to /home/crleal/Java/jboss-5.1.0.GA/server/default/lib
init:
init-properties:
[echo] /home/crleal/Java/jboss-5.1.0.GA
validate-workspace:
validate-project:
settings:
[echo] JBoss AS home: /home/crleal/Java/jboss-5.1.0.GA
[echo] GlassFish home: C:/Program Files/glassfish-v2.1
[echo] Project name: BonusTeste
[echo] Project location: /home/crleal/workspace/AplicacaoTeste
[echo] Project type: war
[echo] IceFaces: n
[echo] Action package: br.com.aplicacaoteste.action
[echo] Model package: br.com.aplicacaoteste.model
[echo] Test package: br.com.aplicacaoteste.test
[echo] JDBC driver class: com.mysql.jdbc.Driver
[echo] JDBC DataSource class: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
[echo] Hibernate dialect: org.hibernate.dialect.MySQLDialect
[echo] JDBC URL: jdbc\:mysql\://192.168.0.86\:3306/banco
[echo] Database username: admin
[echo] Database password:
[echo]
[echo] Type './seam create-project' to create the new project
BUILD SUCCESSFUL
Total time: 1 minute 4 seconds
O arquivo onde são guardadas as configurações: seam-gen/build.properties
Nenhum comentário:
Postar um comentário