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

1

I defined in the POM of my project the following plugin in the 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 generate EAR using Maven (mvn clean install, for example) it performs what is set in the POM (the folder foo 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 deployments) ...

Is there any configuration to be made in Eclipse so that all features are synchronized? I do not want to be building the package because I will waste a lot of time waiting for the build, since in Eclipse any modifications I make to my pages are already synchronized on the application server.

    
asked by anonymous 28.06.2018 / 16:34

0 answers