Closed GoogleCodeExporter closed 9 years ago
Post a link to project that fails.
Original comment by william....@xandar.com.au
on 11 Mar 2014 at 3:26
Essentially I have a project that has this in the build section of my POM:
<resources>
<resource>
<directory>${project.basedir}/../assets</directory>
<targetPath>${project.build.directory}/merged-assets</targetPath>
</resource>
<resource>
<directory>${project.basedir}/../second_assets</directory>
<targetPath>${project.build.directory}/merged-assets</targetPath>
</resource>
</resources>
Then in the maven-android-plugin specifying this:
<assetsDirectory>${project.build.directory}/merged-assets</assetsDirectory>
However with v3.8.1 of the plugin the assets were copied during the invocation
of the APKMojo, since v3.8.2 it appears that this functionality has been moved
to the GenerateSourcesMojo.
Which in essence causes the problem, as the generate-sources phase happens
before the process-resources phase, the merged-assets directory doesn't exist.
I wanted to know if there was a way I could have the GenerateSourcesMojo happen
during the process-resources phase but after the copy-resources goal of the
resources plugin - Or is there more sensible approach to this?
Original comment by Cookie0...@gmail.com
on 11 Mar 2014 at 1:18
Android Assets are not (Java) resources. And I think configuring them as such
in order to get the resources-plugin to copy them to \target\merged-assets in
the wrong approach.
You are better off configuring an instance of the maven-ant-task to copy those
folders to \target\merged-assets at whichever lifecycle phase you want.
Original comment by william....@xandar.com.au
on 11 Mar 2014 at 1:34
Thanks for the feedback and advice. I will look in to taking that approach.
Original comment by Cookie0...@gmail.com
on 11 Mar 2014 at 2:05
Original comment by william....@xandar.com.au
on 11 Mar 2014 at 2:08
Original issue reported on code.google.com by
Cookie0...@gmail.com
on 10 Mar 2014 at 11:20