Alex Rivera | Logout

Maven: how to export project with sources and dependencies

Asked 2009-11-17T20:29:38.743
28

I have Maven project with dependencies in repo and stuff. I want to "export" its sources with all dependencies so that I can successfully open it in IDE without Maven running on a machine.

When packaging project into war file, it has all dependencies packed with it.

So I want to have all that dependencies plus my sources gathered in one place, which can be opened with IDE (Eclipse or IDEA) all those libraries detected?

Edit
Report

1 Answer

0

War with sources

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <configuration>
      <webResources>
        <resource>
          <directory>${build.sourceDirectory}</directory>
          <targetPath>src</targetPath>
        </resource>
      </webResources>
    </configuration>
  </plugin>
answered 2013-08-02T15:36:26.970

Your Answer