<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote
 cite="mid:19758da0908041631v6040eab7gae04b3d1bcbf856d@mail.gmail.com"
 type="cite">
  <div class="gmail_quote">
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">
    <div class="im">
    <blockquote type="cite">
      <pre>
Again, we need to start a wiki page for this :-)
  </pre>
    </blockquote>
    </div>
One thing that should help is that we know integrate with m2eclipse
allowing you to at least use maven.<br>
    <br>
I still don't know (haven't had time to look into it) how we are going
to handle (in any IDE) that there are <br>
multiple deployment/configuration descriptors in one project - most
non-jbosstools-tools assumes<br>
a specific structure (i.e. persistence.xml is in META-INF and not
called something else) - but maybe<br>
maven's profile feature can be used for it....something to explore at
least.
    </div>
  </blockquote>
  <div><br>
I think Maven 2 profiles are the answer, or at least to cover 90%. A
tool should be able to do property replacement between Maven 2
properties and the replacement tokens in the files. I'm not sure if
this is m2eclipse's responsibility or JBoss Tools (users really don't
need to know the details here). This works because Maven 2 behavior is
predictable and well defined. With Ant, it's just wild west which files
get filtered and where the tokens come from. And the Seam 2 examples
use Ant in the most gnarly way.<br>
  <br>
As for the last 10% (or however many edge cases there are), we can
address those on a case-by-case basis in a way that impacts the tooling
the least. In the worst case scenario, you have to comment out some
code in the source files to support one app server or the other. But I
think this is acceptable in small amounts given that once you decide to
target an app server, you keep using the same one while developing (so
it's not something you have to do over and over).<br>
  <br>
Let's just push profiles as far as they are willing to go. We'll be
Maven ninjas by the time the examples are all setup, no doubt.<br>
  </div>
  </div>
</blockquote>
Maven profiles doesn't solve this afaik. It only generates the "right"
layout in the deployment location which is an area an IDE ignores.<br>
<br>
If Maven has support for maintaining an "intermedate" location that the
IDE think is the actual source/resource being deployed will work.<br>
<br>
Again - I need to play more with this, but a few months ago it was
still a problem (i.e. the IDE just become a fancy notepad :)<br>
<br>
/max<br>
</body>
</html>