Re: M2 problems
"Mykel Alvis" <[email protected]> Tue, 11 Jul 2006 17:16:23 -0500
| Newsgroups | gmane.comp.java.ejb.middlegen.user |
|---|---|
| Message-ID | <[email protected]> |
--===============1006197484== Content-Type: multipart/alternative; boundary="----=_Part_19145_5229702.1152656183200" ------=_Part_19145_5229702.1152656183200 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi eivendw, I'm sorry for the long wait. I've been working a wscompile plugin issue that was more serious than my middlegen issue. :) I may be more or less replicating your work, with the exception that I'm planning to trying to use the automatic instantiation capabilites of the <configuration> to generate TableElement object and Many2ManyEleement objects (in a wrapper for naming purposes). I'll send you what I've got sometime tomorrow. Maybe you could tell me where/if I'm doing something really dumb with the middlegen task? I haven't gotten it to run or even gotten the plugin built yet, but I hope to have that done tomorrow afternoon. Thanks again for being willing to help! Mykel On 6/27/06, [email protected] <[email protected]> wrote: > > Hi Mykel! > > What I tried was building a plugin in the same manner as the XDoclet > plugin: > http://mojo.codehaus.org/xdoclet-maven-plugin/usage.html > > That way the code for the M2 plugin is minimal, as all configuration is > done in exactly the same manner as for the ant plugin. Problem is of > course that you need to include some ant xml code in your pom.xml file, > within the <configuration> section of the plugin (as in xdoclet example > linked in above). > > The ideal plugin, in my opinion, would be one where only the needed > settings (db connection settings, generating type - hibernate/jdo/ejb3 > etc.) must be specified. The rest could be defaulted. > > Not sure I understand exactly what you've been trying. If you send me the > stuff you've done, maybe I'll be able to help you out better :) > > .eivindw > > > Hey eivindw, > > Were you somehow trying to use markup to parse source files to do the > > generation? As I said, I'm very much a middlegen novice, and I can't > > really > > see how to do that but I'm always willing to listen. > > > > As I see it, the way to make the middlegen plugin work is to make a > > configuraiton section that mirrors the interior section of the ant task. > > That probably sounds pedantic, but if there's not an easy way to > transfer > > the settings, it'll be a bit more difficult. I'm still reading through > the > > documentation and working with the examples to see what else it might > need > > to do. > > > > My xml ant-task wrapper works fine, by the way, but any changes in the > > configuraiton (table defs, etc) requires a whole new plugin. Maybe > that's > > not such a bad thing, but it prevents people from using a generic plugin > > stored in a central repo. > > > > Mykel > > > > On 6/26/06, [email protected] <[email protected]> wrote: > >> > >> Hi again! > >> > >> I looked at the stuff I did on the M2 plugin. Started something based > on > >> the XDoclet plugin, but it doesn't seem to work with the latest M2 > >> version. Nothing worth committing yet at least. > >> > >> The way I see it, the Middlegen plugin for M2 should need a minimal set > >> of > >> configuration. With as much defaults as possible, with the option to > >> override of course. > >> > >> Let ut know if you come up with something that works, or need help > >> figuring stuff out.. > >> > >> .eivindw > >> > >> > Cool! > >> > > >> > I'll be happy to help, but I'll be honest. I have skills with maven > >> (and > >> > java) and little experience with middlegen. > >> > > >> > Right now, my primary contract is managing builds for a large J2EE > app > >> > that > >> > does a number of middlegen calls midstream. I've been working on an > >> ant > >> > plugin that wraps the middlegen ant task. I'm about 50% done (I > >> > think...), > >> > as I have the build that I'm looking for, but to specify the > >> sub-elements > >> > you have to make a whole new plugin (with your <table, <many..., etc > >> > elements). Obviously, this isn't the optimal solution but seems to > be > >> > what's going to get me by this week. :) > >> > > >> > I seem able to check out the middlegen code from CVS from home. If > >> > there's > >> > something I can do or look at, let me know. This would be a good > >> > opportunity for me to get to know middlegen better and help keep my > >> > managers > >> > off my back at the same time. :) > >> > > >> > Mykel > >> > > >> > On 6/23/06, [email protected] <[email protected]> wrote: > >> >> > >> >> Hi! > >> >> > >> >> I've started working on an M2 plugin, but haven't committed anything > >> to > >> >> cvs yet. As far as I can remember, there was a problem with the > >> >> dependency > >> >> loading in early versions of M2. Since the dependency to the db > >> driver > >> >> has > >> >> to be given in the projects pom, not the M2 plugin pom.. But think > >> that > >> >> can be solved easier now with the latest M2 release. > >> >> > >> >> I will take a look at it during this weekend, and commit to cvs what > >> I > >> >> have so far.. Appreciate any help to get this completed. > >> >> > >> >> CVS and mailing list archives are handled by sourceforge. > >> >> > >> >> .eivindw > >> >> > >> >> > I can't seem to find any documentation on the m2 middlegen plugin. > >> >> Does > >> >> > it > >> >> > exist? Is it just a repurposed m1 plugin? Is there documentation > >> for > >> >> the > >> >> > m2 plugin? > >> >> > > >> >> > The archives for this list appear to be defunct, as does the maven > >> >> site > >> >> > for > >> >> > boss. I also can't get to the source tree for middlegen using > CVS, > >> >> > although > >> >> > that's potentially (but unlikely) a connectivity problem on my > end. > >> >> > > >> >> > Anyone have any data they can share with me re: the m2 middlegen > >> >> plugin? > >> >> > > >> >> > -- > >> >> > > >> >> > Never wear anything that panics the cat. -- P. J. O'Rourke > >> >> > Using Tomcat but need to do more? Need to support web services, > >> >> security? > >> >> > Get stuff done quickly with pre-integrated technology to make your > >> job > >> >> > easier > >> >> > Download IBM WebSphere Application Server v.1.0.1 based on Apache > >> >> Geronimo > >> >> > > >> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >> >> > _______________________________________________ > >> >> > middlegen-user mailing list > >> >> > [email protected] > >> >> > https://lists.sourceforge.net/lists/listinfo/middlegen-user > >> >> > > >> >> > >> >> > >> >> > >> >> Using Tomcat but need to do more? Need to support web services, > >> >> security? > >> >> Get stuff done quickly with pre-integrated technology to make your > >> job > >> >> easier > >> >> Download IBM WebSphere Application Server v.1.0.1 based on Apache > >> >> Geronimo > >> >> > >> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >> >> _______________________________________________ > >> >> middlegen-user mailing list > >> >> [email protected] > >> >> https://lists.sourceforge.net/lists/listinfo/middlegen-user > >> >> > >> > > >> > > >> > > >> > -- > >> > > >> > Never wear anything that panics the cat. -- P. J. O'Rourke > >> > Using Tomcat but need to do more? Need to support web services, > >> security? > >> > Get stuff done quickly with pre-integrated technology to make your > job > >> > easier > >> > Download IBM WebSphere Application Server v.1.0.1 based on Apache > >> Geronimo > >> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >> > _______________________________________________ > >> > middlegen-user mailing list > >> > [email protected] > >> > https://lists.sourceforge.net/lists/listinfo/middlegen-user > >> > > >> > >> > >> > >> Using Tomcat but need to do more? Need to support web services, > >> security? > >> Get stuff done quickly with pre-integrated technology to make your job > >> easier > >> Download IBM WebSphere Application Server v.1.0.1 based on Apache > >> Geronimo > >> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >> _______________________________________________ > >> middlegen-user mailing list > >> [email protected] > >> https://lists.sourceforge.net/lists/listinfo/middlegen-user > >> > > > > > > > > -- > > > > Never wear anything that panics the cat. -- P. J. O'Rourke > > Using Tomcat but need to do more? Need to support web services, > security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > middlegen-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/middlegen-user > > > > > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > middlegen-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/middlegen-user > -- Never wear anything that panics the cat. -- P. J. O'Rourke ------=_Part_19145_5229702.1152656183200 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi eivendw,<br><br>I'm sorry for the long wait. I've been working a wscompile plugin issue that was more serious than my middlegen issue. :)<br><br>I may be more or less replicating your work, with the exception that I'm planning to trying to use the automatic instantiation capabilites of the <configuration> to generate TableElement object and Many2ManyEleement objects (in a wrapper for naming purposes). <br><br>I'll send you what I've got sometime tomorrow. Maybe you could tell me where/if I'm doing something really dumb with the middlegen task? I haven't gotten it to run or even gotten the plugin built yet, but I hope to have that done tomorrow afternoon. <br><br>Thanks again for being willing to help!<br><br>Mykel<br><br><div><span class="gmail_quote">On 6/27/06, <b class="gmail_sendername"><a href="mailto:[email protected]">[email protected]</a></b> <<a href="mailto:[email protected]"> [email protected]</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Mykel!<br><br>What I tried was building a plugin in the same manner as the XDoclet plugin: <br><a href="http://mojo.codehaus.org/xdoclet-maven-plugin/usage.html">http://mojo.codehaus.org/xdoclet-maven-plugin/usage.html</a><br><br>That way the code for the M2 plugin is minimal, as all configuration is<br>done in exactly the same manner as for the ant plugin. Problem is of <br>course that you need to include some ant xml code in your pom.xml file,<br>within the <configuration> section of the plugin (as in xdoclet example<br>linked in above).<br><br>The ideal plugin, in my opinion, would be one where only the needed <br>settings (db connection settings, generating type - hibernate/jdo/ejb3<br>etc.) must be specified. The rest could be defaulted.<br><br>Not sure I understand exactly what you've been trying. If you send me the<br>stuff you've done, maybe I'll be able to help you out better :) <br><br>.eivindw<br><br>> Hey eivindw,<br>> Were you somehow trying to use markup to parse source files to do the<br>> generation? As I said, I'm very much a middlegen novice, and I can't<br>> really<br>> see how to do that but I'm always willing to listen. <br>><br>> As I see it, the way to make the middlegen plugin work is to make a<br>> configuraiton section that mirrors the interior section of the ant task.<br>> That probably sounds pedantic, but if there's not an easy way to transfer <br>> the settings, it'll be a bit more difficult. I'm still reading through the<br>> documentation and working with the examples to see what else it might need<br>> to do.<br>><br>> My xml ant-task wrapper works fine, by the way, but any changes in the <br>> configuraiton (table defs, etc) requires a whole new plugin. Maybe that's<br>> not such a bad thing, but it prevents people from using a generic plugin<br>> stored in a central repo.<br>><br>> Mykel<br> ><br>> On 6/26/06, <a href="mailto:[email protected]">[email protected]</a> <<a href="mailto:[email protected]">[email protected]</a>> wrote:<br>>><br>>> Hi again!<br>>><br>>> I looked at the stuff I did on the M2 plugin. Started something based on <br>>> the XDoclet plugin, but it doesn't seem to work with the latest M2<br>>> version. Nothing worth committing yet at least.<br>>><br>>> The way I see it, the Middlegen plugin for M2 should need a minimal set <br>>> of<br>>> configuration. With as much defaults as possible, with the option to<br>>> override of course.<br>>><br>>> Let ut know if you come up with something that works, or need help<br> >> figuring stuff out..<br>>><br>>> .eivindw<br>>><br>>> > Cool!<br>>> ><br>>> > I'll be happy to help, but I'll be honest. I have skills with maven<br>>> (and<br> >> > java) and little experience with middlegen.<br>>> ><br>>> > Right now, my primary contract is managing builds for a large J2EE app<br>>> > that<br>>> > does a number of middlegen calls midstream. I've been working on an <br>>> ant<br>>> > plugin that wraps the middlegen ant task. I'm about 50% done (I<br>>> > think...),<br>>> > as I have the build that I'm looking for, but to specify the<br>>> sub-elements <br>>> > you have to make a whole new plugin (with your <table, <many..., etc<br>>> > elements). Obviously, this isn't the optimal solution but seems to be<br>>> > what's going to get me by this week. :) <br>>> ><br>>> > I seem able to check out the middlegen code from CVS from home. If<br>>> > there's<br>>> > something I can do or look at, let me know. This would be a good<br>>> > opportunity for me to get to know middlegen better and help keep my <br>>> > managers<br>>> > off my back at the same time. :)<br>>> ><br>>> > Mykel<br>>> ><br>>> > On 6/23/06, <a href="mailto:[email protected]">[email protected]</a> <<a href="mailto:[email protected]">[email protected]</a>> wrote:<br>>> >><br>>> >> Hi!<br>>> >><br>>> >> I've started working on an M2 plugin, but haven't committed anything <br>>> to<br>>> >> cvs yet. As far as I can remember, there was a problem with the<br>>> >> dependency<br>>> >> loading in early versions of M2. Since the dependency to the db<br> >> driver<br>>> >> has<br>>> >> to be given in the projects pom, not the M2 plugin pom.. But think<br>>> that<br>>> >> can be solved easier now with the latest M2 release.<br> >> >><br>>> >> I will take a look at it during this weekend, and commit to cvs what<br>>> I<br>>> >> have so far.. Appreciate any help to get this completed.<br>>> >><br> >> >> CVS and mailing list archives are handled by sourceforge.<br>>> >><br>>> >> .eivindw<br>>> >><br>>> >> > I can't seem to find any documentation on the m2 middlegen plugin. <br>>> >> Does<br>>> >> > it<br>>> >> > exist? Is it just a repurposed m1 plugin? Is there documentation<br>>> for<br>>> >> the<br>>> >> > m2 plugin? <br>>> >> ><br>>> >> > The archives for this list appear to be defunct, as does the maven<br>>> >> site<br>>> >> > for<br>>> >> > boss. I also can't get to the source tree for middlegen using CVS, <br>>> >> > although<br>>> >> > that's potentially (but unlikely) a connectivity problem on my end.<br>>> >> ><br>>> >> > Anyone have any data they can share with me re: the m2 middlegen <br>>> >> plugin?<br>>> >> ><br>>> >> > --<br>>> >> ><br>>> >> > Never wear anything that panics the cat. -- P. J. O'Rourke<br>>> >> > Using Tomcat but need to do more? Need to support web services, <br>>> >> security?<br>>> >> > Get stuff done quickly with pre-integrated technology to make your<br>>> job<br>>> >> > easier<br>>> >> > Download IBM WebSphere Application Server v.1.0.1 based on Apache<br>>> >> Geronimo<br>>> >> ><br>>> <a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 </a><br>>> >> > _______________________________________________<br>>> >> > middlegen-user mailing list<br>>> >> > <a href="mailto:[email protected]">[email protected] </a><br>>> >> > <a href="https://lists.sourceforge.net/lists/listinfo/middlegen-user">https://lists.sourceforge.net/lists/listinfo/middlegen-user</a><br>>> >> ><br>>> >><br>>> >> <br>>> >><br>>> >> Using Tomcat but need to do more? Need to support web services,<br>>> >> security?<br>>> >> Get stuff done quickly with pre-integrated technology to make your <br>>> job<br>>> >> easier<br>>> >> Download IBM WebSphere Application Server v.1.0.1 based on Apache<br>>> >> Geronimo<br>>> >><br>>> <a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642"> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a><br>>> >> _______________________________________________<br>>> >> middlegen-user mailing list<br>>> >> <a href="mailto:[email protected]">[email protected]</a><br>>> >> <a href="https://lists.sourceforge.net/lists/listinfo/middlegen-user">https://lists.sourceforge.net/lists/listinfo/middlegen-user </a><br>>> >><br>>> ><br>>> ><br>>> ><br>>> > --<br>>> ><br>>> > Never wear anything that panics the cat. -- P. J. O'Rourke<br>>> > Using Tomcat but need to do more? Need to support web services, <br>>> security?<br>>> > Get stuff done quickly with pre-integrated technology to make your job<br>>> > easier<br>>> > Download IBM WebSphere Application Server v.1.0.1 based on Apache<br> >> Geronimo<br>>> > <a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a><br> >> > _______________________________________________<br>>> > middlegen-user mailing list<br>>> > <a href="mailto:[email protected]">[email protected]</a><br> >> > <a href="https://lists.sourceforge.net/lists/listinfo/middlegen-user">https://lists.sourceforge.net/lists/listinfo/middlegen-user</a><br>>> ><br>>><br>>><br>>><br>>> Using Tomcat but need to do more? Need to support web services, <br>>> security?<br>>> Get stuff done quickly with pre-integrated technology to make your job<br>>> easier<br>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache<br>>> Geronimo <br>>> <a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a><br>>> _______________________________________________ <br>>> middlegen-user mailing list<br>>> <a href="mailto:[email protected]">[email protected]</a><br>>> <a href="https://lists.sourceforge.net/lists/listinfo/middlegen-user"> https://lists.sourceforge.net/lists/listinfo/middlegen-user</a><br>>><br>><br>><br>><br>> --<br>><br>> Never wear anything that panics the cat. -- P. J. O'Rourke<br>> Using Tomcat but need to do more? Need to support web services, security? <br>> Get stuff done quickly with pre-integrated technology to make your job<br>> easier<br>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<br>> <a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642"> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a><br>> _______________________________________________<br>> middlegen-user mailing list<br>> <a href="mailto:[email protected]"> [email protected]</a><br>> <a href="https://lists.sourceforge.net/lists/listinfo/middlegen-user">https://lists.sourceforge.net/lists/listinfo/middlegen-user</a><br>><br><br><br><br>Using Tomcat but need to do more? Need to support web services, security? <br>Get stuff done quickly with pre-integrated technology to make your job easier<br>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<br><a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642"> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a><br>_______________________________________________<br>middlegen-user mailing list<br><a href="mailto:[email protected]"> [email protected]</a><br><a href="https://lists.sourceforge.net/lists/listinfo/middlegen-user">https://lists.sourceforge.net/lists/listinfo/middlegen-user</a><br></blockquote></div><br><br clear="all"><br> -- <br><br>Never wear anything that panics the cat. -- P. J. O'Rourke ------=_Part_19145_5229702.1152656183200-- --===============1006197484== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 --===============1006197484== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ middlegen-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/middlegen-user --===============1006197484==--