#106 Maven Build Error Because of an Allegedly Missing Plugin

1.4.0 - bugs
closed-fixed
nobody
general (25)
5
2009-09-30
2009-09-29
Christian Spurk
No

For some reason I can’t build the current trunk version of Aperture with Maven. There is always an error pointing out that the aperture-assembly-maven-plugin was not available. I’m not a Maven expert, so this may also be a problem on my side, however, the attached patch at least fixes the problem for me.

I think the problem is the following: there are several POMs that use the aperture-assembly-maven-plugin in their build sections, e.g., assembly/required-libs/pom.xml. All these POMs do not, however, declare any version for the plug-in, so the build fails for these POMs. My patch adds a default version for the aperture-assembly-maven-plugin in the top level POM’s pluginManagement section.

Discussion

  • patch against Aperture trunk fixing the described problem

     
    Attachments
  • Antoni Mylka
    Antoni Mylka
    2009-09-29

    applied the patch, won't do any harm,
    the lame excuse would be "but it worked for me"
    the less-lame excuse would be "but it worked for me on maven 2.0.9 which is BTW given in the README.txt file as THE build tool for aperture ATM" while you must have used maven 2.1 or 2.2"
    which is still admittedly still a lame excuse :)
    i have to upgrade to 2.2 anyway soon,
    please close the ticket if that fixes your problem

    and btw thanks very much for taking the trouble of submitting that patch.

     
  • You’re right, I’m using Maven 2.2; I interpreted the BUILD.txt more like all Maven versions starting from 2.0.9 were supported. Anyway, thanks for commiting the patch. This indeed fixes the issue for me and hopefully spares others the hassle of having to dig into Aperture’s POM internals.

     
    • status: open --> closed-fixed