TheProjecter / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

Prevent buildDirectory from being nul #900

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With my version of Maven (Embedded, 3.0.4) the parameter "buildDirectory" which 
should be set in AbstractWro4jMojo is always null. No matter what I do.
I tried to fix it like described here 
http://books.sonatype.com/mvnref-book/reference/writing-plugins-sect-mojo-params
.html but that didn't help either.

I think this is a change that happened between Maven 2.x and 3.x. To be 
compliant with both versions I added a workaround that get's the buildDirectory 
from "Build" as a fallback.

References:
https://github.com/alexo/wro4j/pull/205

Original issue reported on code.google.com by alex.obj...@gmail.com on 16 Sep 2014 at 11:30

GoogleCodeExporter commented 9 years ago
Fixed in branch 1.7.x

Original comment by alex.obj...@gmail.com on 16 Sep 2014 at 12:40