Re: JBoss EJB3 and Maven

2007-01-04 Thread Fabricio Lemos
On 1/3/07, Vitor Pellegrino [EMAIL PROTECTED] wrote: i forgot to add at project/pom.xml my web project as a module, so it was not being compiled when i was trying to package my whole project. I have the same problem, but my web project is already a module of my project/pom.xml. What command did

Re: JBoss EJB3 and Maven

2007-01-03 Thread Vitor Pellegrino
Marco, Thanks for your help! My web.project has inherited my project/pom.xml. Trying to do what you told me to, i have found the problem: i forgot to add at project/pom.xml my web project as a module, so it was not being compiled when i was trying to package my whole project. Obvious! I feel a

Re: JBoss EJB3 and Maven

2007-01-03 Thread Marco Mistroni
Hello Vitor, i have been reading your post so and soso i might give you an answer that has already been said.. generally (and also because i don't have much experience with cargo plugin) i just output the .ear already in the jbossdir/server/default/deploy , that's the easy way... here's

Re: JBoss EJB3 and Maven

2007-01-03 Thread Stephane Nicoll
On 1/3/07, Vitor Pellegrino [EMAIL PROTECTED] wrote: [...] Well, now i'm trying to deploy this generated .ear (which seems to be correct) into my JBOSS AS instance. As Stephane Nicoll told me (thanks!), i am looking at Cargo plugin but i don't know exactly where do i have to declare this.

Re: JBoss EJB3 and Maven

2007-01-02 Thread Vitor Pellegrino
First of all, i want to wish you all a Happy new year and thanks for every reply!! Well, i gone after Better Builds with Maven and that helped-me to find myself how could i do this with Maven kind of deployment with Maven but, sadly, i'm still facing some issues. I've split my project into 3

Re: JBoss EJB3 and Maven

2007-01-02 Thread Marco Mistroni
helllo, my 2 cents a wild guessm ight be that your web project is not child of your com.project if your web project java files didnt change at all then it's normal that you'd have an earlier version .. try mvn clean install and see what happens otherwise.. this is what is in your ear

Re: JBoss EJB3 and Maven

2006-12-28 Thread Stephane Nicoll
On 12/28/06, Alexander Sack [EMAIL PROTECTED] wrote: I'm not sure why you are using the EJB plugin since EJB3 and JBoss are just JARs. We use EJB3 and JBoss exclusively and I prefer the JAR plugin. If your EJB3 project is built with the 'jar' packaging, it is handled as a library by the EAR

Re: JBoss EJB3 and Maven

2006-12-28 Thread Alexander Sack
I'm not following. It IS a JAR and there is nothing special about it other than the annotations which is only relevant at deployment time to the container. One of the major design goals of EJB3 is to have less overhead with respect to the number of deployment artifacts and to be more POJO

Re: JBoss EJB3 and Maven

2006-12-27 Thread Stephane Nicoll
Hi, On 12/26/06, Vitor Pellegrino [EMAIL PROTECTED] wrote: Hello, 1 - How can i deploy my project using maven to my Jboss AS instance? Have a look to cargo. When i try to do a mvn ejb:ejb it is lacking for a ejb-jar.xml file and at the plugin's usage page it's says that it's not

Re: JBoss EJB3 and Maven

2006-12-27 Thread Alexander Sack
I'm not sure why you are using the EJB plugin since EJB3 and JBoss are just JARs. We use EJB3 and JBoss exclusively and I prefer the JAR plugin. -aps On 12/27/06, Stephane Nicoll [EMAIL PROTECTED] wrote: Hi, On 12/26/06, Vitor Pellegrino [EMAIL PROTECTED] wrote: Hello, 1 - How can i

JBoss EJB3 and Maven

2006-12-26 Thread Vitor Pellegrino
Hello, Here at my company we're starting a new project using EJB3 with a JBOSS as our a application server. My task was to develop a concept proof using maven instead of ant for doing all the build process. I've added all jboss libraries to our local repository and right now i'm struggling to

Re: JBoss EJB3 and Maven

2006-12-26 Thread Fabricio Lemos
I think you donĀ“t need any ejb specific goal, just package your project on a jar, war or ear, depending on your need and deploy it via Cargo plugin. On 12/26/06, Vitor Pellegrino [EMAIL PROTECTED] wrote: Hello, Here at my company we're starting a new project using EJB3 with a JBOSS as our a