Hi Thomas,
On Tue, Mar 25, 2008 at 3:05 PM, Thomas Mortagne <thomas.mortagne(a)xwiki.com>
wrote:
Hi Asiri,
On Tue, Mar 25, 2008 at 9:02 AM, Asiri Rathnayake
<asiri.rathnayake(a)gmail.com> wrote:
Hi Pascal,
On Tue, Mar 25, 2008 at 1:13 PM, Pascal Voitot <
pascal.voitot.dev(a)gmail.com>
wrote:
I'm going to try the tutorial from scratch
today...
I use Eclipse Europa on Linux but I can also try it on Windows...
Thanks a lot. I'm also trying it out with a fresh installation of J2EE
eclipse and an empty local repository. I emptied the repository since
you
advised having both m2eclipse and command-line
version of maven could
be a
problem. let's see how it goes.
-Asiri
For more details on configuration which worked for me :
- Ubuntu Linux 7.10 + Eclipse J2EE Europa (3.3)
- Ubuntu Linux 7.10 + Eclipse Standard 3.4 + JSP/WSP installed by hand
- Ubuntu Linux 8.04 + Eclipse J2EE Europa (3.3) + AJDT (I doubt this
has anything to do with mvn install)
- Fedora Core 6 + Eclipse J2EE Europa (3.3.2) still fails for me :(
<DUMP>
[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
</DUMP>
- Asiri
In all theses configuration I always had command-line
maven used (I
prefer use command-line to lauch mvn install et make releases) with no
conflict.
In fact lauch mvn install from Eclipse always worked better for me
because m2eclipse embedded maven correctly execute Checkstyle tests :)
I'm rereading your error message trying to figure out what could be
the problem...
br
Pascal
On 3/25/08, Asiri Rathnayake <asiri.rathnayake(a)gmail.com> wrote:
>
> Hi Vincent,
>
> On Sat, Mar 22, 2008 at 5:10 PM, Vincent Massol <vincent(a)massol.net
> > wrote:
> >
> > >
> > > On Mar 22, 2008, at 9:38 AM, Asiri Rathnayake wrote:
> > >
> > > Hi Vincent,
> > >
> > > On Sat, Mar 22, 2008 at 1:57 PM, 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.
> > > >
> > >
> > > In that case, can you verify
> > >
http://dev.xwiki.org/xwiki/bin/view/Community/BuildingInEclipseand
> let
> > me
> > > know if the m2eclipse guide is ok. May be we should add a warning
for
> > linux
> > > users there and finish it off.
> > >
> > >
> > > The best would be for you to get it working since I don't see how
you
> > can
> > > write a tutorial if you haven't used it :)
> > >
> >
> > Well, it's working. I mean it's working for goals like 'mvn
clean'.
But
> i
> > couldn't get it to work with 'mvn install'. The screen-shots are
from
> 'mvn
> > clean'. Thomas confirmed that the tutorial is OK.
> >
> > May be if someone else can follow the tutorial from scratch and see
if
> > it's
> > working for 'mvn install' ?
> >
> > I think the issues with my experiences are specific to my
configuration,
> I
> > tried m2eclipse with 'Eclipse Standard' version. I'll try it with
> 'Eclipse
> > for J2EE developers' soon.
> >
> > Thanks.
> >
> > - Asiri
> >
> >
> > >
> > > If you cannot then I'll need to find the time to write the
tutorial.
> > Let's
> > > see what Thomas says since I think he's on linux.
> > >
> > > Thanks
> > > -Vincent
> > >
> > > FWIW I'm using Eclipse 3.4M5.
> > > >
> > > > -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
_______________________________________________
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