Hi Jörg,
Thanks for your answer, I understand what you mean.
So I tried to add to the *parent's pom* this :
<activation>
<activeByDefault>true</activeByDefault>
</activation>
after mvn clean install I get this strange error :
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The -uriroot option must specify a pre-existing directory
I get the same if I put it in my settings.xml
I'm using : apache-maven-2.1.0-M1
Marc.
Jörg Schaible a écrit :
> Hi Marc,
>
> Marc Schneider wrote:
>> Hello Brett,
>>
>> The error I have is :
>>
>> [INFO] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: Cannot invoke
>> Tomcat manager
>>
>> And then
>> java.io.IOException: Server returned HTTP response code: 401
>>
>> which means "unauthorized".
>>
>> In fact this clearly shows that some parameters are missing.
>>
>> So to remember, in my pom.xml I have :
>>
>> <profile>
>> <id>testLocal</id>
>> <activation>
>> <activeByDefault>true</activeByDefault>
>> </activation>
>> <properties>
>> ...
>> </properties>
>> </profile>
>>
>> Running : mvn -P testLocal clean tomcat:deploy is OK
>> Running : mvn clean tomcat:deploy fails with error above
>>
>> So I don't understand why the 2nd option fails as testLocal profile
>> should be taken by default, AFAIK.
>
> So, if I understand you right, you do not activate the profile by default in
> the parent (where all the interesting elements are set) and in the local POM
> you simply try to activate it?
>
> This won't work. Profiles are handled on POM level, i.e. when you local POM
> is processed the profiles of the parent have been "resolved" already.
>
> - Jörg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]