Hello,
NXThemes is now working both on JBOSS (Nuxeo EP + the WebEngine module)
and with Jetty (standalone WebEngine), the theme editor being a
webengine application.
the branch is called:
http://hg.nuxeo.org/nuxeo/nuxeo-theme#webengine-migration
the installation is done as usual, only the following jars must be added
to nxserver/lib/
.m2/repository/cssparser/cssparser/0.9.4-fix/cssparser-0.9.4-fix.jar
.m2/repository/commons-lang/commons-lang/2.2/commons-lang-2.2.jar
.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
and the webengine-5.2.diff file is to be applied to nuxeo-webengine#5.2
for standalone WebEngine deployments.
/JM
diff -r 7d43f37e9328
nuxeo-distribution/nuxeo-server-template/src/main/assemble/assembly.xml
--- a/nuxeo-distribution/nuxeo-server-template/src/main/assemble/assembly.xml
Wed Oct 15 12:57:54 2008 +0200
+++ b/nuxeo-distribution/nuxeo-server-template/src/main/assemble/assembly.xml
Sat Nov 01 18:47:29 2008 +0100
@@ -78,6 +78,7 @@
<artifact group="net.sf.json-lib" name="json-lib" version="2.2.1"
classifier="jdk15" />
<artifact group="net.sf.ezmorph" name="ezmorph" />
<artifact group="net.sf.opencsv" name="opencsv" version="1.7" />
+ <artifact group="cssparser" name="cssparser" />
<artifact group="xerces" name="xercesImpl" version="2.8.1" />
<artifact group="org.apache.derby" name="derby" />
<artifact group="org.hibernate" name="hibernate" />
diff -r 7d43f37e9328 nuxeo-webengine-server/pom.xml
--- a/nuxeo-webengine-server/pom.xml Wed Oct 15 12:57:54 2008 +0200
+++ b/nuxeo-webengine-server/pom.xml Sat Nov 01 18:47:29 2008 +0100
@@ -262,6 +262,32 @@
<artifactId>nuxeo-shell-commands-base</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.nuxeo.theme</groupId>
+ <artifactId>nuxeo-theme-core</artifactId>
+ <version>5.2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.nuxeo.theme</groupId>
+ <artifactId>nuxeo-theme-fragments</artifactId>
+ <version>5.2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.nuxeo.theme</groupId>
+ <artifactId>nuxeo-theme-html</artifactId>
+ <version>5.2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.nuxeo.theme</groupId>
+ <artifactId>nuxeo-theme-webengine</artifactId>
+ <version>5.2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.nuxeo.theme</groupId>
+ <artifactId>nuxeo-theme-editor</artifactId>
+ <version>5.2-SNAPSHOT</version>
+ </dependency>
+
<!-- jboss client -->
<dependency>
@@ -349,6 +375,7 @@
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
</dependency>
+
</dependencies>
<build>
diff -r 7d43f37e9328 nuxeo-webengine-server/src/main/assemble/assembly.xml
--- a/nuxeo-webengine-server/src/main/assemble/assembly.xml Wed Oct 15
12:57:54 2008 +0200
+++ b/nuxeo-webengine-server/src/main/assemble/assembly.xml Sat Nov 01
18:47:29 2008 +0100
@@ -17,6 +17,7 @@
<artifact group="org.nuxeo.common" />
<artifact group="org.nuxeo.runtime*" />
<artifact group="org.nuxeo.ecm.*" />
+ <artifact group="org.nuxeo.theme" />
</includes>
<excludes>
<artifact name="nuxeo-runtime-launcher"/>
@@ -51,6 +52,7 @@
<artifact group="org.hibernate" />
<artifact name="hibernate-annotations" />
<artifact group="org.hibernate" name="hibernate"/>
+ <artifact name="cssparser"/>
</includes>
<excludes>
<artifact group="org.mortbay.jetty" name="servlet-api-2.5" />
diff -r 7d43f37e9328
nuxeo-webengine-server/src/main/resources/nxserver/web/WEB-INF/web.xml
--- a/nuxeo-webengine-server/src/main/resources/nxserver/web/WEB-INF/web.xml
Wed Oct 15 12:57:54 2008 +0200
+++ b/nuxeo-webengine-server/src/main/resources/nxserver/web/WEB-INF/web.xml
Sat Nov 01 18:47:29 2008 +0100
@@ -39,4 +39,43 @@
<url-pattern>/nuxeo/site/files/*</url-pattern>
</servlet-mapping>
+ <!-- NXThemes -->
+ <servlet>
+ <servlet-name>NXThemes Resource Library</servlet-name>
+ <servlet-class>org.nuxeo.theme.html.servlets.Resources</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>NXThemes Resource Library</servlet-name>
+ <url-pattern>/nuxeo/nxthemes-lib/*</url-pattern>
+ </servlet-mapping>
+
+ <servlet>
+ <servlet-name>NXThemes CSS</servlet-name>
+ <servlet-class>org.nuxeo.theme.html.servlets.Styles</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>NXThemes CSS</servlet-name>
+ <url-pattern>/nuxeo/nxthemes-css/*</url-pattern>
+ </servlet-mapping>
+
+ <servlet>
+ <servlet-name>NXThemes XML Export</servlet-name>
+ <servlet-class>org.nuxeo.theme.html.servlets.XmlExport</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>NXThemes XML Export</servlet-name>
+ <url-pattern>/nuxeo/nxthemes-xml-export/*</url-pattern>
+ </servlet-mapping>
+
+ <servlet>
+ <servlet-name>NXThemes Negotiation Selector</servlet-name>
+
<servlet-class>org.nuxeo.theme.html.servlets.NegotiationSelector</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>NXThemes Negotiation Selector</servlet-name>
+ <url-pattern>/nuxeo/nxthemes-select/*</url-pattern>
+ </servlet-mapping>
+
</web-app>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm