RE: [mevenide-user] POMs and profiles

"andy law \(RI\)" <[email protected]> Thu, 14 Feb 2008 20:53:20 -0000
Newsgroups gmane.comp.jakarta.turbine.maven.mevenide.user
Message-ID <B9D6BA5A5205AD4792AFD52A65CE06123DA234@ebre2ksrv1.ebrc.bbsrc.ac.uk>
Milos,

> 
> The only reason why it's in the pom is to mimick what the 
> default ant based web projects do. There the server type is 
> written to the nbproject/project.properties file and the 
> server instance id into the non-sharable 
> nbproject/private/private.properties.I've been told by the 
> web support guys that it's what most people want as most 
> webapps are developed against one particular appserver anyway.
> 

We all develop against tomcat - it's just that we have versions of 5.0,
5.5 and 6.0 available. We also have different copies of the tomcat
codebase at different paths and so anything developer-specific will
break any-one else's build. My head says that the server type and all
the other details are not project-specific and so shouldn't be anywhere
near the pom but, like you, I'm open to debate. There are many ways that
I and my gang may well be doing things wrong.


> In 3.1 I avoid creating a profile in pom, I only write the 
> server type property in the pom. That has the same effect but 
> writes much less content.

I noticed that when I switched to NB6. However, to add more mess to the
mix some of my guys are sticking to 5.5 for the meantime. Perhaps I need
to issue more dictats.


> 
> I'm open to discussion here, however under some circumstances 
> the web support in netbeans freaks out when no app server is 
> defined. There's always one server assigned to a ant based 
> project. I made it sort of optional, but it's still required 
> for deployment. features like visual web, webframeworks 
> support in general also require to have the server set. (not 
> currently supported in released version, but work in progress 
> already).
> 
> what about if you don't have the server set, the first time 
> you attempt to do "Run project", you get prompted for the 
> server to deploy to and the value is kept for the  current 
> IDE session? That way you don't need to persist anything in 
> pom or profiles..

If I try to run without a server set, I get a dialog that tells me that
I have to set one before I can run. Perhaps I'm not holding my mouth
right.

I'll try again tomorrow when I'm back at work and see if I can get the
behaviour you are describing.


While I'm on, a big thanks from me and from my team for the job you've
done with this though. The netbeans/maven integration has saved us a
load of grief and time so please don't think I'm complaining. If we have
to keep on with manual tinkering around the pom and profiles then
so-be-it.
Later,

Andy

-------------
Yada, yada, yada...

Roslin Institute is a company limited by guarantee, registered in
Scotland (registered number SC157100) and a Scottish Charity (registered
number SC023592). Our registered office is at Roslin, Midlothian, EH25
9PS. VAT registration number 847380013.

The information contained in this e-mail (including any attachments) is
confidential and is intended for the use of the addressee only.   The
opinions expressed within this e-mail (including any attachments) are
the opinions of the sender and do not necessarily constitute those of
Roslin Institute (Edinburgh) ("the Institute") unless specifically
stated by a sender who is duly authorised to do so on behalf of the
Institute.
 

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email