Comment #5 on issue 152 by rktoomey: Maven Protoc Plugin fails when a jar file contains a .proto file (FileNotFoundException)

The stupidest thing that could possibly work - edit
AbstractProtocMojo.makeProtopathFromJars method to produce a viable Windows filepath by replacing all occurrences of ":" in the classpathJarName with "_" as follows:

ImmutableSet<File> makeProtopathFromJars(
                File temporaryProtoFileDirectory, Iterable<File> 
                throws IOException
        for (JarEntry jarEntry : list(classpathJar.entries()))
                final String jarEntryName = jarEntry.getName();
                if (jarEntry.getName().endsWith(PROTO_FILE_SUFFIX))
String sanitizedClasspathJarName = classpathJar.getName().replace(":", "_"); final File uncompressedCopy = new File(new File(temporaryProtoFileDirectory,
sanitizedClasspathJarName), jarEntryName);
copyStreamToFile(new RawInputStreamFacade(classpathJar.getInputStream(jarEntry)),

You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to