Hi,

fhomasp wrote:

> 
> 
> So different dependencies in different profiles are going to be disallowed
> then?  I do remember that you're not that much of a profile fan.  I fully
> agree here.
> 
> So what might happen if I build a war with java 5 and deploy it on a
> server using java 6?

Nothing :)

The problem is that the profile activation is happening on the Java version 
used to build the current artifact and not based on the target runtime. E.g. 
somebody decides that he uses a dependency to rhino only in a Java 5 
profile, because it is included in Java 6. Now, if the project is build with 
Java 6, but with built target Java 5, the rhino dependency will be missing 
and you will not even notice it unless you actually try to run on a Java 5 
runtime. If you've delivered a war referencing a dependency with such a 
profile it might be simply broken.

Using deps in a profile can be convenient to build e.g. debug versions that 
contain additional diagnostic stuff or support a special debug environment, 
but in general it generates a lot of trouble if used with too less knowledge 
about the consequences.

- Jörg



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to