-
Notifications
You must be signed in to change notification settings - Fork 0
Description
I'm writing a tutorial for aws-lambda, where the md files are in a directory that has a maven pom file, and for which the version is 1.0.29.
The maven pom file extends the quantummaid-opensource-parent pom file, so that each out-of-date dependency error causes a CI error. I'd like to take advantage of that fact and add a <dependency> in the pom.xml for the dependency I rely on in my tutorial (httpmaid-awslambda):
<parent>
<groupId>de.quantummaid.tutorials</groupId>
<artifactId>parent</artifactId>
<version>1.0.29</version>
</parent>
<groupId>de.quantummaid.tutorials</groupId>
<artifactId>aws-lambda-parent</artifactId>
<version>1.0.29</version>
<packaging>pom</packaging>
...
<dependency>
<groupId>de.quantummaid.httpmaid.integrations</groupId>
<artifactId>httpmaid-awslambda</artifactId>
<version>0.9.67</version>
</dependency>Then I would like, in the tutorial markdown file, to use:
<!---[Dependency](groupId="de.quantummaid.httpmaid.integrations" artifactId="httpmaid-awslambda")-->
or
<!---[Dependency](groupId="de.quantummaid.httpmaid.integrations" artifactId="httpmaid-awslambda" version="auto")-->
or
<!---[Dependency](groupId="de.quantummaid.httpmaid.integrations" artifactId="httpmaid-awslambda" version="module:.")-->
or
<!---[Dependency](groupId="de.quantummaid.httpmaid.integrations" artifactId="httpmaid-awslambda" version="module:sub-module")-->
And have it generate, in the markdown file:
<dependency>
<groupId>de.quantummaid.httpmaid.integrations</groupId>
<artifactId>httpmaid-awslambda</artifactId>
<version>0.9.67</version>
</dependency>By picking the version of the dependency from the <dependency> or <dependencyManagement> section of the pom.xml for which the plugin is running, or, when using the module:... flavour, from the <dependency> or <dependencyManagement> section of the pom.xml for the specified module location.
Currently, the only way i have to get the version automagically, is to use version without any value. But it always picks the version of the main artifact in the pom.xml module for which the plugin is running. I'd like more control.
<!---[Dependency](groupId="de.quantummaid.httpmaid.integrations" artifactId="httpmaid-awslambda" version)-->
```xml
<dependency>
<groupId>de.quantummaid.httpmaid.integrations</groupId>
<artifactId>httpmaid-awslambda</artifactId>
<version>1.0.29</version>
</dependency>