Execution defined in pom is not performed when publishing project in Eclipse

Asked

Viewed 21 times

1

I set in the POM of my project the following plugin in build:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-dependency-plugin</artifactId>
  <version>2.8</version>
  <executions>
    <execution>
      <id>install-package</id>
      <phase>process-resources</phase>
      <goals>
        <goal>unpack</goal>
      </goals>
      <configuration>
        <artifactItems>
          <artifactItem>
            <groupId>projeto.com</groupId>
            <artifactId>foo</artifactId>
            <version>1.0.0</version>
            <outputDirectory>${project.build.directory}/${project.artifactId}/public</outputDirectory>
            <includes>foo/**/*</includes>
          </artifactItem>
        </artifactItems>
      </configuration>
    </execution>
  </executions>
 </plugin>

When I run the EAR using Maven (mvn clean install, for example) it runs what is defined in the POM (the foo folder and its subdirectories is created in the EAR). But when I add the project to be started in Jboss inside Eclipse this execution is not done (the "foo" folder is not created in Jboss’s Deployments)...

Are there any settings to be made in Eclipse so that all resources are synchronized? I don’t want to keep building the package because I will waste a lot of time waiting for the build, since in Eclipse any modification I make on my pages is already synchronized on the application server.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.