Hi Thomas,
On Sat, Mar 22, 2008 at 4:05 PM, Thomas Mortagne <thomas.mortagne(a)xwiki.com>
wrote:
On Sat, Mar 22, 2008 at 11:29 AM, Asiri Rathnayake
<asiri.rathnayake(a)gmail.com> wrote:
Hi Thomas,
On Sat, Mar 22, 2008 at 3:56 PM, Thomas Mortagne <
thomas.mortagne(a)xwiki.com>
wrote:
> On Sat, Mar 22, 2008 at 9:27 AM, Vincent Massol <vincent(a)massol.net>
> wrote:
> >
> > On Mar 22, 2008, at 9:19 AM, Asiri Rathnayake wrote:
> >
> > > Hi Vincent,
> > >
> > > On Fri, Mar 21, 2008 at 8:16 PM, Vincent Massol <
vincent(a)massol.net>
> > > wrote:
> > > Hi Asiri,
> > >
> > > If you have some time... :) I think it would be great if you
could
> > > document how to use the
m2eclipse plugin in Eclipse to set up
XWiki
> > > (with screenshots). I've
been using it for the past 5 days and
it's
> > > great and makes setting up a
XWiki dev environment a breeze and
it's
> > > much much better than doing it
the manual way for lots of
reasons
> > > (always synced with the POMs,
etc).
> > >
> > >
http://m2eclipse.codehaus.org/
> > >
> > > I think I have hit a wall here. It seems like m2eclipse is only
mean
> > > for windows *groans*.
> > >
> > > The embedded version of maven seems to be incapable of building
> XWiki,
> >
> > Works just fine for Thomas and me. I didn't change anything from
the
> > defaults. That's what we use.
I'm on Mac and Thomas on unix I
think.
FWIW I'm using Eclipse 3.4M5.
I'm working on Ubuntu Linux with Eclipse 3.3, I never tryed M2Eclipse
on Windows. The m2eclipse embeded maven works fine for me since
m2eclipse 0.0.12 and even better in 0.9 as I said previously.
I couldn't build xwiki-platform-core with m2eclipse with the default
embedded maven, and i couldn't change it to my local maven installation
either. Anyway, if it works for ubuntu, then it means something is
wrong
with my configuration (although i couldn't
hunt it down so far).
Well I'm using AJDT Eclipse plugin to build the xwik-core AspectJ for
debuging needs but I'm not sure it's really needed if you just want to
build java sources (and I'm pretty sure Vincent does not use it). What
problem have ou exactly ?
I can't build xwiki-product-enterprise either. Halfway down i get the
following,
[ERROR] com.xpn.xwiki.tool.backup.ImportMojo#execute() caused a linkage
error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the
realms:
[ERROR] Plugin realm =
/plugins/com.xpn.xwiki.platform.tools:xwiki-packager-plugin:
1.10-SNAPSHOT@1723284763/thread:main
urls[0] =
file:/home/asiri/.m2/repository/com/xpn/xwiki/platform/tools/xwiki-packager-plugin/1.10-SNAPSHOT/xwiki-
packager-plugin-1.10-SNAPSHOT.jar
urls[1] = file:/home/asiri/.m2/repository/radeox/radeox/1.0-b2/radeox-
1.0-b2.jar
urls[2] =
file:/home/asiri/.m2/repository/org/apache/portals/graffito-jcr-mapping/1.0-a1-amelentev-dev/graffito-
jcr-mapping-1.0-a1-amelentev-dev.jar
urls[3] = file:/home/asiri/.m2/repository/exo-platform/exo-
platform.service.security.api/2.0/exo-platform.service.security.api-2.0.jar
urls[4] = file:/home/asiri/.m2/repository/xml-apis/xml-apis/1.3.04/xml-
apis-1.3.04.jar
urls[5] = file:/home/asiri/.m2/repository/batik/batik-extension/1.6-1/batik-
extension-1.6-1.jar
urls[6] = file:/home/asiri/.m2/repository/log4j/log4j/1.2.13/log4j-
1.2.13.jar
urls[7] = file:/home/asiri/.m2/repository/batik/batik-gvt/1.6/batik-
gvt-1.6.jar
urls[8] = file:/home/asiri/.m2/repository/info/informatica/jclf/2.3.0/jclf-
2.3.0.jar
urls[9] =
file:/home/asiri/.m2/repository/velocity-tools/velocity-tools/1.3/velocity-
tools-1.3.jar
urls[10] = file:/home/asiri/.m2/repository/exo-platform/exo-
platform.container/2.0/exo-platform.container-2.0.jar
urls[11] = file:/home/asiri/.m2/repository/batik/batik-bridge/1.6/batik-
bridge-1.6.jar
urls[12] = file:/home/asiri/.m2/repository/rome/rome-fetcher/0.7/rome-
fetcher-0.7.jar
urls[13] = file:/home/asiri/.m2/repository/rome/rome/0.8/rome-0.8.jar
urls[14] = file:/home/asiri/.m2/repository/ical4j/ical4j/0.9.20/ical4j-
0.9.20.jar
urls[15] = file:/home/asiri/.m2/repository/xmlrpc/xmlrpc-server/3.0/xmlrpc-
server-3.0.jar
urls[16] =
file:/home/asiri/.m2/repository/org/apache/xmlgraphics/xmlgraphics-commons/1.1/xmlgraphics-
commons-1.1.jar
urls[17] =
file:/home/asiri/.m2/repository/picocontainer/picocontainer/1.2/picocontainer-
1.2.jar
urls[18] = file:/home/asiri/.m2/repository/asm/asm-attrs/1.5.3/asm-
attrs-1.5.3.jar
urls[19] = file:/home/asiri/.m2/repository/exo-platform/exo-
platform.service.database.api/2.0/exo-platform.service.database.api-2.0.jar
urls[20] =
file:/home/asiri/.m2/repository/aspectj/aspectjrt/1.5.2a/aspectjrt-
1.5.2a.jar
urls[21] =
file:/home/asiri/.m2/repository/commons-validator/commons-validator/1.1.4/commons-
validator-1.1.4.jar
urls[22] = file:/home/asiri/.m2/repository/org/apache/poi/poi/3.0-FINAL/poi-
3.0-FINAL.jar
urls[23] = file:/home/asiri/.m2/repository/javax/xml/jaxrpc-api/1.1/jaxrpc-
api-1.1.jar
urls[24] =
file:/home/asiri/.m2/repository/commons-pool/commons-pool/1.2/commons-
pool-1.2.jar
urls[25] = file:/home/asiri/.m2/repository/javax/transaction/jta/1.0.1B/jta-
1.0.1B.jar
urls[26] =
file:/home/asiri/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.0/backport-
util-concurrent-3.0.jar
urls[27] =
file:/home/asiri/.m2/repository/org/apache/xmlgraphics/fop/0.93/fop-0.93.jar
urls[28] = file:/home/asiri/.m2/repository/jfree/jcommon/1.0.5/jcommon-
1.0.5.jar
urls[29] =
file:/home/asiri/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-
beanutils-1.7.0.jar
urls[30] =
file:/home/asiri/.m2/repository/commons-net/commons-net/1.4.1/commons-
net-1.4.1.jar
urls[31] = file:/home/asiri/.m2/repository/batik/batik-script/1.6/batik-
script-1.6.jar
urls[32] =
file:/home/asiri/.m2/repository/javax/activation/activation/1.1/activation-
1.1.jar
urls[33] =
file:/home/asiri/.m2/repository/org/suigeneris/jrcs.diff/0.4.2/jrcs.diff-
0.4.2.jar
urls[34] = file:/home/asiri/.m2/repository/batik/batik-xml/1.6/batik-
xml-1.6.jar
urls[35] =
file:/home/asiri/.m2/repository/org/apache/avalon/framework/avalon-framework-impl/4.3.1/avalon-
framework-impl-4.3.1.jar
urls[36] = file:/home/asiri/.m2/repository/batik/batik-dom/1.6/batik-
dom-1.6.jar
urls[37] =
file:/home/asiri/.m2/repository/org/codehaus/swizzle/swizzle-confluence/1.1-20070908/swizzle-
confluence-1.1-20070908-xwiki.jar
urls[38] =
file:/home/asiri/.m2/repository/org/apache/lucene/lucene-core/2.3.0/lucene-
core-2.3.0.jar
urls[39] = file:/home/asiri/.m2/repository/xalan/xalan/2.5.1/xalan-2.5.1.jar
urls[40] = file:/home/asiri/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
urls[41] =
file:/home/asiri/.m2/repository/org/apache/avalon/framework/avalon-framework-api/4.3.1/avalon-
framework-api-4.3.1.jar
urls[42] =
file:/home/asiri/.m2/repository/commons-fileupload/commons-fileupload/1.1.1/commons-
fileupload-1.1.1.jar
urls[43] =
file:/home/asiri/.m2/repository/commons-collections/commons-collections/3.2/commons-
collections-3.2.jar
urls[44] = file:/home/asiri/.m2/repository/batik/batik-svggen/1.6/batik-
svggen-1.6.jar
urls[45] = file:/home/asiri/.m2/repository/exo-platform/exo-
platform.service.organization.api/2.0/exo-
platform.service.organization.api-2.0.jar
urls[46] = file:/home/asiri/.m2/repository/org/apache/axis/axis/1.4/axis-
1.4.jar
urls[47] =
file:/home/asiri/.m2/repository/jcaptcha/jcaptcha-all/1.0-RC3/jcaptcha-
all-1.0-RC3.jar
urls[48] =
file:/home/asiri/.m2/repository/xml-apis/xmlParserAPIs/2.0.2/xmlParserAPIs-
2.0.2.jar
urls[49] =
file:/home/asiri/.m2/repository/portlet-api/portlet-api/1.0/portlet-
api-1.0.jar
urls[50] =
file:/home/asiri/.m2/repository/securityfilter/securityfilter/2.0/securityfilter-
2.0.jar
urls[51] = file:/home/asiri/.m2/repository/javax/jcr/jcr/1.0/jcr-1.0.jar
urls[52] =
file:/home/asiri/.m2/repository/org/apache/xmlrpc/xmlrpc-common/3.0/xmlrpc-
common-3.0.jar
urls[53] = file:/home/asiri/.m2/repository/asm/asm/1.5.3/asm-1.5.3.jar
urls[54] =
file:/home/asiri/.m2/repository/com/xpn/xwiki/platform/xwiki-core/1.3/xwiki-
core-1.3.jar
urls[55] = file:/home/asiri/.m2/repository/batik/batik-rasterizer/1.6/batik-
rasterizer-1.6.jar
urls[56] =
file:/home/asiri/.m2/repository/org/apache/jackrabbit/jackrabbit-core/1.1/jackrabbit-
core-1.1.jar
urls[57] = file:/home/asiri/.m2/repository/batik/batik-awt-util/1.6/batik-
awt-util-1.6.jar
urls[58] =
file:/home/asiri/.m2/repository/commons-dbcp/commons-dbcp/1.2.1/commons-
dbcp-1.2.1.jar
urls[59] =
file:/home/asiri/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-
httpclient-3.1.jar
urls[60] = file:/home/asiri/.m2/repository/batik/batik-ext/1.6/batik-
ext-1.6.jar
urls[61] = file:/home/asiri/.m2/repository/hsqldb/hsqldb/1.8.0.7/hsqldb-
1.8.0.7.jar
urls[62] =
file:/home/asiri/.m2/repository/net/sf/ehcache/ehcache/1.2.3/ehcache-
1.2.3.jar
urls[63] = file:/home/asiri/.m2/repository/batik/batik-parser/1.6/batik-
parser-1.6.jar
urls[64] =
file:/home/asiri/.m2/repository/commons-codec/commons-codec/1.3/commons-
codec-1.3.jar
urls[65] =
file:/home/asiri/.m2/repository/commons-lang/commons-lang/2.3/commons-
lang-2.3.jar
urls[66] = file:/home/asiri/.m2/repository/struts/struts/1.2.9/struts-
1.2.9.jar
urls[67] =
file:/home/asiri/.m2/repository/org/hibernate/hibernate/3.2.5.ga/hibernate-
3.2.5.ga.jar
urls[68] = file:/home/asiri/.m2/repository/com/novell/ldap/UNKNOWN/ldap-
UNKNOWN.jar
urls[69] = file:/home/asiri/.m2/repository/cglib/cglib/2.1_3/cglib-2.1_3.jar
urls[70] = file:/home/asiri/.m2/repository/exo-platform/exo-platform.commons
/2.0/exo-platform.commons-2.0.jar
urls[71] =
file:/home/asiri/.m2/repository/org/xwiki/platform/xwiki-core-component/1.3/xwiki-
core-component-1.3.jar
urls[72] = file:/home/asiri/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar
urls[73] = file:/home/asiri/.m2/repository/jgroups/jgroups/2.2.9.3/jgroups-
2.2.9.3.jar
urls[74] =
file:/home/asiri/.m2/repository/flickrj/flickrapi/1.0a7/flickrapi-1.0a7.jar
urls[75] = file:/home/asiri/.m2/repository/batik/batik-svg-dom/1.6/batik-
svg-dom-1.6.jar
urls[76] =
file:/home/asiri/.m2/repository/com/google/googleapi/UNKNOWN/googleapi-
UNKNOWN-xwiki.jar
urls[77] = file:/home/asiri/.m2/repository/pdfbox/pdfbox/0.7.1/pdfbox-
0.7.1.jar
urls[78] = file:/home/asiri/.m2/repository/xmlrpc/xmlrpc-client/3.0/xmlrpc-
client-3.0.jar
urls[79] = file:/home/asiri/.m2/repository/batik/batik-transcoder/1.6/batik-
transcoder-1.6.jar
urls[80] =
file:/home/asiri/.m2/repository/org/apache/ws/commons/ws-commons-util/1.0.1/ws-
commons-util-1.0.1.jar
urls[81] =
file:/home/asiri/.m2/repository/org/suigeneris/jrcs.rcs/0.4.2/jrcs.rcs-
0.4.2.jar
urls[82] =
file:/home/asiri/.m2/repository/commons-logging/commons-logging/1.1.1/commons-
logging-1.1.1.jar
urls[83] = file:/home/asiri/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar
urls[84] = file:/home/asiri/.m2/repository/batik/batik-util/1.6/batik-
util-1.6.jar
urls[85] = file:/home/asiri/.m2/repository/ecs/ecs/1.4.2/ecs-1.4.2.jar
urls[86] = file:/home/asiri/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar
urls[87] = file:/home/asiri/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar
urls[88] =
file:/home/asiri/.m2/repository/opensymphony/oscache/2.3.2/oscache-
2.3.2-xwiki.jar
urls[89] =
file:/home/asiri/.m2/repository/commons-digester/commons-digester/1.6/commons-
digester-1.6.jar
urls[90] = file:/home/asiri/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
urls[91] =
file:/home/asiri/.m2/repository/info/informatica/css4j/0.4.0/css4j-0.4.0.jar
urls[92] =
file:/home/asiri/.m2/repository/xerces/xercesImpl/2.0.2/xercesImpl-2.0.2.jar
urls[93] = file:/home/asiri/.m2/repository/joda-time/joda-time/1.4/joda-
time-1.4.jar
urls[94] =
file:/home/asiri/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-
utils-1.1.jar
urls[95] = file:/home/asiri/.m2/repository/groovy/groovy-all-1.0-jsr
/06/groovy-all-1.0-jsr-06.jar
urls[96] = file:/home/asiri/.m2/repository/jtidy/jtidy/8.0-
20060801.131059-3-dev/jtidy-8.0-20060801.131059-3-dev.jar
urls[97] = file:/home/asiri/.m2/repository/batik/batik-css/1.6/batik-
css-1.6.jar
urls[98] = file:/home/asiri/.m2/repository/velocity/velocity/1.5/velocity-
1.5.jar
urls[99] =
file:/home/asiri/.m2/repository/commons-io/commons-io/1.2/commons-io-1.2.jar
urls[100] =
file:/home/asiri/.m2/repository/jfree/jfreechart/1.0.0-rc1/jfreechart-
1.0.0-rc1.jar
urls[101] = file:/home/asiri/.m2/repository/xpp3/xpp3/1.1.3.4-RC8/xpp3-
1.1.3.4-RC8.jar
[ERROR] Container realm = plexus.core
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/servlet/ServletOutputStream
at com.xpn.xwiki.tool.backup.AbstractPackager.createXWikiContext(
AbstractPackager.java:70)
at com.xpn.xwiki.tool.backup.Importer.importDocuments(Importer.java:63)
at com.xpn.xwiki.tool.backup.ImportMojo.execute(ImportMojo.java:64)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:573)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:501)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentsForProject
(DefaultLifecycleExecutor.java:265)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:191)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:149)
at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java
:225)
at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(
DefaultMaven.java:304)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(
MavenEmbedder.java:895)
at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(
MavenEmbedder.java:304)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:52)
Will deleting everything on my local repository fix this ?
I'm so stressed :( Can't build a single module.
- Asiri
Thanks.
- Asiri
>
> >
> > -Vincent
> >
> > > so i tried to change it to our own version of Maven (refer to
> > > settings.png attached ). But when i try to build XWiki (in
> > > m2eclipse) with the new settings, it complains that it is unable
to
> > > find the maven executable. If
you refer to error.png , it
becomes
> > > evident that m2eclipse
doesn't know how to handle path names in
> Linux.
> > >
> > > One more tiny problem is that i can't find any place where i can
set
> MAVEN_OPTS=-Xmx600m. But this can be overcome by
setting it in
> bash_profile, so I guess it is not a big deal.
>
> Any comments ?
>
> Thanks.
>
> - Asiri
>
>
> Thanks
> -Vincent
>
>
>
> <settings.png><error.png>
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs