Hi Ries!

Just a note: to create modules for magnolia, you need neither the source, nor 
maven.

Simply create an eclipse project, include the JARs in your Build-Path you need 
as dependencies from your magnolia installation (or an unpacked 
magnolia-bundle), and create a structure like:

/src
/resources
/resources/mgnl-bootstrap
/resources/META-INF
/resources/META-INF/magnolia
/resources/META-INF/magnolia/mymodule.xml          <-- module descriptor
/resources/mgnl-resources

Both "src" and "resources" are set up as "Source Folders" for eclipse.

If you JAR up the resulting output folder, you'll have a working module, quick 
and easy, no fuss...


You only need maven if you want to build magnolia itself.
Of course, if you have a larger development team, or are planning a bigger 
project, it is probably worth setting up maven and doing things "properly". If 
you're alone, or just prototyping, don't bother with maven.

Regards from Vienna,

Richard








Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Ries van Twisk
Gesendet: Freitag, 21. Jänner 2011 03:05
An: Magnolia User-List
Betreff: Re: [magnolia-user] Compiling my own Module for Magnolia

Gregory, Niki,

thank you for your answers!
I was under the impression I needed Magnolia source,
but I don't think this is true anymore. I was
following this : http://wiki.magnolia-cms.com/display/DEV/Eclipse

Ries

On Jan 20, 2011, at 2:43 PM, Grégory Joseph wrote:



Note that there's out a much more up-to-date archetype on the forge, thanks to 
Joerg Bellmann.
See http://jira.magnolia-cms.com/browse/FORGE-5
mvn archetype:generate 
-DarchetypeCatalog=http://nexus.magnolia-cms.com/content/repositories/magnolia.forge.snapshots/archetype-catalog.xml

On 20 Jan 2011, at 18:48, Nikolaus Förderreuther wrote:


Hi Ries,

if you're working with Maven and Eclipse, you can use the maven archetype.


1. Create module
mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create 
-DarchetypeGroupId=info.magnolia 
-DarchetypeArtifactId=maven-archetype-magnolia-module -DarchetypeVersion=1.0  
-DremoteRepositories=http://maven.magnolia.info/m2 
-DgroupId=de.eleon.magnolia.test   -DartifactId=niki-test
(adapt DgroupId und DartifactId to your needs)


2. Eclipse / WTP Project-Files
cd niki-test
mvn install:install-file -DgroupId=javax.jcr -DartifactId=jcr -Dversion=1.0 
-Dpackaging=jar 
-Dfile=F:\magnolia_eleon\apache-tomcat-5.5.27\webapps\magnoliaAuthor\WEB-INF\lib\jcr-1.0.jar
mvn eclipse:eclipse -Dwtpversion=1.5

(adapt Dfile to your needs)

Now you can open the project with Eclipse (import existing maven project...)


3. build module jar
mvn tomcat:deploy

Cheers,
Niki



2011/1/20 Ries van Twisk <[email protected]<mailto:[email protected]>>

Hello!

Let me up-front warn you that I am a Magnolia newbie,
so if I ask stupid questions, just tell me so :)

I need to compile my own module for Magnolia, but I don't
understand yet the process for doing this.

I have been looking here : 
http://documentation.magnolia-cms.com/technical-guide/modules.html
But that doesn't tell me what I need to get my module kick-started and beable 
to get compiled
into a jar so I can insert that module as content and display what I need to 
display.

Do I need the Magnolia source, or is it just ok to have Magnolia compiled 
version?

So my question is, does anybody know a 'hello world' start to finish,
and with start I mean.. checkout SVN, do this or that. THis to
get a more clear idea what the process is for developing Magnolia modules.


Ries



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: 
<[email protected]<mailto:[email protected]>>
----------------------------------------------------------------





----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: 
<[email protected]<mailto:[email protected]>>
----------------------------------------------------------------


________________________________
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: 
<[email protected]<mailto:[email protected]>>
----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to