{"action":"created","issue":{"url":"https://api.github.com/repos/alexo/wro4j/issues/127","labels_url":"https://api.github.com/repos/alexo/wro4j/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/alexo/wro4j/issues/127/comments","events_url":"https://api.github.com/repos/alexo/wro4j/issues/127/events","html_url":"https://github.com/alexo/wro4j/issues/127","id":15765817,"number":127,"title":"CSS URL rewriting fails when Bootstrap is in a WebJar","user":{"login":"mwanji","id":58760,"avatar_url":"https://avatars.githubusercontent.com/u/58760?v=3","gravatar_id":"","url":"https://api.github.com/users/mwanji","html_url":"https://github.com/mwanji","followers_url":"https://api.github.com/users/mwanji/followers","following_url":"https://api.github.com/users/mwanji/following{/other_user}","gists_url":"https://api.github.com/users/mwanji/gists{/gist_id}","starred_url":"https://api.github.com/users/mwanji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwanji/subscriptions","organizations_url":"https://api.github.com/users/mwanji/orgs","repos_url":"https://api.github.com/users/mwanji/repos","events_url":"https://api.github.com/users/mwanji/events{/privacy}","received_events_url":"https://api.github.com/users/mwanji/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"alexo","id":30596,"avatar_url":"https://avatars.githubusercontent.com/u/30596?v=3","gravatar_id":"","url":"https://api.github.com/users/alexo","html_url":"https://github.com/alexo","followers_url":"https://api.github.com/users/alexo/followers","following_url":"https://api.github.com/users/alexo/following{/other_user}","gists_url":"https://api.github.com/users/alexo/gists{/gist_id}","starred_url":"https://api.github.com/users/alexo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexo/subscriptions","organizations_url":"https://api.github.com/users/alexo/orgs","repos_url":"https://api.github.com/users/alexo/repos","events_url":"https://api.github.com/users/alexo/events{/privacy}","received_events_url":"https://api.github.com/users/alexo/received_events","type":"User","site_admin":false},"milestone":null,"comments":26,"created_at":"2013-06-19T20:12:16Z","updated_at":"2015-09-07T18:23:11Z","closed_at":null,"body":"When I put bootstrap.css in src/main/resources and use the classpath locator, it works:\r\n\r\n    <css>classpath:bootstrap/2.3.2/css/bootstrap.css</css>\r\n\r\nBut with the Bootstrap WebJar, I get the following error:\r\n\r\n    <css>webjar:bootstrap.css</css>\r\n\r\n\r\nException occured while processing: ro.isdc.wro.WroRuntimeException:\r\nCould not replace imageUrl: ../img/glyphicons-halflings.png, contained at location: webjar:bootstrap.css, class: ro.isdc.wro.WroRuntimeException,caused by:  (ro.isdc.wro4j:wro4j-maven-plugin:1.7.0:run:default:compile)\r\npom.xml\t/radar-webapp\tline 62\tMaven Build Problem\r\n"},"comment":{"url":"https://api.github.com/repos/alexo/wro4j/issues/comments/138352270","html_url":"https://github.com/alexo/wro4j/issues/127#issuecomment-138352270","issue_url":"https://api.github.com/repos/alexo/wro4j/issues/127","id":138352270,"user":{"login":"sbrown44","id":7938427,"avatar_url":"https://avatars.githubusercontent.com/u/7938427?v=3","gravatar_id":"","url":"https://api.github.com/users/sbrown44","html_url":"https://github.com/sbrown44","followers_url":"https://api.github.com/users/sbrown44/followers","following_url":"https://api.github.com/users/sbrown44/following{/other_user}","gists_url":"https://api.github.com/users/sbrown44/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrown44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrown44/subscriptions","organizations_url":"https://api.github.com/users/sbrown44/orgs","repos_url":"https://api.github.com/users/sbrown44/repos","events_url":"https://api.github.com/users/sbrown44/events{/privacy}","received_events_url":"https://api.github.com/users/sbrown44/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T18:23:11Z","updated_at":"2015-09-07T18:23:11Z","body":"Having more problems with url rewriting in standalone maven build. Although using classpath uris allows the build to succeed  the actual rewritten url is not useful, it seems to depend on wro4j servlet running in the application to be resolved. Also, when the resource is not a webjar or classpath resource, ie our own code, the rewriting is always to a file: url with an absolute path, which is not right for a maven build. And there seems to be no way to turn off url rewriting when using cssSass. This is a complete blocker for what we are trying to do, which is simply to run the sass processor and package up the css on our own code.\r\n\r\nwro.xml:\r\n\t<group name=\"main\">\r\n\t\t<css>file:/home/sabrown/projects/schedules-classrooms/src/main/resources/static/scss/*.scss</css>\r\n\t</group>\r\nwro.properties:\r\npreProcessors=sassCss\r\npostProcessors=jsMin,cssMin\r\n\r\nsource url entry: ( main.scss )\r\nbackground: #fafafa url('../images/background/chairs56-162.jpg') no-repeat center center; \r\nresult: ( main.css)\r\nbackground: #fafafa url('file:/home/sabrown/projects/schedules-classrooms/src/main/resources/static/images/background/chairs56-162.jpg') no-repeat center center;\r\n\r\n"}}