java - Module project is not declared as war package, but get error 'web.xml is missing and <failOnMissingWebXml> is set to true' in eclipse -


module project declared war package before in pom.xml, removed row <packaging>war</packaging>, can expected xx.jar when run command line mvn install, however, i'm still error web.xml missing , <failonmissingwebxml> set true in eclipse.

i have applied 'force update of snapshot/releases' several times it's meaningless.


pom.xml

<?xml version="1.0"?> <project     xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"     xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">     <modelversion>4.0.0</modelversion>     <parent>         <groupid>com.xx</groupid>         <artifactid>xxx</artifactid>         <version>0.0.1-snapshot</version>     </parent>      <artifactid>xxx</artifactid>     <name>xxxx</name>     <url>http://maven.apache.org</url>     <properties>         <project.build.sourceencoding>utf-8</project.build.sourceencoding>     </properties>     <dependencies>         <dependency>             <groupid>xxxx</groupid>             <artifactid>xxxx</artifactid>             <version>0.0.1-snapshot</version>         </dependency>     </dependencies> </project> 

i found there web service descriptor there shouldn't be. didn't find way can delete descriptor copy source files folder, create workspace in eclipse , import project. works well.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -