Issue Type: Bug Bug
Affects Versions: 1.8
Assignee: Unassigned
Attachments: sampleapp.tar.gz
Created: 16/Oct/13 10:24 AM
Description:

I have a project that uses the lesscss plugin to create CSS files in target/less/css and I am trying to use the build helper plugin to add this as a resource directory to be copied to /css within the WAR. This works fine from the command line but in Eclipse I need to build, refresh, clean, build in order for it to work. The m2e Maven Console shows it copying 0 files the first time (even though the LESS compiler has already run) and then copying 1 file the second time.

Sample project attached.

Maven console log after command-line mvn clean followed by m2e import to Kepler and then build:

11:09:02 AM EDT: [INFO] Compiling LESS source: test.less...
11:09:02 AM EDT: [INFO] Compilation finished in 567 ms
11:09:02 AM EDT: [WARN] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent!
11:09:02 AM EDT: [INFO] Copying 0 resource
FAIL --> 11:09:02 AM EDT: [INFO] Copying 0 resource to /Users/bwheeler/Desktop/src/sampleapp/target/sampleapp-1.0
11:09:02 AM EDT: [WARN] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent!
11:09:02 AM EDT: [INFO] Copying 0 resource

Now F5 refresh and then clean / rebuild:

11:09:11 AM EDT: [INFO] Cleaning filtered folder for sampleapp
11:09:12 AM EDT: [INFO] Bypassing LESS source: test.less (not modified)
11:09:12 AM EDT: [INFO] Compilation finished in 1 ms
11:09:12 AM EDT: [WARN] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent!
11:09:12 AM EDT: [INFO] Copying 0 resource
WORK --> 11:09:12 AM EDT: [INFO] Copying 1 resource to /Users/bwheeler/Desktop/src/sampleapp/target/sampleapp-1.0
11:09:12 AM EDT: [WARN] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent!
11:09:12 AM EDT: [INFO] Copying 0 resource

Environment: MacOS 64-bit, Eclipse Kepler
Project: Mojo's Build Helper Maven Plugin
Priority: Major Major
Reporter: Brien Wheeler
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to