GithubHelp home page GithubHelp logo

isabella232 / cocoon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apache/cocoon

0.0 0.0 0.0 355.07 MB

Mirror of Apache Cocoon

Batchfile 0.03% Shell 0.05% Java 76.52% JavaScript 8.95% XSLT 9.57% HTML 2.45% CSS 0.78% Perl 0.13% Clean 0.04% PHP 1.46% Groovy 0.01% TSQL 0.01%

cocoon's Introduction

This is some quick info about the Mavenization (m10n) of Cocoon 2.2.

There are also some Daisy documentation pages about this, for more "stable" information:

  http://cocoon.zones.apache.org/daisy/documentation/g2/756.html
  http://cocoon.zones.apache.org/daisy/documentation/g1/798.html


PREREQUISITES
-------------
You need a JDK, 1.4.x, 1.5.x, 1.6.x, or 1.7.x.
When experimenting with trunk, 1.5.x is probably the best bet.

Maven 2 must be installed (at least 2.0.9).


MAVEN REPOSITORY MIRRORS
------------------------
Using a Maven mirror isn't necessary anymore.


HOW TO BUILD THE COCOON WEBAPP
------------------------------

Since Cocoon release 2.2, Cocoon relies on Maven 2 for its build
process. 

To build Cocoon, use the following command:

  $ ./build.sh install

In case of any failures, repeat command as necessary till you see
the message:

  BUILD SUCCESSFUL

If you have consistent build failures due to a missing cocoon-rcl
artefact, then run first

  $ cd ../tools
  $ mvn clean install

If you have build failures due to out-of-memory conditions, increase
the JVM maximum memory limit in build.sh:
 
  $ MAVEN_OPTS="-Xmx256m"


HOW TO MOUNT THE PROJECTS IN ECLIPSE
------------------------------------

from /trunk, run

  $ ./build.sh eclipse:clean eclipse:eclipse

Next go to eclipse, and make sure you haven't got trunk mounted as a
project already.  Also remove .classpath and .project files possibly
remaining in /trunk from a previous project mount.
Do File-Import->Existing projects into workspace, then
point to your trunk directory and it should detect the newly created
blocks as projects.

Note that you need to declare the M2_REPO classpath variable in your
workspace, it should point to your local m2 repository.

You can also get eclipse to download the sources of the dependent libraries and attach them 
to the jars in eclipse :

  $ mvn -Declipse.downloadSources=true eclipse:eclipse

For further information about the maven eclipse plugin visit 

  http://maven.apache.org/plugins/maven-eclipse-plugin/
  

HOW TO MOUNT THE PROJECTS IN INTELLIJ
------------------------------------

First, build all the projects as described above.
Next, from /trunk, run

  $ mvn -P allblocks idea:idea

In IntelliJ select File - Open Project...  Navigate to the trunk directory and select cocoon.ipr.

For further information about the maven idea plugin visit

  http://maven.apache.org/plugins/maven-idea-plugin/
  
  
HOW TO START THE COCOON WEBAPP
------------------------------

Checkout complete trunk and build it. If clean rebuild is desired,
use command:

  $ ./build.sh clean install

Call this until you get "BUILD SUCCESSFUL" - sometimes downloads from maven
repositories are temporarily unaccessible and cause the build to fail.

To start Cocoon within Jetty, use command:

  $ cocoon.sh

Point your browser to http://localhost:8888/

(Don't use jetty:run-exploded as in this case the jetty6 plugin will
 alter the webapp build by the Cocoon deployer again!)


HOW TO DEBUG THE COCOON WEBAPP
------------------------------

To start Cocoon with JVM debug enabled, use command:

  $ cocoon.sh debug

Then tell your IDE to connect to JVM debug on port localhost:5005.

cocoon's People

Contributors

bdelacretaz avatar cdamioli avatar cziegeler avatar devkat avatar gkossakowski avatar ilgrosso avatar jashaj avatar lgawron avatar osi avatar pfumagalli avatar reinhard avatar rgoers avatar rubys avatar simonegianni avatar simonetripodi avatar stefanom avatar swallez avatar tcurdt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.