Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 49 Next »

[01:27:29 CDT(-0500)] <esmHome> Eric - the ear plugin is adding wars to the ear from the maven 2 repo. We don't have a chance, as far as I can tell, to assemble the war files before they are included in the ear.
[01:28:15 CDT(-0500)] <esmHome> I haven't been successful in getting the ear plugin to read the war files from an alternate path (e.g. from a directory containing assembled war files).
[01:29:09 CDT(-0500)] <esmHome> So we need to think of some other options
[01:30:23 CDT(-0500)] <esmHome> 1) Continue to try and get the ear plugin to read from a location other than the Maven 2 repo. This may be easy or hard - I need to look at the source code for the mojo.
[01:30:37 CDT(-0500)] <esmHome> 2) Update the Pluto assemblers to work with EAR files.
[01:32:13 CDT(-0500)] <esmHome> 3) Consider using a classifier to store assembled war files in the maven 2 repository, and have the ear plugin depend on "assembled" version of the war. This will require an update to the maven 2 pluto plugin, but I think it can easily be supported.
[01:33:12 CDT(-0500)] <esmHome> Obviously #3 goes against your preference of keeping assembled wars in the servlet container only. However, this is exactly what a classifier is meant to solve.
[01:34:13 CDT(-0500)] <esmHome> anyway, I'd appreciate your thoughts. You'll see that war file list support is there in the maven pluto plugin, but since I don't have any viable fix at the moment for the uportal3-ear sub-project, I'm not going to commit anything.
[01:35:07 CDT(-0500)] <esmHome> Er, I committed the support for assembling war files in the maven pluto plugin but I didn't commit anything to the JASIG repo regarding assembly.
[01:39:38 CDT(-0500)] * esmHome (n=esm@esm.qis.net) has left ##uportal
[08:23:01 CDT(-0500)] * esm (n=esm@esm.qis.net) has joined ##uportal
[09:03:16 CDT(-0500)] * esm (n=esm@esm.qis.net) has joined ##uportal
[09:25:18 CDT(-0500)] <EricDalquist> morning esm
[09:28:12 CDT(-0500)] <esm> eric
[09:28:19 CDT(-0500)] <EricDalquist> you were up late last night
[09:28:23 CDT(-0500)] <esm> ah morngin
[09:28:24 CDT(-0500)] <esm> yeah
[09:28:28 CDT(-0500)] <esm> dude
[09:28:46 CDT(-0500)] <esm> i was this close then realized I have no way to make the ear plugin use assembled versions of the wars
[09:28:59 CDT(-0500)] <EricDalquist> suck
[09:29:09 CDT(-0500)] <esm> I have to look at the ear plugin source, it isn't clear to me from its documentation how to get it to use something else
[09:29:25 CDT(-0500)] <esm> i put some options in irc last night if you look at the logs
[09:30:13 CDT(-0500)] <esm> hey i gotta 1) get readty to go to work for a meeting in 30 min and I will be back on
[09:30:23 CDT(-0500)] <esm> we can fix this thing - its just software right?
[09:30:32 CDT(-0500)] <esm> just need to figure out the plan of attack.
[09:31:04 CDT(-0500)] <EricDalquist> sounds good
[09:31:12 CDT(-0500)] <EricDalquist> when you have time to chat through the options let me know
[09:31:23 CDT(-0500)] <esm> ok cool if you have any to add...... (smile)
[09:31:26 CDT(-0500)] <esm> ok bbiab
[09:31:36 CDT(-0500)] * esm (n=esm@esm.qis.net) has left ##uportal
[09:51:33 CDT(-0500)] * esm (n=esm@esm.qis.net) has joined ##uportal
[10:01:32 CDT(-0500)] <esm> why oh why doesn't eclipse, by default, show line numbers
[10:01:38 CDT(-0500)] <esm> who doesn't want line numbers?
[10:26:50 CDT(-0500)] <EricDalquist> (smile)
[10:27:11 CDT(-0500)] <EricDalquist> done w/ the meeting?
[10:27:19 CDT(-0500)] <esm> i decided to cnoference in
[10:27:22 CDT(-0500)] <EricDalquist> ah
[10:27:25 CDT(-0500)] <esm> so i'm attending virtually
[10:27:26 CDT(-0500)] <esm> (smile)
[10:28:04 CDT(-0500)] <EricDalquist> well let me know when you have time and we can chat about WAR assembling, EAR deployment and ant tasks
[10:28:07 CDT(-0500)] <esm> kk
[10:47:34 CDT(-0500)] <EricDalquist> hrm .. so I'm not seeing a way to call arbitrary mvn goals from the mvn ant plugin
[10:54:44 CDT(-0500)] <esm> inside the <task> element?
[10:56:29 CDT(-0500)] <esm> ok conf call over
[10:56:30 CDT(-0500)] <esm> i'm back
[10:56:31 CDT(-0500)] <esm> wheh
[10:56:34 CDT(-0500)] <esm> whew
[10:56:57 CDT(-0500)] <EricDalquist> yeah, I was thinking it would be nice to use the hibernate3-maven-plugin from codehaus
[10:57:06 CDT(-0500)] <esm> oooh very nice
[10:57:07 CDT(-0500)] <esm> yeah
[10:57:08 CDT(-0500)] <EricDalquist> but I can't think of an easy way to call it from an ant script
[10:57:22 CDT(-0500)] <EricDalquist> I suppose that could be a manual step
[10:57:44 CDT(-0500)] <esm> does the maven antlib help
[10:58:06 CDT(-0500)] <EricDalquist> I don't think so
[10:58:09 CDT(-0500)] <EricDalquist> but I'm still figuring it out
[10:58:23 CDT(-0500)] <EricDalquist> I can get a classpath built from a pom's dependencies which is neat
[10:58:37 CDT(-0500)] <esm> yeah it is just dep management.
[10:58:39 CDT(-0500)] <EricDalquist> but I don't see a way to call an arbitrary goal for a pom
[10:58:40 CDT(-0500)] <esm> yeah
[10:58:48 CDT(-0500)] <EricDalquist> other than just doing a syscall
[10:58:51 CDT(-0500)] <EricDalquist> but that may be ok
[10:58:59 CDT(-0500)] <esm> definitly ok for now
[10:59:12 CDT(-0500)] <esm> i think in this situation the maven list would say "write a mojo"
[10:59:29 CDT(-0500)] <esm> but I'm not sure yet that we have all the requirements for what the up3 mojos would encompass
[10:59:45 CDT(-0500)] <EricDalquist> yeah
[10:59:50 CDT(-0500)] <esm> so maybe it makes sense to hack it out now and when we're done go in and clean up by writing mojos
[10:59:56 CDT(-0500)] <EricDalquist> once we get stuff more 'mavenized' I'll be all for writing mojos
[11:00:00 CDT(-0500)] <esm> yeah
[11:00:03 CDT(-0500)] <EricDalquist> but for now I'm looking for quick-n-dirty
[11:00:16 CDT(-0500)] <esm> don't get much dirtier than an ant syscall
[11:00:22 CDT(-0500)] <esm> (smile)
[11:00:24 CDT(-0500)] <EricDalquist> (smile)
[11:00:29 CDT(-0500)] <esm> so is now a good time to discuss options regarding the ear
[11:00:41 CDT(-0500)] <EricDalquist> ok, well I think I have what I need ... yes but I have a ~10 minute meeting to run to
[11:00:45 CDT(-0500)] <EricDalquist> so I'll be all set after that
[11:00:50 CDT(-0500)] <esm> ok i am still at home
[11:00:54 CDT(-0500)] <EricDalquist> ok
[11:00:57 CDT(-0500)] <esm> what time do you have
[11:00:58 CDT(-0500)] <EricDalquist> are you going in at all?
[11:01:00 CDT(-0500)] <EricDalquist> 11am
[11:01:01 CDT(-0500)] <esm> yeah
[11:01:02 CDT(-0500)] <EricDalquist> cdt
[11:01:07 CDT(-0500)] <esm> ok you are one hour behind me
[11:01:11 CDT(-0500)] <EricDalquist> after this meeting I'm free the rest of the day
[11:01:16 CDT(-0500)] <esm> want to chat after your lunch?
[11:01:29 CDT(-0500)] <EricDalquist> whenever you're free
[11:01:48 CDT(-0500)] <EricDalquist> if you want to head in now and just ping me when you get there
[11:01:48 CDT(-0500)] <esm> ok, i should be back on in an hour then
[11:01:52 CDT(-0500)] <esm> excellent
[11:01:55 CDT(-0500)] <EricDalquist> sounds good
[11:01:58 CDT(-0500)] <esm> bbiab
[12:08:18 CDT(-0500)] * esm (n=esm@clue.mse.jhu.edu) has joined ##uportal
[12:19:16 CDT(-0500)] <esm> pin
[12:19:19 CDT(-0500)] <esm> ugh.
[12:19:20 CDT(-0500)] <esm> ping.
[12:22:26 CDT(-0500)] <andrew_petro_ubu> pong
[12:22:47 CDT(-0500)] <andrew_petro_ubu> (after the Ethernet-prescribed noise followed by exponential backoff)
[12:24:29 CDT(-0500)] <esm> lol
[12:33:51 CDT(-0500)] <EricDalqui[away]> hey
[12:37:00 CDT(-0500)] <EricDalquist> I'm back
[12:37:10 CDT(-0500)] <EricDalquist> workin on getting the project setup to work with the hibernate plugin
[12:37:34 CDT(-0500)] <esm> cool
[12:38:16 CDT(-0500)] <esm> so what to do re the ear
[12:38:35 CDT(-0500)] <EricDalquist> well
[12:38:50 CDT(-0500)] <EricDalquist> what is the viability of a custom ear plugin
[12:38:59 CDT(-0500)] <EricDalquist> perhaps that extends the maven ear plugin
[12:39:09 CDT(-0500)] <EricDalquist> and just injects the pluto assembling logic
[12:39:15 CDT(-0500)] <esm> yeah
[12:39:22 CDT(-0500)] <esm> that is viable defnititly
[12:40:01 CDT(-0500)] <EricDalquist> I think that may be the most appropriate
[12:40:20 CDT(-0500)] <esm> ok that sounds good then
[12:44:55 CDT(-0500)] <EricDalquist> cool
[13:08:43 CDT(-0500)] <EricDalquist> grr
[13:08:48 CDT(-0500)] <EricDalquist> so ant exec doesn't work to call mvn
[13:08:54 CDT(-0500)] <EricDalquist> since mvn is just a shell script
[13:19:18 CDT(-0500)] <EricDalquist> ah ... I have to specify mvn.bat
[13:19:28 CDT(-0500)] <EricDalquist> time for os specific exec calls (tongue)
[13:33:10 CDT(-0500)] <EricDalquist> esm: just did a commit that re-arranged some maven related stuff and updated the uP3 war pom
[13:45:21 CDT(-0500)] <EricDalquist> well ... just found a little problem ...
[13:45:48 CDT(-0500)] <EricDalquist> I can't reference classes in the uP3.war since a WAR isn't a depenency type that can be added to a classpath (tongue)
[14:16:40 CDT(-0500)] <EricDalquist> I'm going to try creating a uportal3-impl sub-project
[14:16:47 CDT(-0500)] <EricDalquist> that will just be source code & their tests
[14:16:58 CDT(-0500)] <EricDalquist> the uP3 sub project will depend on it and just be the WAR specific stuff
[14:17:09 CDT(-0500)] <EricDalquist> hopefully then I can run the tasks
[14:21:19 CDT(-0500)] <esm> yeah
[14:21:21 CDT(-0500)] <esm> sounds good
[14:21:38 CDT(-0500)] <esm> eventually that was the plan anyway right
[14:21:48 CDT(-0500)] <EricDalquist> yup
[14:22:02 CDT(-0500)] <esm> that the uP3 subproject - after everything was moved out - would just be a shell that has a bunch of deps to build the war
[14:22:02 CDT(-0500)] <esm> cool
[14:22:07 CDT(-0500)] <esm> is that working out?
[14:22:11 CDT(-0500)] <EricDalquist> I think so
[14:22:16 CDT(-0500)] <EricDalquist> the svn mv's took a while
[14:22:16 CDT(-0500)] <esm> sweet.
[14:22:21 CDT(-0500)] <esm> yeah
[14:22:26 CDT(-0500)] <EricDalquist> so I'm just getting to making sure the poms are all correct
[14:23:05 CDT(-0500)] <esm> I'm getting started on the ear plugin
[14:23:08 CDT(-0500)] <EricDalquist> cool
[14:24:44 CDT(-0500)] <esm> you'll see me add the subproject today but it will proably mostly be empty for now
[14:25:07 CDT(-0500)] <EricDalquist> sounds good
[14:25:11 CDT(-0500)] <EricDalquist> looks like this is working
[14:25:39 CDT(-0500)] <esm> excellent
[14:25:40 CDT(-0500)] <EricDalquist> thats really slick how easily it was to move the source into its own jar and have the WAR still end up pretty much the same
[14:28:45 CDT(-0500)] <EricDalquist> what OS are you on right now?
[14:34:19 CDT(-0500)] <esm> linux
[14:34:34 CDT(-0500)] <EricDalquist> can you do a which mvn
[14:34:37 CDT(-0500)] <esm> sorry for some reason my client isn't alerting me to msgs in the channel
[14:34:40 CDT(-0500)] <esm> yeah
[14:34:41 CDT(-0500)] <EricDalquist> np
[14:34:52 CDT(-0500)] <esm> esm@clue:~$ which mvn
[14:34:52 CDT(-0500)] <esm> /home/esm/maven2/bin/mvn
[14:34:52 CDT(-0500)] <esm> esm@clue:~$
[14:35:09 CDT(-0500)] <esm> i installed it under my home dir
[14:35:12 CDT(-0500)] <EricDalquist> ok
[14:35:22 CDT(-0500)] <EricDalquist> and mvn is just a shell script right?
[14:35:27 CDT(-0500)] <esm> yes correct
[14:36:09 CDT(-0500)]

