Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MVEL 2.0.19 jar file is broken in Maven repository #17

Open
binghuawu opened this issue Jul 15, 2011 · 2 comments
Open

MVEL 2.0.19 jar file is broken in Maven repository #17

binghuawu opened this issue Jul 15, 2011 · 2 comments

Comments

@binghuawu
Copy link

Hello Mike,

First I have to thank you for making the amazing MVEL.
I'm now using version 2.0.19 with Maven. But what's wierd is the following code is not working:

String path = "resource/1.xhtml";
CompiledTemplate t = TemplateCompiler.compileTemplate(new File(path));
TemplateRuntime.execute(t, System.out); // NOT WORKING! no output in system.out, also no exceptions or errors

String res = (String) TemplateRuntime.execute(t); // works fine

It's quite strange because as it claims the version 2.0.19 does support stream output.
I suspect the jar fetched from Maven is broken and another testing also proves that.
When I download the 2.0.19 jar file from http://repository.codehaus.org/org/mvel/mvel2/2.0.19/ and run the same test, the result is OK.

After checking the SHA checksum files from Maven repository and http://repository.codehaus.org/org/mvel/mvel2/2.0.19/, I'm sure they are different jar files.

Here is the search result from Maven http://search.maven.org/#artifactdetails|org.mvel|mvel2|2.0.19|jar:
mvel2-2.0.19.jar 29-Oct-2010 671.2 K "deb8ba40190544e7f85e7abec6a9847f7ba3d943"

Here is the SHA1 from http://repository.codehaus.org/org/mvel/mvel2/2.0.19/:
mvel2-2.0.19.jar 19-Nov-2010 13:25 672K
mvel2-2.0.19.jar.sha1 19-Nov-2010 13:25 40
mvel2-2.0.19.jar.sha1 has the content of : "d7f3efd00f202f734bdb8b91fd8dfe2b2b54e42a"

So if possible, please update Maven repository for 2.0.19 with correct jar file. Thank you!

@mikebrock
Copy link
Owner

Well, that's strange. The codehaus.org repository is the authoritative version. I'm not sure what to make of that discrepancy, unless somehow there was an accidental publishing early that got mirrored before the initial release -- but I can't remember to be honest.

@binghuawu
Copy link
Author

That makes some sense. Anyway now I'm trying to use 2.1.0.drools2 from Maven.

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

No branches or pull requests

2 participants