Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

CSSEmbed URL problem #50

Closed
olihel opened this issue Feb 27, 2014 · 4 comments
Closed

CSSEmbed URL problem #50

olihel opened this issue Feb 27, 2014 · 4 comments

Comments

@olihel
Copy link

olihel commented Feb 27, 2014

[ERROR] Failed to execute goal de.matrixweb.smaller:smaller-maven-standalone-plugin:0.8.1:smaller (default) on project my: Execution default of goal de.matrixweb.smaller:smaller-maven-standalone-plugin:0.8.1:smaller failed: Failed to execute smaller process: Failed to create valid URL: unknown protocol: vfs -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal de.matrixweb.smaller:smaller-maven-standalone-plugin:0.8.1:smaller (default) on project my: Execution default of goal de.matrixweb.smaller:smaller-maven-standalone-plugin:0.8.1:smaller failed: Failed to execute smaller process
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal de.matrixweb.smaller:smaller-maven-standalone-plugin:0.8.1:smaller failed: Failed to execute smaller process
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more
Caused by: de.matrixweb.smaller.common.SmallerException: Failed to execute smaller process
    at de.matrixweb.smaller.pipeline.Pipeline.execute(Pipeline.java:97)
    at de.matrixweb.smaller.clients.maven.SmallerStandaloneMojo$1.executeSmaller(SmallerStandaloneMojo.java:96)
    at de.matrixweb.smaller.clients.maven.SmallerClient.execute(SmallerClient.java:99)
    at de.matrixweb.smaller.clients.maven.SmallerStandaloneMojo.execute(SmallerStandaloneMojo.java:108)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    ... 20 more
Caused by: de.matrixweb.vfs.VFSException: Failed to create valid URL
    at de.matrixweb.vfs.VFS.createUrl(VFS.java:162)
    at de.matrixweb.vfs.internal.VFileImpl.getURL(VFileImpl.java:159)
    at de.matrixweb.smaller.resource.VFSResourceResolver$VFSResource.getURL(VFSResourceResolver.java:105)
    at net.nczonline.web.cssembed.Embedder.getImageURIString(Embedder.java:68)
    at net.nczonline.web.cssembed.CSSURLEmbedder.embedImages(CSSURLEmbedder.java:242)
    at de.matrixweb.smaller.cssembed.CssembedProcessor$1.call(CssembedProcessor.java:72)
    at de.matrixweb.smaller.resource.ProcessorUtil$1.exec(ProcessorUtil.java:62)
    at de.matrixweb.vfs.VFSUtils.pipe(VFSUtils.java:106)
    at de.matrixweb.smaller.resource.ProcessorUtil.process(ProcessorUtil.java:58)
    at de.matrixweb.smaller.resource.ProcessorUtil.process(ProcessorUtil.java:38)
    at de.matrixweb.smaller.cssembed.CssembedProcessor.execute(CssembedProcessor.java:58)
    at de.matrixweb.smaller.pipeline.Pipeline.execute(Pipeline.java:152)
    at de.matrixweb.smaller.pipeline.Pipeline$1.run(Pipeline.java:116)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    at java.lang.Thread.run(Thread.java:695)
Caused by: java.net.MalformedURLException: unknown protocol: vfs
    at java.net.URL.<init>(URL.java:574)
    at java.net.URL.<init>(URL.java:464)
    at java.net.URL.<init>(URL.java:413)
    at de.matrixweb.vfs.VFS.createUrl(VFS.java:160)
    ... 15 more
@KnisterPeter
Copy link
Owner

It would be great if you could recheck with the latest nightly build of smaller.

@whjvenyl
Copy link

whjvenyl commented May 1, 2014

I just rechecked with a sample project:
Version 0.8.0 completes successfully whereas 0.8.8 or the latest repository snapshot 0.8.9 do not work anymore (regardless of the environment it get's executed / win - unix)

The error message is always the one described above (de.matrixweb.vfs.VFSException: Failed to create valid URL).

So the standalone plugin seems to be broken as of now.

@KnisterPeter
Copy link
Owner

I'll have an open pull request regarding VFS where this error is thrown. Since a Java Update on Mac it doesn't work anymore in the current state. I'll investigate that and will patch it then.
On Linux this issue doesn't seem to be visible tho.

@KnisterPeter
Copy link
Owner

Hopefully with the VFS fix this issue is fixed also.
I'll recheck if the builds are done.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants