Re: java2iiop (Visibroker)

2006-11-16 Thread TimHedger
Jim, I have got a working Visibroker plugin. It works in two ways - pure Java or by running Visibroker supplied scripts from Java. Having both has been necessary for me to get it work with JDK 1.5 - we don't have Visibroker for 1.5 (we're in the process of eliminating Visibroker altogether and

Re: Build time classpath using my java plugin

2006-07-12 Thread TimHedger
OK, so now I'm using the exec-plugin instead of my own code - great. But I've lost the control I had over when the exec step happened. I am using the plugin to generate SOAP wrappers for some Java code using glue (themindelectric). This step involves running a Java class with certain parameters

Re: Build time classpath using my java plugin

2006-07-11 Thread TimHedger
You're right - I did some unnecessary work! (I took my approach from the idlj plugin, that basically puts some wrapper stuff around running the main method on a Java class - I guess that was done that way for convenience rather than needing lots of config in the pom). Anyway, I've dumped my

Re: Build time classpath using my java plugin

2006-07-11 Thread TimHedger
Doh! (Thank you) -- View this message in context: http://www.nabble.com/Build-time-classpath-using-my-java-plugin-tf1914923.html#a5281234 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL

Build time classpath using my java plugin

2006-07-09 Thread TimHedger
I've written a plugin (in Java) that explicitly invokes the main method of a Java class directly from within the jvm that maven is already running. My plugin is behaving/configured as I expect, but I have a classpath problem when control switches from my plugin code to the main method of the

Getting the classpath right in a java plugin

2006-06-28 Thread TimHedger
I've written a java plugin (for java Visibroker CORBA tasks) but am having difficulty with the classpath. I'm getting hold of the classpath using some code I found in the idlj-maven-plugin: // Get current class path URLClassLoader cl = (URLClassLoader)

Re: Getting the classpath right in a java plugin

2006-06-28 Thread TimHedger
I'm guilty of not having searched thoroughly enough before this post - apologies. For others who find this post in search of answers themselves, there is another thread in this forum that deals with exactly this issue. -- View this message in context:

Re: Getting the classpath right in a java plugin

2006-06-28 Thread TimHedger
Try clicking on the underlined word thread in my post ! :) -- View this message in context: http://www.nabble.com/Getting-the-classpath-right-in-a-java-plugin-tf1861200.html#a5085121 Sent from the Maven - Users forum at Nabble.com.

Re: java2iiop (Visibroker)

2006-06-27 Thread TimHedger
Thanks Dan - got most of it working now. -- View this message in context: http://www.nabble.com/java2iiop-%28Visibroker%29-tf1846831.html#a5071927 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail:

Re: java2iiop (Visibroker)

2006-06-26 Thread TimHedger
Dan, I'm on the way to building this. Just one question. The steps in the process are: 1 compile java interface files 2 run java2iiop process to generate more classes 3 compille the generated classes with my own code 3 is obviously the normal compile phase I would expect 2 to be

Re: Can't get jni working based on example configuration

2006-06-25 Thread TimHedger
Tim - Now another repository is missing I guess - where do find this one? (And how do I work out which repositories I need for the build? I thought the whole point of maven was that the sufficient information to build something would be included in its pom.xml?) This is my repositories section

Re: Can't get jni working based on example configuration

2006-06-25 Thread TimHedger
Dan, I've added in the repository you mentioned to my settings.xml file (relevant section included in my reply post to Tim on building the code from scratch), but I'm now getting a different error: [INFO] [ERROR] BUILD

Re: Can't get jni working based on example configuration

2006-06-25 Thread TimHedger
Tim/Dan, Thank you both for your help on this. I now have both the plugin and my own code (using the modified plugin) working. I had to remove a couple of repository entries from my pom, then all the errors in both builds went away. Thanks Tim -- View this message in context:

java2iiop (Visibroker)

2006-06-25 Thread TimHedger
Has anyone seen a plugin, or configured one of the existing plugins to do java to iiop generation using maven? (Steps are compile an interface using javac, run java2iiop to generate stubs, then compile stubs along with your own dependent code) -- View this message in context:

Re: java2iiop (Visibroker)

2006-06-25 Thread TimHedger
Thanks Dan - I've already started work on it. Given how proprietary it is (Visibroker) is there any point in me contributing it back if I do get it working? -- View this message in context: http://www.nabble.com/java2iiop-%28Visibroker%29-t1846831.html#a5041649 Sent from the Maven - Users forum

Re: Can't get jni working based on example configuration

2006-06-24 Thread TimHedger
Dan - thanks again - almost there with what I'm trying to do. Two problems left - I haven't been able to build the plugin with your change in. I've pulled the code out of the repository through my proxy with: svn checkout https://svn.codehaus.org/mojo/trunk/mojo/maven-native/native-maven-plugin

Re: Can't get jni working based on example configuration

2006-06-24 Thread TimHedger
Still struggling with the build - I now have the whole maven-native source tree, and I get this error: : mvn compile [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/mojo/9/mojo-9.pom [WARNING] Unable to get resource from repository central

Re: Can't get jni working based on example configuration

2006-06-22 Thread TimHedger
Thank you for the feedback so far. I've adopted the pom.xml changes you suggested. I'd love to look at the Solaris jni example - how do I get it? (i.e. how do I check out the jni example on solaris under native-maven-plugin/src/it/jni?) The jni step runs, but I'm having problems with

Can't get jni working based on example configuration

2006-06-21 Thread TimHedger
I'm trying to build using the mojo native plugin and to build a jni file from a compiled class. In my existing build process this is the command I use: /usr/java1.4.1_02_32/bin/javah -jni -classpath /home/hedgert/work/javautil/classes -o

Accessing Project Object Model in Java Plugin

2006-06-18 Thread TimHedger
I am developing a Java plugin, but cannot find any documentation or information about how to access the POM. Specifically, I want to get hold of the directory locations for source code - but presumably you can actually get hold of all sorts of properties of the Project from within Java in the