-
30. Re: Seam & Maven2
mzeijen Dec 20, 2006 2:00 PM (in response to mzeijen)It is a PDF file so you need a laptop or a PDA ;-). But trust me, within the hour you know the most important parts of Maven2. Ok, maybe 2 hours ;-).
-
31. Re: Seam & Maven2
ccanning Dec 20, 2006 2:36 PM (in response to mzeijen)Would you like for us to try to get the current file structure to work with maven?
-
32. Re: Seam & Maven2
fabricio.lemos Dec 20, 2006 2:40 PM (in response to mzeijen)It would be better, for maven users, to have seam examples with the maven file structure instead of the current one.
-
33. Re: Seam & Maven2
mzeijen Dec 20, 2006 3:02 PM (in response to mzeijen)Maybe we could write an Ant script that can convert the examples from the current structure to a Maven2 structure?
-
34. Re: Seam & Maven2
maxandersen Dec 20, 2006 3:04 PM (in response to mzeijen)guys...let's just get the "use seam with maven" solved first, right ? :)
-
35. Re: Seam & Maven2
mzeijen Dec 20, 2006 3:39 PM (in response to mzeijen)Working on it right now ;).
If you look at the dependency list in the wiki then you can see that it has grown a lot. -
36. Re: Seam & Maven2
mzeijen Dec 20, 2006 4:36 PM (in response to mzeijen)I believe we have a very complete list for Seam 1.1.0 GA now. I am only not so sure about the jboss-ejb3-all.jar part, because somewhere in the middle of checking it I lost my overview.
@petemuir: thx for creating that initial list. It really helped :D. -
37. Re: Seam & Maven2
mzeijen Dec 20, 2006 4:39 PM (in response to mzeijen)The next thing we need to do is create a dependency graph . This graph can tell us on which libraries Seam is directly depended upon.
-
38. Re: Seam & Maven2
dviersel Dec 21, 2006 5:30 PM (in response to mzeijen)A couple of weeks ago I started a small project using Seam. Since I don't like to include all-in-one jars to resolve dependencies, I went through the process of manually adding each and every dependency.
I don't use the jBPM stuff but the I have reviewed the other dependencies and arrived at a minimal set that allows me to compile my code which includes ajax4jsf, facelets, seam, ejb3, jpa and hibernate-annotations. I've tried to add information about whether the dependency is compile-time and/or run-time, whether it is provided by the container (JBoss), the version and related dependencies, etc. There still might be a lot missing though.
The EJB3 api is provided by the jboss-ejb3x.jar in the ${jboss.home}/server/default/deploy/ejb3.deployer directory. The JPA api is provided by the ejb3-persistence.jar in the ${jboss.home}/server/default/lib directory.
Of course, using the JSF 1.2 RI gives a little bit of a different set.
Finally, a little bit off topic but I believe that the EAR level dependencies (jboss-seam.jar, el-api.jar, el-ri.jar) should be packaged in a directory called 'lib' (can be overridden) within the EAR file and not be included through the in application.xml. This is intended for application-clients. -
39. Re: Seam & Maven2
christian.bauer Dec 21, 2006 6:09 PM (in response to mzeijen)That last statement is correct, shared libs in an EAR go into EAR/lib/ in Java EE 5.0.
However, in J2EE 1.4 and JBoss 4.0, you need to use a MANIFEST.MF in the ejb.jar and web.war archives, and reference the shared library by name in a Classpath: entry. Make sure that you have a new line after this, and that there is something in that new line (like a Created-By: entry). This is totally broken stuff in J2EE 1.4. I've lost a lot of hair until I figured that one out.
The way most Seam examples declare shared JARs in an EAR now, via a client module in application.xml, is not really correct and slower (these JARs are scanned by deployers), but seems to work. -
40. Re: Seam & Maven2
dviersel Dec 22, 2006 4:25 AM (in response to mzeijen)I forgot to mention that I updated the dependencies list on the wiki.
As with the ear-scoped libraries. Ant 1.7.0 now provides support for auto-generating the manifest entries. -
41. Re: Seam & Maven2
mzeijen Dec 22, 2006 7:58 AM (in response to mzeijen)Great work :D
Christmas is coming, so I don't know if I will spent a lot of time on this issue the next 4/5 days. -
42. Re: Seam & Maven2
dviersel Dec 22, 2006 10:09 AM (in response to mzeijen)I have a child coming up so I won't spend much time either. Still, let me know if I can help.
-
43. Re: Seam & Maven2
rmcdonough Dec 22, 2006 3:54 PM (in response to mzeijen)"mzeijen" wrote:
2. Find out how we can make it easy for the users to cope with those annoying javax.{library} libraries that aren't allowed in public Maven2 repositories because of their license.
Dunno if you know about this or not, but Java.net is now hosting a Maven repository for a lot of the javax.{library}. Have a look here if you haven't already:
https://maven-repository.dev.java.net/
It works like a champ for most things. Granted, I don't think they have the full range of JARs that you may be needing.
Ryan- -
44. Re: Seam & Maven2
mzeijen Dec 23, 2006 4:55 AM (in response to mzeijen)Thanks for the tip. I already knew about that place and they have a lot of javax.{library} libraries but not all that we need. Maybe I should contact that project to see if they are willing to add some more.