Re: ejb3 jboss persistence problem
Hi, I want to develop an EJB3 application with maven but I have any problem on library such as jboss-ejb3-all and thirdparty-all into dependance, I display my pom.xml it'is possible to help me to improve this pom: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdfr.auction/groupId artifactIdcaveatemptor-jpa/artifactId packagingwar/packaging version1.0/version namecaveatemptor-jpa Maven Webapp/name urlhttp://maven.apache.org/url build finalNamecaveatemptor-jpa/finalName sourceDirectorysrc/main/java/sourceDirectory testSourceDirectorysrc/test/java/testSourceDirectory plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version2.0.2/version configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.jboss.aop/groupId artifactIdjboss-aop/artifactId version${version.jboss.aop}/version /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration ejbVersion3.0/ejbVersion /configuration /plugin /plugins /build dependencies dependency groupIdjavax.persistence/groupId artifactIdpersistence-api/artifactId version1.0/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-annotations/artifactId version3.3.0.ga/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate/artifactId version3.2.5.ga/version exclusions exclusion groupIdjavax.transaction/groupId artifactIdjta/artifactId /exclusion /exclusions /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-tools/artifactId version3.2.0.ga/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-entitymanager/artifactId version3.3.2.GA/version /dependency dependency groupIdorg.dbunit/groupId artifactIddbunit/artifactId version2.2.3/version scopetest/scope /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdorg.testng/groupId artifactIdtestng/artifactId version5.8/version scopetest/scope classifierjdk15/classifier /dependency /dependencies /project neo anderson wrote: Previously I successfully build ejb3 example with jboss version 4.2.2 by specifying jboss library in the 'systempath'. Now I want to make use of the maven (jboss) repository. So I change to use the dependency section of pom.xml, modifying repository and dependency section; it is as follow: repositories repository idjboss-maven2/id urlhttp://repository.jboss.com/url /repository /repositories ... dependency groupIdjboss/groupId artifactIdjboss-persistence-api/artifactId version3.0.0-SNAPSHOT/version /dependency dependency groupIdjboss/groupId artifactIdjboss-ejb-api/artifactId version4.2.0.GA/version /dependency But maven returns message like Missing: -- 1) jboss:jboss-persistence-api:jar:3.0.0-SNAPSHOT Try downloading the file manually from the project website. I am able to to see the jar file located in the http://repository.jboss.com/jboss/jboss-persistence-api/ (The dependency for jboss-ejb-api works fine.) How to solve this error without downing/ installing the jar manually? Thanks for help, -- View this message in context: http://old.nabble.com/ejb3-jboss-persistence-problem-tp16653034p27714503.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: ejb3 jboss persistence problem
am not a maven specialist but when I go to: http://repository.jboss.com/jboss/jboss-persistence-api/3.0.0-SNAPSHOT I see a lib folder don't know if this is ok for maven ? 2008/4/12, neo anderson [EMAIL PROTECTED]: Previously I successfully build ejb3 example with jboss version 4.2.2 by specifying jboss library in the 'systempath'. Now I want to make use of the maven (jboss) repository. So I change to use the dependency section of pom.xml, modifying repository and dependency section; it is as follow: repositories repository idjboss-maven2/id urlhttp://repository.jboss.com/url /repository /repositories ... dependency groupIdjboss/groupId artifactIdjboss-persistence-api/artifactId version3.0.0-SNAPSHOT/version /dependency dependency groupIdjboss/groupId artifactIdjboss-ejb-api/artifactId version4.2.0.GA/version /dependency But maven returns message like Missing: -- 1) jboss:jboss-persistence-api:jar:3.0.0-SNAPSHOT Try downloading the file manually from the project website. I am able to to see the jar file located in the http://repository.jboss.com/jboss/jboss-persistence-api/ (The dependency for jboss-ejb-api works fine.) How to solve this error without downing/ installing the jar manually? Thanks for help, -- View this message in context: http://www.nabble.com/ejb3-jboss-persistence-problem-tp16653034s177p16653034.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ejb3 jboss persistence problem
Hey Neo. Cool Name. Maybe repositories repository idrepository.jboss.org/id nameJBoss Repository/name urlhttp://repository.jboss.org/maven2/url /repository repository snapshots / idsnapshots.jboss.org/id nameJBoss Snapshot Repository/name urlhttp://snapshots.jboss.org/maven2/url /repository /repositories should do the trick. I dont think the one you are using is correct and even if it is, snapshots usually have their own repo. hth, Manos neo anderson wrote: Previously I successfully build ejb3 example with jboss version 4.2.2 by specifying jboss library in the 'systempath'. Now I want to make use of the maven (jboss) repository. So I change to use the dependency section of pom.xml, modifying repository and dependency section; it is as follow: repositories repository idjboss-maven2/id urlhttp://repository.jboss.com/url /repository /repositories ... dependency groupIdjboss/groupId artifactIdjboss-persistence-api/artifactId version3.0.0-SNAPSHOT/version /dependency dependency groupIdjboss/groupId artifactIdjboss-ejb-api/artifactId version4.2.0.GA/version /dependency But maven returns message like Missing: -- 1) jboss:jboss-persistence-api:jar:3.0.0-SNAPSHOT Try downloading the file manually from the project website. I am able to to see the jar file located in the http://repository.jboss.com/jboss/jboss-persistence-api/ (The dependency for jboss-ejb-api works fine.) How to solve this error without downing/ installing the jar manually? Thanks for help, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ejb3 jboss persistence problem
Wait that doesnt look right, sorry. Try: repositories repository idjboss/id nameJBoss Repository/name urlhttp://repository.jboss.org/maven2/url snapshots enabledfalse/enabled /snapshots /repository repository idjboss-snapshots/id nameJBoss Snapshot Repository/name urlhttp://snapshots.jboss.org/maven2/url releases enabledfalse/enabled /releases snapshots enabledtrue/enabled /snapshots /repository /repositories Manos Batsis wrote: Hey Neo. Cool Name. Maybe repositories repository idrepository.jboss.org/id nameJBoss Repository/name urlhttp://repository.jboss.org/maven2/url /repository repository snapshots / idsnapshots.jboss.org/id nameJBoss Snapshot Repository/name urlhttp://snapshots.jboss.org/maven2/url /repository /repositories should do the trick. I dont think the one you are using is correct and even if it is, snapshots usually have their own repo. hth, Manos neo anderson wrote: Previously I successfully build ejb3 example with jboss version 4.2.2 by specifying jboss library in the 'systempath'. Now I want to make use of the maven (jboss) repository. So I change to use the dependency section of pom.xml, modifying repository and dependency section; it is as follow: repositories repository idjboss-maven2/id urlhttp://repository.jboss.com/url /repository /repositories ... dependency groupIdjboss/groupId artifactIdjboss-persistence-api/artifactId version3.0.0-SNAPSHOT/version /dependency dependency groupIdjboss/groupId artifactIdjboss-ejb-api/artifactId version4.2.0.GA/version /dependency But maven returns message like Missing: -- 1) jboss:jboss-persistence-api:jar:3.0.0-SNAPSHOT Try downloading the file manually from the project website. I am able to to see the jar file located in the http://repository.jboss.com/jboss/jboss-persistence-api/ (The dependency for jboss-ejb-api works fine.) How to solve this error without downing/ installing the jar manually? Thanks for help, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]