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]
