NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
smozely
Joined: 06 Oct 2009 Posts: 29
|
Posted: Tue Oct 06, 2009 9:19 pm Post subject: Netbeans RCP ... ANT vs Maven |
|
|
Hi everybody,
We have decided to build a workbench style application for weather forecasting using Netbeans.
One of our first decisions has been that we would like to use Ant for building the project because it still seems to have better integration to the IDE than Maven does.
We are typically a Maven shop.
But we made this decision since all the dev's on this project are both new to the Netbeans IDE and to Netbeans RCP we want to use everything the platform can help us with.
One of the first problems we have encountered is with Dependency management when using Ant, we use a project called GeoTools that builds with maven and depends heavily on it (they have split the project into more than 20 modules.)
What I was wondering is if it would be possible to create a Library wrapper module using Maven, and then including it with the rest of our project (even if we just depend directly on a NBM file) ... so we know how to build the NBM file but I can't see how to add it as a dependency to a ANT Netbeans project ... if I select 'add new module dependency' I can't see how to get my maven created NBM module into the list.
Not sure if thats very clear but any help would be really appreicated.
Or peoples opinion of building a RCP app with Maven vs ANT would also be good ... note we are intending to use the Jelly/Jemmy tools for automated testing, which was easy enough to get working using Ant
Steve |
|
| Back to top |
|
 |
Fabrizio Giudici Posted via mailing list.
|
Posted: Tue Oct 06, 2009 11:38 pm Post subject: Netbeans RCP ... ANT vs Maven |
|
|
smozely wrote:
| Quote: | What I was wondering is if it would be possible to create a Library wrapper module using Maven, and then including it with the rest of our project (even if we just depend directly on a NBM file) ... so we know how to build the NBM file but I can't see how to add it as a dependency to a ANT Netbeans project ... if I select 'add new module dependency' I can't see how to get my maven created NBM module into the list.
| First, I've just published a comment on Ant vs Maven with the Platform here:
http://weblogs.java.net/blog/fabriziogiudici/archive/2009/10/06/another-important-milestone-forceten-completely-mavenized-or
The mentioned ForceTen project is a complete, small NetBeans Platform
application made with Maven and you can check out the sources. For what
concerns creating wrapper libraries with Maven, check the mentioned
NbPwR project.
For using the NBMs in your Ant project, if you use NetBeans 6.7.1, a
simple way is to open the suite project properties, click on the "Add
cluster..." button and point to the cluster directory containing your
stuff. You can generate the cluster dir(s) of a Maven project - look at
the 'application' module in ForceTen, it creates clusters under
'target/forceten'. There are other ways, but at the moment I can't tell
you which is the better in your case. Probably after reading the cited
pointers you can tell us something more.
--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
address-removed - mobile: +39 348.150.6941 |
|
| Back to top |
|
 |
smozely
Joined: 06 Oct 2009 Posts: 29
|
Posted: Wed Oct 07, 2009 12:14 am Post subject: |
|
|
Cool, thanks for the response ... that seems to explain pretty well how I can use benifit from maven dependency management for my library wrappers ...
On the bigger question ... the feeling in my gut is that I'd like to use Maven if possible ... and your project proves it can be done on the scale we are looking at (and from your blog looks like you need it at that scale) ... I guess just the main concern is being able to functional test the app ... I know how to setup maven to do functional (or integration) testing. Have you done anything like this .. im talking about the Jemmy/Jelly stuff is there any experience using that in maven? ... or any idea if it should be simple or hard? (at the moment im having an annoying problem with it where a test works in one module but not another, exactly the same test thats just bringing up the app, and class path issues seem to be killing me) |
|
| Back to top |
|
 |
Fabrizio Giudici Posted via mailing list.
|
Posted: Wed Oct 07, 2009 12:30 am Post subject: Netbeans RCP ... ANT vs Maven |
|
|
smozely wrote:
| Quote: | Cool, thanks for the response ... that seems to explain pretty well how I can use benifit from maven dependency management for my library wrappers ...
On the bigger question ... the feeling in my gut is that I'd like to use Maven if possible ... and your project proves it can be done on the scale we are looking at (and from your blog looks like you need it at that scale) ... I guess just the main concern is being able to functional test the app ... I know how to setup maven to do functional (or integration) testing. Have you done anything like this .. im talking about the Jemmy/Jelly stuff is there any experience using that in maven? ... or any idea if it should be simple or hard? (at the moment im having an annoying problem with it where a test works in one module but not another, exactly the same test thats just bringing up the app, and class path issues seem to be killing me)
| Not yet, as the most sophisticated tests are in projects that I'm still
converting. I suppose you run into classpath problem the first time you
try, but I don't see why they shouldn't be solvable.
--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
address-removed - mobile: +39 348.150.6941 |
|
| Back to top |
|
 |
Richard Michalsky Posted via mailing list.
|
Posted: Wed Oct 07, 2009 12:06 pm Post subject: Netbeans RCP ... ANT vs Maven |
|
|
Fabrizio Giudici wrote:
| Quote: | smozely wrote:
| Quote: | What I was wondering is if it would be possible to create a Library
wrapper module using Maven, and then including it with the rest of
our project (even if we just depend directly on a NBM file) ... so we
know how to build the NBM file but I can't see how to add it as a
dependency to a ANT Netbeans project ... if I select 'add new module
dependency' I can't see how to get my maven created NBM module into
the list.
| For using the NBMs in your Ant project, if you use NetBeans 6.7.1, a
simple way is to open the suite project properties, click on the "Add
cluster..." button and point to the cluster directory containing your
stuff. You can generate the cluster dir(s) of a Maven project - look
at the 'application' module in ForceTen, it creates clusters under
'target/forceten'. There are other ways, but at the moment I can't
tell you which is the better in your case. Probably after reading the
cited pointers you can tell us something more.
| Or, if you want to start with .nbm file, just unpack it somewhere and
add unpacked folder with "Add cluster..." button.
Richard. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|