The plugin changed its Maven coordinates (a.k.a GAV) over time:
- version <= 3.1.1
- available under org.glassfish:maven-glassfish-embedded-plugin
- version >= 3.1.2
- available under org.glassfish.embedded:maven-glassfish-embedded-plugin
The goal “glassfish-embedded:run” has changed its way of reading the deployment configuration in the latest version: 4.0.
Projects using previous versions of the plugin will stop working with this goal.
Here is an example of the “old behavior”:
The new behavior is as follow:
The new version looks for execution of the deploy goal and the associated configuration, when running the goal ‘run’.
Both would allow you to run the latest version of the glassfish-embedded jar, you’d only need to add it as a plugin dependency: