java - Maven not looking inside project directory for web.xml when running from eclipse -


so i'm upgrading really, old project maven , been absolute nightmare. i'm planning on upgrading spring boot , spring mvc next, i'm hesitant start blowing directory structure until step.

my web.xml file located @ /workspace/project_name/web/web-inf/web.xml, , i'd rather not start moving directories around conform maven's standard directory layout.

in pom have

     <plugin>         <artifactid>maven-war-plugin</artifactid>         <version>3.1.0</version>         <configuration>          <webxml>/web/web-inf/web.xml</webxml>           <failonmissingwebxml>true</failonmissingwebxml>         </configuration>       </plugin> 

originally m2eclipse complaining errors related not finding pom, stopped when added path in <webxml>.

when right click on pom run maven build, base directory set ${workspace_loc:/project_name}, project_name being actual project name. i've tried hardcoding file system directory, no matter keeps looking in c drive:

the specified web.xml file 'c:\web\web-inf\web.xml' not exist

any idea i'm doing wrong here? there configuration m2eclipse missed somewhere?

try out slash @ beginning. maven calculate path project root.

<webxml>web/web-inf/web.xml</webxml>

with slash @ beginning, maven considers absolute path.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -