Re: Help with converting existing ant build to maven is required - forking

2014-05-01 Thread Ron Wheeler
Never used optional. What classes were missing when you used provided? http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html mentions that the transitive dependencies are not available if you use provided. You will have to add any dependencies that your code

Re: Help with converting existing ant build to maven is required - forking

2014-05-01 Thread Ron Wheeler
If there are specific suggestions or questions about the maven blog articles (from anyone), I would be grateful to have them. They were written rather quickly to explain a technique that we found useful. People may have to read more than one of the maven articles to get the gist of what we do.

Re: Help with converting existing ant build to maven is required - forking

2014-04-30 Thread Maxim Solodovnik
I'm afraid I don't understand your advice :( Sorry maybe you have example project available? Or maybe you can take a look at my project parent http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/pom.xml?revision=HEADview=markup util

Re: Help with converting existing ant build to maven is required - forking

2014-04-30 Thread Ron Wheeler
I don't have time to look at code and projects for free. If you need consulting to move forward, there are others here that do Maven for a business and can help you better than I can. Have you tried making the red5 scope provided. What does this do to your build? Does it get eliminate the red5

Re: Help with converting existing ant build to maven is required - forking

2014-04-30 Thread Maxim Solodovnik
Thanks for your time I have started with making red5 provided but the build failed since necessary classes were not found. May be is there any way to provide dependency before build ... If not I will try to create optional dependency and another one subproject, not sure if it will work. I

Re: Help with converting existing ant build to maven is required - forking

2014-04-30 Thread Maxim Solodovnik
Make the dependency optional seems to help :) On Thu, May 1, 2014 at 7:43 AM, Maxim Solodovnik solomax...@gmail.comwrote: Thanks for your time I have started with making red5 provided but the build failed since necessary classes were not found. May be is there any way to provide dependency

Re: Help with converting existing ant build to maven is required - forking

2014-04-29 Thread Ron Wheeler
Can you describe the forking Maven problem in more detail. What does it do that you don't want and what does it not do that you need. Is there anything about your build that is different from the thousands of projects that use Maven to build Tomcat applications? Have you looked at using Maven

Re: Help with converting existing ant build to maven is required - forking

2014-04-29 Thread Maxim Solodovnik
Hello Ron, I'll take a look at izPack as an alternative to assembly plugin (which seems to be able to create artifact similar to the current being created by ant) Currently I'm trying to build all jars/war/swf files need to be packed (by assembly plugin or izPack) Here is the stripped output of

Re: Help with converting existing ant build to maven is required - forking

2014-04-29 Thread Maxim Solodovnik
Additional question: Is it possible to exclude compile time dependency (with all transitive sub-dependencies) form war libraries? (without listing libraries one by one) On Tue, Apr 29, 2014 at 9:44 PM, Maxim Solodovnik solomax...@gmail.comwrote: Hello Ron, I'll take a look at izPack as an

Re: Help with converting existing ant build to maven is required - forking

2014-04-29 Thread Ron Wheeler
Where will the transitive dependencies come from? There may be ways to do what you want. Ron On 29/04/2014 1:44 PM, Maxim Solodovnik wrote: Additional question: Is it possible to exclude compile time dependency (with all transitive sub-dependencies) form war libraries? (without listing

Re: Help with converting existing ant build to maven is required - forking

2014-04-29 Thread Maxim Solodovnik
Here is the structure: Openmeetings Util project has compile time dependency Red5 server Almost all other projects are dependent on Openmeetings Util and Red5 server (compile time) But When I'm creating war file in Openmeetings Web project I need to remove Red5 server and all it dependencies

Re: Help with converting existing ant build to maven is required - forking

2014-04-29 Thread Ron Wheeler
So, as far as Maven is concerned, Red5 is scope provided. You want it to reference it for compiling but should not put its classes in the jar or war since you are going to sneak it into the package without Maven noticing. Pretty standard problem. We make a lot of aggregation jars that are

Re: Help with converting existing ant build to maven is required - forking

2014-04-29 Thread Barrie Treloar
On 30 April 2014 11:54, Maxim Solodovnik solomax...@gmail.com wrote: Here is the structure: Openmeetings Util project has compile time dependency Red5 server Almost all other projects are dependent on Openmeetings Util and Red5 server (compile time) But When I'm creating war file in