Thanks for the quick response. I'll give that a try. 

Chris Sitkei
Programmer Analyst, ITS
Oregon Department of Corrections
(503) 373-2068
[email protected]




-----Original Message-----
From: Olivier Lamy [mailto:[email protected]] 
Sent: Wednesday, January 13, 2010 1:51 PM
To: [email protected]
Subject: Re: [mojo-dev] Question about Tomcat Maven Plug-in - server config

You can use something like in the tomcat mojo configuration :

<url>http://${ip}:${port}/manager</url>

And in settings.xml configure in a profile <properties>
  <ip>localhost</ip>
  <port>8080</port>
</properties>

BTW I suggest to you using run mojo rather than the deploy. run mojo is faster 
for local dev.

--
Olivier

2010/1/13 Sitkei Chris L <[email protected]>:
>
> Is it possible to reference a different tomcat location using your 
> plug-in but setting up the server location within the Maven 
> settings.xml server section? We have many different developers in my 
> shop, and we all run our own local tomcat instances, and not all of us 
> use port 8080. We were hoping to have only 1 POM entry and then each 
> of us set up our settings.xml file differently, specifying where our local 
> tomcat instance is.
>
> I tried things like the following, but the url I enter in the 
> settings.xml file seems to be ignored.
>
> Here is what I setup in my project POM...
>
> <plugin>
>         <groupId>org.codehaus.mojo</groupId>
>         <artifactId>tomcat-maven-plugin</artifactId>
>         <version>1.0-SNAPSHOT</version>
>         <configuration>
>                 <server>tempTest</server>
>         </configuration>
> </plugin>
>
> And in my Maven settings.xml file I have the following...
>
> <server>
>         <id>tempTest</id>
>         <username>admin</username>
>         <password></password>
>         <configuration>
>                 <url>http://localhost:8085/manager/</url>
>         </configuration>
> </server>
>
> Is this even possible, or is hard coding the url into the POM file the 
> only way ?
>
> Thanks for your help!
>
> Chris
>
>
>



--
Olivier

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

    http://xircles.codehaus.org/manage_email



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

    http://xircles.codehaus.org/manage_email


Reply via email to