grunt-maven-plugin icon indicating copy to clipboard operation
grunt-maven-plugin copied to clipboard

jsSourceDirectory does not point to project root but /war/src/main/webapp

Open ashishsantikari opened this issue 9 years ago • 1 comments

Hi,

I have different packaging to be done in my project. It consists of jar , war and finally an ear. I have a pom.xml inside war directory where I am using the plugin to create the war file.

When I am using the jsSourceDirectory to point to the webapp in my project , it is looking under the war folder.

Here is the maven output

[ERROR] Failed to execute goal pl.allegro:grunt-maven-plugin:1.5.0:npm-offline (default) on project test-war: Execution default of goal pl.allegro:grunt-maven-plugin:1.5.0:npm-offline failed: java.io.FileNotFoundException: E:\test1\app-ui\myproj\war\src\main\webapp\E:\test1\app-ui\myproj\war..\src\main\webapp\public\node_modules.tar (The filename, directory name, or volume label syntax is incorrect) -> [Help 1]

Here is my project folder structure.

app-ui src --> main --> webapp //webapp directory ear -> pom.xml jar -> pom.xml war -> pom.xml // plugin pointing top war/src/main/webapp pom.xml

How to point the jsSourceDirectory to $(project.root)/src/main/webaap and not $(project.root)/war/src/main/webaap.

Help would be appreciated.! :)

Thanks and Regards Ashish

ashishsantikari avatar Sep 29 '15 07:09 ashishsantikari

All paths are relative to project root dir, which is where pom.xml is - there is no way to attach to parent project relative directories at the moment (and this is what you would need here).

adamdubiel avatar Sep 30 '15 06:09 adamdubiel