Eugene,

Am looking at the tutorial here
http://maven.apache.org/guides/getting-started/index.html under the section
"How do I build more than one project at once?".

It implies that the "Maven" way is to have a pom.xml with packaging type pom
at the level that your project folders are at. In eclipse this would mean
having a pom.xml at the root level of your workspace, with subfolders for
each project.

Is this the m2eclipse way of doing things? Normally if you have any
resources (apart from project folders) at the root level of your workspace
they wont get picked up at all so this seems to be against the eclipse way.

Any ideas?

Thanks again
Murray


On Fri, Oct 17, 2008 at 10:50 AM, Murray Waters <[EMAIL PROTECTED]>wrote:

> Hi Eugene,
>
> Thanks for your quick response. I'll have a go at doing it this way.
>
> Murray
>
> On Fri, Oct 17, 2008 at 10:48 AM, Eugene Kuleshov <[EMAIL PROTECTED]> wrote:
>
>> Murray,
>>
>>  This is more like a Maven question and you would get better answer in the
>> Maven user mailing list.
>>
>>  From the top of my head you can't make jar project depend on war project,
>> simply because .war can't be put into the classpath. So, you have to
>> restructure your war project and move all shared classes into some "common"
>> project with packaging jar that would be used between your "war" and "batch"
>> projects.
>>
>>  regards,
>>  Eugene
>>
>>
>>
>> Murray Waters wrote:
>>
>>> Hi all,
>>>
>>> I think i'm trying to achieve something fairly simple. I have an existing
>>> m2eclipse project (lets call it "MyProject") that is working well with
>>> packaging of war.
>>>
>>> It has its dependencies listed in the POM and everything is working well.
>>>
>>> I now want to create a second project (lets call it "MyProjectBatch")
>>> with packaging of jar that is dependent on the war project as above.
>>>
>>> So when I am finished there will be two eclipse projects in my workspace,
>>> one called "MyProject" and a second called "MyProjectBatch".
>>>
>>> What is the way to do this? I couldn't really find anything in the
>>> documentation.
>>>
>>> Thanks
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>   http://xircles.codehaus.org/manage_email
>>
>>
>>
>

Reply via email to