usnistgov / ucef-meta

WebGME Federate and Experiment Designer
MIT License
3 stars 3 forks source link

Deployment pom file shows error for plugin maven-antrun-plugin #7

Closed MartyBurns closed 6 years ago

MartyBurns commented 6 years ago

Version information

fa471820415e64d9deca0bc4981e754ba48c0852

Observed behavior

When importing xxx_deployment projects into eclipse, the following error is shown in the top level pom.xml file:

No marketplace entries found to handle maven-antrun-plugin:1.7:run in Eclipse. Please see Help for more information. The ant-run plugin allows for “ant” commands to be included in the pom file which, AFAIU, allows for directory creation and file copying.

This does not seem to be a problem for the Federates Exporter pom files, but is for the Deployment Exporter pom file.

Expected behavior

Should not have errors

Steps to reproduce issue

  1. Create a federate(federation)
  2. Do Federates Export
  3. Do Deployment Export
  4. Extract downloaded zip files
  5. Create a new eclipse workspace
  6. Import existing maven project from extracted project

The resulting XXX_exec project will show the error

MartyBurns commented 6 years ago

The problem can be resolved by wrapping the <plugins></plugins> tag in <pluginManagement></pluginManagement>.

See https://maven.apache.org/pom.html#Plugin_Management, and, https://stackoverflow.com/questions/6352208/how-to-solve-plugin-execution-not-covered-by-lifecycle-configuration-for-sprin

This can be resolved by adding the<pluginManagement></pluginManagement> to execution_pom.xml.ejs in the DeploymentExporter/Templates directory.

tpr1 commented 6 years ago

done in https://github.com/usnistgov/ucef-meta/pull/10