diff options
| author | Benjamin Culkin <scorpress@gmail.com> | 2024-10-14 11:32:09 -0400 |
|---|---|---|
| committer | Benjamin Culkin <scorpress@gmail.com> | 2024-10-14 11:32:09 -0400 |
| commit | df38659b7474d0cc00a125872b51cc399978a67f (patch) | |
| tree | 2be49090fb03278a14c34291580b4bf6fb98f4a3 | |
| parent | ba949758b37592fc967f9ffdb6c5d1b0c54c9313 (diff) | |
Add local deploy support
Add support to the POMusing maven profiles to deploy to local tomcat or
the live server
| -rw-r--r-- | wotonomy-web-test/pom.xml | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/wotonomy-web-test/pom.xml b/wotonomy-web-test/pom.xml index ce0ee17..a75012d 100644 --- a/wotonomy-web-test/pom.xml +++ b/wotonomy-web-test/pom.xml @@ -48,7 +48,22 @@ <version>1.0-alpha5-SNAPSHOT</version> </dependency> </dependencies> - + <profiles> + <profile> + <id>local</id> + <properties> + <deploy.serverURL>http://localhost:8080</deploy.serverURL> + <deploy.serverName>local-tomcat</deploy.serverName> + </properties> + </profile> + <profile> + <id>remote</id> + <properties> + <deploy.serverURL>https://blog.ashardalon.com/</deploy.serverURL> + <deploy.serverName>ashardalon-tomcat</deploy.serverName> + </properties> + </profile> + </profiles> <build> <finalName>wotonomy-web-test</finalName> <plugins> @@ -75,19 +90,17 @@ </dependency> </dependencies> </plugin> - <plugin> <artifactId>maven-project-info-reports-plugin</artifactId> <version>3.0.0</version> </plugin> - <plugin> <groupId>com.ashardalon</groupId> <artifactId>slim-tomcat-maven-plugin</artifactId> <version>1.1-SNAPSHOT</version> <configuration> - <serverURL>https://blog.ashardalon.com/</serverURL> - <serverName>ashardalon-tomcat</serverName> + <serverURL>${deploy.serverURL}</serverURL> + <serverName>${deploy.serverName}</serverName> <appPath>/wotonomy</appPath> <update>true</update> </configuration> |
