-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
today I've released the first public version of CodeMirror for ZK.
CodeMirror is a JavaScript library by Marijn Haverbeke that can be used to create a relatively pleasant editor interface for code-like content - computer programs, HTML markup, and similar.
Download and sources of the project are located at: http://code.google.com/p/zk-codemirror
Online-demo is located at: http://www.jease.org/codemirror
Please feel free to ping me if you have questions or suggestions.
Have fun,
Maik
Hi,
maybe an interesting update: I've added a parser for Mediawiki-Markup to zk-codemirror. And thanks to Matt who committed an improved configuration approach.
Download and sources of the project are located at: http://code.google.com/p/zk-codemirror
Online-demo is located at: http://www.jease.org/codemirror
Cheers, Maik
Hi,
I've just uploaded a new release for zk-codemirror which uses the recently released CodeMirror 0.91 (including some important fixes for WebKit-based-Browsers like Safari or Chrome).
zk-codemirror works very stable and I can recommend it for production... I'm already using it in the latest JeaseCMS as pleasant ScriptEditor. Works like a charm.
Have fun,
Maik
I agree with Maik and Thomas.
If you have a maven managed project and must put some jars like zk calendar or other zk libs manual in your project than you have such libs all times in your CVS repository too. That's not the sense of maven. So, please find a solution that such additional components and user contributions can be mavenized.
best
Stephan
hi,
providing zk-codemirror in the zk repositories would be a possble solution. When using ZK this repository is mandatory anyway at the moment, since the latest zk jars are not in maven-central. So there should be a way to deliver jars for upload them to the ZK-repos.
@Peter
at the moment i started with JavaForge as projekt home for my zk-filebrowser componentset. The tooling there seems very comfortable, but also very complex. I plan to write some wiki documents and a demo app within this week.
/thomas
Hi Tim,
in principle yes. I don't know if this is possible at all (due to policies etc.pp.), but as ZK seems not to be available via "official" maven-repos in the future, it would ease the dependency-management for maven-users when working with ZK-Core and ZK-3rd-party libraries. As I don't use maven I have no real stakes in this question.
Cheers, Maik
Hey Maik,
Are you asking whether we can upload zk codemirror to our maven repository?
Cheers, Tim
Hi,
@Peter: the project is already hosted on google code...:-)
Maybe an idea: if ZK uses a dedicated maven repository, maybe the ZK-Team can provide some means to upload third-party-jars (like zk-codemirror) to this repository, so people using maven have just one repository to configure etc.pp.
Cheers, Maik
Hi Maik,
hiking in the mountains sounds great... which mountains?
It would be of course possible to add all the WEB-INF stuff to the project and create a jar OR a war with maven. With this the maven project should behave as your original project, but this is not the intention of maven i think. Maven has some defaults where things have to be stored. So the WEB-INF related stuff has to be stored in src/main/webapp. One point of maven is to build, test, create different artifacts like jars, source-jars, javadoc, etc. and the other big deal is to keep all dependencies up to date. In the pom.xml all the dependencies your jar file needs are noted with the required version. The referenced jars are pulled from maven central repository together with their pom.xml and stored in your local maven repository. The only dependency zk-codemiror needs to compile is zk.jar in version 5.04, which is pulled in with:
<dependencies>
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zk</artifactId>
<version>5.0.4</version>
</dependency>
zk.jar has again dependencies in his pom.xml which are pulled in automatically through maven. This is done until all hierarchical dependencies are solved.
So when i want to use zk-codemirror from maven-central i can simply rightclick on my project in eclipse and select "add Dependenciy" type "zk-code..." and the zk-codemirror.jar is offered for selection... thats all! I don't have to care which jars have to be in WEB-INF/lib since maven cares for me.
One problem is that the latest ZK libs are not stored in maven-central - even not the CE ones and it is strictly not recommended or allowed to provide jars in maven-central, which have dependencies not itself are stored in maven-central. So until this is solved it might not be possible to upload jars with zk-dependencies to maven-central. I mentioned this in another thread:
http://www.zkoss.org/forum/listComment/13391
since i have also some zk components to provide i will follow this. At the moment i'm looking for an opensource home for this components... probably it will be javaforge.com.
Hi Thomas,
sorry for the delay, but I've spent some days hiking in the mountains.
I've checked your SVN and it seems that Maven requires some rearrangement of the code base, doesn't it? I really like the possibility of having zero turnarounds when developing components. This is the reason why zk-codemirror was set up as web/demo-application which is ready to run right after checking out the sources.
Can we come up with a layout which allows this "core maintainer friendliness" with support for Maven? Could it be another possibility to use some sort of staging? Is it a Maven requirement to push the sources to the Maven repository at all? Wouldn't it be enough to publish just the Jar?
Sorry for the silly questions, but I'm not very familar with Maven and required policies.
Thanks,
Maik
Asked: 2010-10-20 11:53:32 +0800
Seen: 2,051 times
Last updated: Dec 16 '10