Maven not putting war file to correct folder

Here an snippet pom.xml

<build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.2</version>
        <configuration>
          <webappDirectory>C:/Users/Tom/Desktop</webappDirectory>
        </configuration>
      </plugin>
    </plugins>
  </build>

It creates the war file to my target folder inside eclipse workspace. It should put the war folder to my desktop, but it only puts WEB-INF, META-INF folders there. Why?

Answers


You should use the outputDirectory option, not the webappDirectory

see http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html


Need Your Help

fgetcsv insert values order by $fileop

php mysql csv fgetcsv

I have a CSV file with 3 columns lastname, firstname, matricule and I would like to import them with order by matricule

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.