PDA

View Full Version : Build PAT from SVN



sgjava
03-19-2010, 11:25 AM
Following http://code.google.com/p/pentahoanalysistool/wiki/BuildFromSVN has a broken link http://smartgwt.rorschach.de/index.php5/Setting_up_Eclipse_%26_Maven2. Is there a better source for setting up the project(s) in Eclipse?

bugg_tb
03-19-2010, 11:31 AM
Basically that bit was about installing the maven eclipse plugin:
http://maven.apache.org/eclipse-plugin.html

I'll update the wiki at some point

Cheers

Tom

sgjava
03-19-2010, 11:36 AM
I already have that installed, but when I try to run Maven from Eclipse on the pom I get:

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.pentaho:pat:war:0.6
[WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-changelog-plugin @ org.pentaho:pat:0.6, /home/sgoldsmith/workspace/PentahoAnalysisTool/pom.xml
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.125s
[INFO] Finished at: Fri Mar 19 11:14:59 EDT 2010
[INFO] Final Memory: 2M/119M
[INFO] ------------------------------------------------------------------------

But nothing generates.

bugg_tb
03-19-2010, 11:45 AM
the finished product should be in the /target directory. That being said, hudson has the latest trunk build, so it wont be any different :)

sgjava
03-19-2010, 02:07 PM
It's more for debugging purposes then to build the latest release. I'd like to be able to troubleshoot some of the issues I'm running into to provide better bug submissions.

bugg_tb
03-19-2010, 02:08 PM
Cool, thanks for that.

sgjava
03-19-2010, 02:08 PM
I get an empty structure:

target
gwt
WEB-INF

bugg_tb
03-19-2010, 02:13 PM
To build and debug I normally do....

mvn clean jetty:run-exploded

Which should build the project and then attach a remote debugger to the instance to hit the breakpoints etc.

Tom

sgjava
03-19-2010, 04:32 PM
Running from command prompt now and libs are downloading. Maybe this is an issue with the m2eclipse plugin?

bugg_tb
03-19-2010, 08:26 PM
The eclipse properties will allow you to set an external binary which isn't a bad idea ;)

sgjava
03-22-2010, 03:08 PM
I was able to use m2eclipse plugin with external maven 2.2.1 and use debug as to launch the app, when I set break points it doesn't break. Do you need to attach with a remote debugger?

bugg_tb
03-22-2010, 03:31 PM
you can't debug jetty on the client side, you have to debug hosted mode which is gwt:debug.

cheers

Tom

sgjava
03-22-2010, 03:56 PM
[INFO] Listening for transport dt_socket at address: 8000
[ERROR] Debugger failed to attach: handshake failed - received >GET / HTTP/1.1< - excepted >JDWP-Handshake<

Going to localhost:8000

sgjava
03-22-2010, 04:01 PM
Sorry about that, I created a Remote Java Application and can connect to 8000, but how do I access the web front end or am I stuck using just unit tests?

bugg_tb
03-22-2010, 04:47 PM
ack, I forgot you're on 64bit ubuntu, this is the bit thats a complete PITA, you need to install 32bit java, cause the legacy hosted mode we are currently stuck with doesn't have 64bit capabilities,

http://blog.schuerrer.org/gwt-hosted-mode-on-64-bit-ubuntu

I haven't tried this blog post, but it looks about right. (I wouldn't be offended if you gave up at this point ;) )

Once thats installed, gwt:run should give you a running non-debugging environment. gwt:debug, as I said earlier should give you a gwt gui which allows you to debug the front end.

Cheers

Tom

sgjava
03-22-2010, 05:04 PM
Yes, I got the 32 bit hosted mode error. I'll try the post and see if I can get it working. I'm close...

pstoellberger
03-24-2010, 12:05 PM
if you just want to build it you can run:
mvn clean package , that will output a WAR file
debugging would be:
mvn gwt:debug and then attach with the remote java app

i'm using a 64bit as well, but Mac OS X... think i've done it on a Ubuntu 9.10 as well though

looking forward to get rid of the hosted mode with PAT 2.0! this thing is just a mess :-)