Eclipse's Wildfly Adds Maven SNAPSHOT to Web Context

I had a new problem when we switched to the Wildfly 8.x server in eclipse.

My project is called PayloadSvc. The first part of pom.xml looks like this:

<modelVersion>4.0.0</modelVersion>
<groupId>PayloadSvc</groupId>
<artifactId>PayloadSvc</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>

Later in pom, I have this:

<build>
    <finalName>PayloadSvc</finalName>

In eclipse, I also have a context root in the web project settings specified in PayloadSvc

However, when it deploys in Wildfly, it deploys as follows:

Registered web context: /PayloadSvc-0.0.1-SNAPSHOT

I cannot get it to delete the "-0.0.1-SNAPSHOT" part of the web context.

Oddly enough, other projects at the same workstation work correctly even with the same pom data (with the appropriate context, groupId, artifact identifier and the same version attribute, of course).

I am using the STS version of Eclipse Neon.

Thanks for any advice you may have.

+4
4

. , WEB-INF\jboss-web.xml :

<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
    <context-root>PayloadSvc</context-root>
</jboss-web>

, . , , .

+9
  • \[root-of-your-project]\.settings\org.eclipse.wst.common.component, deploy-name context-root.
  • : Window > Show View > Server
  • , Add and Remove.... .
  • .
  • , , WildFly, [wildfly-path]\[standalone-path]\deployments, .
  • .
+2

<name>PayloadSvc</name> pom ( , , , )?

, , mvn install? ?

+1

Eclipse Neon:

1 Eclipse Neon " " .

2 org.eclipse.wst.common.component, (, - SNAPSHOT).

3 "0.0.1-SNAPSHOT" Wildfly.

0

Source: https://habr.com/ru/post/1653842/


All Articles