<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>Hi all,<br></div>the maven plugin in snapcfraft (2?) checks if at least a jar or a war is available in the target folder.<br><br><a href="https://github.com/ubuntu-core/snapcraft/blob/master/snapcraft/plugins/maven.py#L73">https://github.com/ubuntu-core/snapcraft/blob/master/snapcraft/plugins/maven.py#L73</a><br><br></div>In my case I have a parent pom.xml and various subfolder but no target folder.<br>In practice I should be able to copy all or a selection of those subfolder jar.<br><br></div>May this become a property supported by snapcraft?<br></div><div><br></div>As an example it may work similarly to the `filesets` property but with glob.<br></div><div>The default remains the current operation set. No matches causes the current exception to be thrown.<br></div><div>It would be backward compatible either<br></div><div><br></div><span style="font-family:monospace,monospace">op:<br>  # ...<br></span></div><span style="font-family:monospace,monospace">  plugin: maven<br></span></div><span style="font-family:monospace,monospace">  maven-options: [ -DskipTests ]<br></span></div><span style="font-family:monospace,monospace">  maven-target: <br></span></div><span style="font-family:monospace,monospace">    subproject1/target/*.jar : ./app-plugins/<br></span></div><span style="font-family:monospace,monospace">    subproject2/target/big.war : app.war<br></span></div><span style="font-family:monospace,monospace">#    target/*.jar : ./ # default <br></span><div><div><div><div><div><div><div><div><div><div><span style="font-family:monospace,monospace">#    target/*.war : ./  # default</span></div><div><div><br></div><div>Thank you <br></div><div>Best, Luca<br></div></div></div></div></div></div></div></div></div></div></div></div>