<esm> exec "$JAVACMD" {color}
[14:36:09 CDT(-0500)] <esm> $MAVEN_OPTS {color}
[14:36:09 CDT(-0500)] <esm> -classpath "$

Unknown macro: {M2_HOME}

"/core/boot/classworlds-*.jar {color}
[14:36:09 CDT(-0500)] <esm> "-Dclassworlds.conf=$

/bin/m2.conf" {color}
[14:36:09 CDT(-0500)] <esm> "-Dmaven.home=$

Unknown macro: {M2_HOME}

" {color}
[14:36:09 CDT(-0500)] <esm> $

Unknown macro: {CLASSWORLDS_LAUNCHER}

$QUOTED_ARGS


[14:36:15 CDT(-0500)] <esm> that is what it ends up executing
[14:37:03 CDT(-0500)] <EricDalquist> could you grab the latest svn code and try running 'ant init-db' in the root directory? (make sure you either don't have a hsql db running or one running that can have the uP3 schema created in)
[14:37:55 CDT(-0500)] <esm> ok
[14:37:59 CDT(-0500)] <EricDalquist> thanks
[14:38:18 CDT(-0500)] <EricDalquist> unfortunatly using 'ant exec' to call mvn goals appears to be an os specific thing
[14:39:08 CDT(-0500)] <esm> ugh.
[14:39:15 CDT(-0500)] <esm> checking out now
[14:39:29 CDT(-0500)] <EricDalquist> mainly because in windows it isn't 'mvn' but 'mvn.bat'
[14:39:37 CDT(-0500)] <EricDalquist> and ant's os specific stuff is a bit of a pita
[14:40:46 CDT(-0500)] <esm> UILD FAILED
[14:40:46 CDT(-0500)] <esm> /home/esm/src/up3m2-simple/build.xml:11: Unable to resolve artifact: required artifacts missing:
[14:40:46 CDT(-0500)] <esm> org.jasig.portal:uportal3-impl:jar:1.0.0-SNAPSHOT
[14:40:51 CDT(-0500)] <esm> i need to install the impl project first
[14:41:00 CDT(-0500)] <esm> you want me to do that?
[14:41:34 CDT(-0500)] <EricDalquist> oh yeah, if you could
[14:41:37 CDT(-0500)] <esm> cool
[14:43:44 CDT(-0500)] <esm> heh. org.jasig.portal.utils.WeakHashSetTest failed
[14:43:49 CDT(-0500)] <esm> i'm gonna ignore that one too?
[14:44:22 CDT(-0500)] <esm> scary it never failed before...
[14:44:32 CDT(-0500)] <EricDalquist> yeah
[14:47:20 CDT(-0500)] <esm> init-db:
[14:47:20 CDT(-0500)] <esm> [echo] Creating uPortal tables
[14:47:20 CDT(-0500)] <esm> BUILD FAILED
[14:47:20 CDT(-0500)] <esm> /home/esm/src/up3m2-simple/build.xml:26: The <exec> type doesn't support the "searchpath" attribute.
[14:47:20 CDT(-0500)] <esm> Total time: 3 seconds
[14:47:29 CDT(-0500)] <EricDalquist> hrm
[14:47:48 CDT(-0500)] <esm> esm@clue:~/src/up3m2-simple$ ant -v
[14:47:48 CDT(-0500)] <esm> Apache Ant version 1.6.2 compiled on July 16 2004
[14:47:54 CDT(-0500)] <EricDalquist> I have 1.6.5
[14:47:59 CDT(-0500)] <esm> probably i need to upgrade
[14:48:03 CDT(-0500)] <esm> ok
[14:48:05 CDT(-0500)] <EricDalquist> :/
[14:48:06 CDT(-0500)] <EricDalquist> well
[14:48:09 CDT(-0500)] <EricDalquist> don't worry about it now
[14:48:14 CDT(-0500)] <esm> oh ok
[14:48:18 CDT(-0500)] <EricDalquist> I can work on it on my mac when I get home
[14:48:20 CDT(-0500)] <esm> ok
[14:48:36 CDT(-0500)] <EricDalquist> and I'll see if we can just deal with a Win32 way and a non Win32 way of doing things
[14:49:32 CDT(-0500)] <esm> coo. I don't mind upgrading ant either.
[14:49:49 CDT(-0500)] <EricDalquist> eh, wait for now
[14:49:53 CDT(-0500)] <esm> k
[14:50:04 CDT(-0500)] <EricDalquist> I might see about making the build.xml a bit better about os detection
[15:17:00 CDT(-0500)] <esm> ok i gotta run, but back on later tonight
[15:17:06 CDT(-0500)] <EricDalquist> night
[15:17:10 CDT(-0500)] <esm> i think that we may be able to use the standard ear plugin
[15:17:16 CDT(-0500)] <EricDalquist> cool
[15:17:16 CDT(-0500)] <esm> but inject a custom archiver
[15:17:25 CDT(-0500)] <esm> that assembles at the very end
[15:17:44 CDT(-0500)] <esm> so we would extend the plexus JarArchiver
[15:18:02 CDT(-0500)] <esm> no code yet just thinking out loud
[15:18:08 CDT(-0500)] <EricDalquist> sounds promising
[15:18:15 CDT(-0500)] <esm> the ear plugin doesn't have many extention points
[15:18:22 CDT(-0500)] <EricDalquist> I'm having fun trying to figure out how to debug a java app being called from ant
[15:18:34 CDT(-0500)] <esm> most of the logic is in its execute() method (sad)
[15:18:35 CDT(-0500)] <esm> ooo
[15:18:41 CDT(-0500)] <esm> nice
[15:18:54 CDT(-0500)] <EricDalquist> yeah
[15:18:58 CDT(-0500)] <EricDalquist> DbLoader is running but failing
[15:19:08 CDT(-0500)] <EricDalquist> and now I get to figure out why (smile)
[15:19:33 CDT(-0500)] <esm> add some wait calls which will give you time to attach the debugger ?
[15:19:46 CDT(-0500)] <EricDalquist> yeah I might end up doing that
[15:19:47 CDT(-0500)] <esm> or is it just getting ant to launch it with the debug options turned on
[15:20:11 CDT(-0500)] <EricDalquist> thats not a problem
[15:21:08 CDT(-0500)] <esm> ok well good luck. Talk to you later!
[15:21:15 CDT(-0500)] <EricDalquist> later

  • No labels