eclipse - maven goals, compiling and deploying to a server -


I am using Eclipse to manage a Maven project.

I have a special plugin in POM of this project that creates a file during the generated-ressources phase:

   & Lt; Version & gt; 3.2.1 & lt; / Edition & gt; & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; Step & gt; Generated resources & lt; / Step & gt; & Lt; Goals & gt; & Lt; Goal & gt; Acceleo-Collection & lt; / Target & gt; & Lt; / Targets & gt; & Lt; / Execution & gt; & Lt; / Hanging & gt; & Lt; / Plugin & gt;   

I have linked this plugin target to get the lifecycle to execute it during the compilation collection:

   & Lt; Version & gt; 1.0.0 & lt; / Edition & gt; & Lt; Configuration & gt; & Lt; LifecycleMappingMetadata & gt; & Lt; PluginExecutions & gt; & Lt; PluginExecution & gt; & Lt; PluginExecutionFilter & gt; & Lt; Group & gt; Org.eclipse.acceleo & lt; / Group & gt; & Lt; ArtifactId & gt; Maven & lt; / ArtifactId> & Lt; VersionRange & gt; [3.2.1,) & lt; / VersionRange & gt; & Lt; Goals & gt; & Lt; Goal & gt; Acceleo-Collection & lt; / Target & gt; & Lt; / Targets & gt; & Lt; / PluginExecutionFilter & gt; & Lt; Action & gt; & Lt; Execute / & gt; & Lt; / Action & gt; & Lt; / PluginExecution & gt; & Lt; / PluginExecutions & gt; & Lt; / LifecycleMappingMetadata & gt; & Lt; / Configuration & gt; & Lt; / Plugin & gt;   

When I do a clean project with eclipse, the project is compiled again and the file is well generated during the Eclipse compilation (I can find it in the target directory I am).

Now, I want to deploy my webapp on a Biscuit server. I am creating a badge server using Eclipse server view and I want to synchronize it and publish this project in this server I'm dragging and dropping.

This project is well positioned and I can launch the server and test my app.

However, the file that is required to be generated by the maven plugin has not been copied during publish ...

So my question is: why a Maven plugin The generated file is well prepared during the Eclipse compilation but is not posted on the server during the publication / synchronization of automated server management by Eclipse?

The answer is in your question because you only configured the plugin to run during the Eclipse Life seal , But you have missed adding excel to your build life cycle.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -