Skip to content

projeto java web para axilio no cadastro de condomínios de um condomínio

Notifications You must be signed in to change notification settings

leonardobussi/PortariaCondominio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Web project using Maven repository

this is a project made to register the residents of the condominium, the idea is to make the lives of condonimos easier and safer, because when registering on the platform a security password is generated so that the entrance to the condominium have autonomy to recognize who enters and who leaves.
  • choose an IDE
  1. configure the servers (Toncat or glassfish)
to work, just clone the repository then enter the repository configure hibernate.cfg.xml to configure your local mysql bank password. next step is to create a database in mysql (create database ordinance;), then run hibernateTeste.ja to create the tables in the bank, to finish run the project.

Technologies used

  1. Maven
  2. Hibernate
  3. PrimeFace
  4. JSP

mvn archetype:generate \
  -DarchetypeGroupId=org.apache.maven.archetypes \
  -DarchetypeArtifactId=maven-archetype-quickstart \
  -Dversion=1.0-SNAPSHOT \
  -DgroupId=com.erkobridee.exemplo.mvn \
  -DartifactId=ExemploMavenDesktop

preparar o projeto para o eclipse

mvn eclipse:eclipse 

web java

mvn archetype:generate \
    -DarchetypeGroupId=org.apache.maven.archetypes \
    -DarchetypeArtifactId=maven-archetype-webapp \
    -Dversion=1.0-SNAPSHOT \
    -DgroupId=com.erkobridee.exemplo.mvn \
    -DartifactId=ExemploMavenWeb

preparar o projeto para o eclipse

mvn eclipse:eclipse -Dwtpversion=2.0

Comandos para utilizar em projeto

mostra a arvore de dependencies(.jar)

mvn depedency:tree 

copia os jar(dependencies) para pasta target/dependency [ evita eventuais problemas de ambiente ]

mvn dependency:copy-dependencies

compile o projeto

mvn compile

executa os testes

mvn test 

gerar os .jars , muito usado em projetos ear

mvn package 

limpa todas as dependencies(.jars)

mvn clean 

procura todos os comandos que vc deu para o maven

history | grep mvn 

boa prática adotada para gerar o pacote de deploy do projeto

mvn clean install

Links úteis

FLEX MOJOS

Flex : Creates a simple SWC project

mvn \
    archetype:generate \
    -DarchetypeRepository=http://repository.sonatype.org/content/groups/flexgroup/ \
    -DarchetypeGroupId=org.sonatype.flexmojos \
    -DarchetypeArtifactId=flexmojos-archetypes-library \
    -DarchetypeVersion=3.6.1 \
    -Dversion=1.0-SNAPSHOT \
    -DgroupId=com.erkobridee.exemplo.mvn \
    -DartifactId=ExemploMavenFlexLib

Flex : Creates a simple SWF project

mvn \
    archetype:generate \
    -DarchetypeRepository=http://repository.sonatype.org/content/groups/flexgroup/ \
    -DarchetypeGroupId=org.sonatype.flexmojos \
    -DarchetypeArtifactId=flexmojos-archetypes-application \
    -DarchetypeVersion=3.6.1 \
    -Dversion=1.0-SNAPSHOT \
    -DgroupId=com.erkobridee.exemplo.mvn \
    -DartifactId=ExemploMavenFlexApp

Flex : Creates a modular project containing one SWC, one SWF and one WAR

mvn \
    archetype:generate \
    -DarchetypeRepository=http://repository.sonatype.org/content/groups/flexgroup/ \
    -DarchetypeGroupId=org.sonatype.flexmojos \
    -DarchetypeArtifactId=flexmojos-archetypes-modular-webapp \
    -DarchetypeVersion=3.6.1 \
    -Dversion=1.0-SNAPSHOT \
    -DgroupId=com.erkobridee.exemplo.mvn \
    -DartifactId=ExemploMavenFlexModular

comandos úteis

mvn clean install -DskipTests=true

mvn flexmojos:flexbuilder