[xwiki-users] strange behaviour importing maven project with m2eclipse
Hi all, i checked out whole trunks under win platform, "import maven project" under./trunks gives weird results it produces strange directory layout, under ../trunks, and empty eclipse project (??!) $ find ../xwiki-web/ ../xwiki-web/ ../xwiki-web/.classpath ../xwiki-web/.project ../xwiki-web/bin ../xwiki-web/bin/.classpath ../xwiki-web/bin/.project mvn eclipse:eclipse under each trunks subdir produces good results, when imported as "java project" couldn't it be possible to provide better support for maven project import on eclipse ? (eclipse=3.3.1.1, M20071023-1652, m2eclipse=0.0.12.20071107-2300) i'll build xwiki anyway ... Regards
On Jan 30, 2008, at 10:30 PM, thierry henrio wrote:
Hi all, i checked out whole trunks under win platform, "import maven project" under./trunks gives weird results
it produces strange directory layout, under ../trunks, and empty eclipse project (??!) $ find ../xwiki-web/ ../xwiki-web/ ../xwiki-web/.classpath ../xwiki-web/.project ../xwiki-web/bin ../xwiki-web/bin/.classpath ../xwiki-web/bin/.project
mvn eclipse:eclipse under each trunks subdir produces good results, when imported as "java project"
couldn't it be possible to provide better support for maven project import on eclipse ? (eclipse=3.3.1.1, M20071023-1652, m2eclipse=0.0.12.20071107-2300)
Sure. Can you tell us how to do this? Thanks -Vincent
Gleefully,Vincent given gastroll@babasse /cygdrive/c/home/gastroll/opensource/xwiki/trunks $ ls pom.xml* xwiki-platform-tools/ xwiki-extension-eclipse/ xwiki-platform-web/ xwiki-platform-applications/ xwiki-product-curriki/ xwiki-platform-core/ xwiki-product-enterprise/ xwiki-platform-plugins/ xwiki-product-enterprise-manager/ xwiki-platform-pom/ xwiki-product-watch/ xwiki-platform-skins/ action = "import maven projects" root directory = C:\home\gastroll\opensource\xwiki\trunks\xwiki-platform-web/ advanced option = none result = empty eclipse project xwiki-platform-web + ../xwiki-platform-web strange directory gastroll@babasse /cygdrive/c/home/gastroll/opensource/xwiki/trunks $ find ../xwiki-web/ ../xwiki-web/ ../xwiki-web/.classpath ../xwiki-web/.project ../xwiki-web/bin ../xwiki-web/bin/.classpath ../xwiki-web/bin/.project checkout was produced using subversive (svn tree looked as nice as expected) i decided to scratch a new workspace for a clean install with brand new svn tree using tortoise and btw, upgrade to mvn 2.1-SNAPSHOT above scenario was reproduced importing whole ./trunks as directory root for "maven import" produces similar gastroll@babasse /cygdrive/c/home/gastroll/osf/xwiki $ find xwiki-externals/ xwiki-externals/ xwiki-externals/.classpath xwiki-externals/.project xwiki-externals/bin xwiki-externals/bin/.classpath xwiki-externals/bin/.project anyway, i'll mvn eclipse:eclipse all these, in the meantime Regards, Thierry
On Jan 31, 2008, at 1:22 AM, thierry henrio wrote:
Gleefully,Vincent
given gastroll@babasse /cygdrive/c/home/gastroll/opensource/xwiki/trunks $ ls pom.xml* xwiki-platform-tools/ xwiki-extension-eclipse/ xwiki-platform-web/ xwiki-platform-applications/ xwiki-product-curriki/ xwiki-platform-core/ xwiki-product-enterprise/ xwiki-platform-plugins/ xwiki-product-enterprise-manager/ xwiki-platform-pom/ xwiki-product-watch/ xwiki-platform-skins/
action = "import maven projects" root directory = C:\home\gastroll\opensource\xwiki\trunks\xwiki- platform-web/ advanced option = none
result = empty eclipse project xwiki-platform-web + ../xwiki- platform-web strange directory gastroll@babasse /cygdrive/c/home/gastroll/opensource/xwiki/trunks $ find ../xwiki-web/ ../xwiki-web/ ../xwiki-web/.classpath ../xwiki-web/.project ../xwiki-web/bin ../xwiki-web/bin/.classpath ../xwiki-web/bin/.project
checkout was produced using subversive (svn tree looked as nice as expected)
Have you tried using mvn eclipse:eclipse?
i decided to scratch a new workspace for a clean install with brand new svn tree using tortoise and btw, upgrade to mvn 2.1-SNAPSHOT
You shouldn't do that. You MUST use the maven version we're asking you to use or you're on your own... Again see the building page on dev.xwiki.org. Please try to follow what's there.
above scenario was reproduced
importing whole ./trunks as directory root for "maven import" produces similar gastroll@babasse /cygdrive/c/home/gastroll/osf/xwiki $ find xwiki-externals/ xwiki-externals/ xwiki-externals/.classpath xwiki-externals/.project xwiki-externals/bin xwiki-externals/bin/.classpath xwiki-externals/bin/.project
anyway, i'll mvn eclipse:eclipse all these, in the meantime
Yes, that's what needs to be done with maven projects. -Vincent
Hi, On Jan 30, 2008, at 10:30 PM, thierry henrio wrote:
Hi all, i checked out whole trunks under win platform, "import maven project" under./trunks gives weird results
it produces strange directory layout, under ../trunks, and empty eclipse project (??!)
No, it's not empty... Check the building page on dev.xwiki.org there are instructions there to build everything including the xeclipse projects.
$ find ../xwiki-web/ ../xwiki-web/ ../xwiki-web/.classpath ../xwiki-web/.project ../xwiki-web/bin ../xwiki-web/bin/.classpath ../xwiki-web/bin/.project
All you're listing here are files generated by Eclipse. Not sure what you find wrong with them?
mvn eclipse:eclipse under each trunks subdir produces good results, when imported as "java project"
couldn't it be possible to provide better support for maven project import on eclipse ? (eclipse=3.3.1.1, M20071023-1652, m2eclipse=0.0.12.20071107-2300)
AFAIK several of us are using Eclipse to work on xwiki and it seems to work just fine. Not sure what you want improved. Thanks -Vincent
participants (2)
-
thierry henrio -
Vincent Massol