opensubscriber
   Find in this group all groups
 
Unknown more information…

m : middlegen-user@lists.sourceforge.net 27 June 2006 • 4:51PM -0400

Re: [Middlegen-user] M2 problems
by eivindw

REPLY TO AUTHOR
 
REPLY TO GROUP






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, eivindw@tihl... <eivindw@tihl...> 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, eivindw@tihl... <eivindw@tihl...> 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
>> >> > middlegen-user@list...
>> >> > 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
>> >> middlegen-user@list...
>> >> 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
>> > middlegen-user@list...
>> > 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
>> middlegen-user@list...
>> 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
> middlegen-user@list...
> 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
middlegen-user@list...
https://lists.sourceforge.net/lists/listinfo/middlegen-user

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.