1

I create a new maven web project in intellij. I add tomcat server for it and in deployment section of server add my artifact.

My project name is spline and output directory in project structure-aritfact is:

C:\Users\abasaleh\Desktop\myChart\spline\out\artifacts\spline.

when I run it, I encounter with this alert:

C:\Users\abasaleh\Desktop\myChart\spline\out\artifacts\spline\spline.war not found for the web module.

and this server error:

[2014-02-24 01:58:34,679] Artifact spline: Error during artifact deployment. See server log for details.

please help me. thankes.

my pom.xml is:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>spline</groupId>
<artifactId>spline</artifactId>
<version>1.0-SNAPSHOT</version>


</project>
hossein ketabi
  • 480
  • 7
  • 19
  • Can you show us the content of you pom.xml please? – Aurélien Thieriot Feb 24 '14 at 10:35
  • 1
    I put pom.xml in question – hossein ketabi Feb 24 '14 at 10:44
  • I think by default, Maven will generate a Jar file. Can you try to add this line: war – Aurélien Thieriot Feb 24 '14 at 10:45
  • I add it in pom.xml . but when do clean&packege the project, I encounter with this error: **[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project spline: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]** – hossein ketabi Feb 24 '14 at 10:50
  • You need to have directory structure like /src/main/webapp/WEB-INF with at least empty web.xml file in it, or specify webxml attribute in maven-war-plugin configuration and provide different web.xml location (http://stackoverflow.com/questions/5351948/webxml-attribute-is-required-error-in-maven) – stasal Feb 24 '14 at 10:55

0 Answers0