10 Nisan 2023 Pazartesi

tomcat plugin

Örnek
Şöyle yaparız
<!-- using tomcat plugin for deployment -->
<plugin>
  <groupId>org.apache.tomcat.maven</groupId>
  <artifactId>tomcat7-maven-plugin</artifactId>
  <version>2.2</version>
  <configuration>
    <url>http://localhost:8080/manager/text</url>
    <!-- tomcat server username and password -->
    <!-- this user must have the role 'manager-script' in the conf/tomcat-users.xml -->
    <username>username</username>
    <password>password</password>
    <!-- application context -->
    <path>/jaxrs-demo</path>
  </configuration>
</plugin>
redeploy goal
Şöyle yaparız
# Deploying on Apache Tomcat
mvn clean package tomcat7:redeploy

# Verify Deployment using a browser, go to:
http://localhost:8080/jaxrs-demo/api/hello

Hiç yorum yok:

Yorum Gönder

Local Snapshot Kullanmak

Örnek Şöyle yaparız <repository> <id>snapshot-repository</id> <name>Maven2 Snapshot Repository</name> &l...