Open amclin opened 5 years ago
For users with Maven 3.2.1 and later, the message specifically for version
can be eliminated by replacing ${npmversion}
with a property named ${revision}
. Several 'allowed' properties have been created, but only for use in the <version>
field.
This doesn't solve groupId
or artifactId
Alternatively we could temporarily copy the pom.xml
and do string replacement instead of using Maven's properties system, but that is such a messy approach.
Is your feature request related to a problem? Please describe. Having extraneous warnings in logs makes it harder to identify problems. Running this plugin generates maven warnings that can probably be avoided.
Describe the solution you'd like Maven warns against having dynamic values in specific properties to reduce the risk of generating malformed packages. The normal expectation is that these properties are defined explicitilty as the pom.xml is the source of truth. However, since this plugin moves the responsibility of the source of truth outside of Maven to the NPM package, they must be dynamically populated.
Investigate alternative approaches to specifying these required details without triggering warnings. A few options could include
Additional context Maven log: