[xwiki-dev] Big problem with building the xwiki-platform-core
Catalin Hritcu
catalin.hritcu at gmail.com
Sat Jun 23 10:50:07 CEST 2007
Me again,
Maybe I should be more concrete here.
On 6/23/07, Catalin Hritcu <catalin.hritcu at gmail.com> wrote:
> Good morning,
>
> Once Vincent wakes up he will be able to explain better what causes
> this. To what he told me it is caused by a limitation in maven 2, but
> there is an easy workaround: put the xwiki remote repository in your
> ~/.m2/settings.xml
>
Here is what I put in the ~/.m2/settings.xml file in order for the
build to work:
<settings>
<proxies>
</proxies>
<servers>
</servers>
<profiles>
<profile>
<id>xwiki-repo</id>
<repositories>
<repository>
<id>xwiki</id>
<name>XWiki Maven2 Remote Repository</name>
<url>http://maven.xwiki.org</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<!-- activeProfiles
| List of profiles that are active for all builds.
|-->
<activeProfiles>
<activeProfile>xwiki-repo</activeProfile>
</activeProfiles>
</settings>
Regards,
Catalin
> On 6/23/07, David Ward <dward at curriki.org> wrote:
> > I think Vincent is probably still working on things a bit.
> >
> > I'm using trunks-devs and it seems that I can get xwiki-platform-core
> > to compile, but not package (or install). It seems that many of the
> > tests are failing.
> >
> > The most common error is (25 times):
> >
> > java.lang.NoClassDefFoundError
> > at org.jmock.cglib.CGLIBCoreMock.<init>(CGLIBCoreMock.java:48)
> >
> > but I also got:
> >
> > java.lang.NoSuchMethodError:
> > org.objectweb.asm.ClassVisitor.visit(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
> > at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:101)
> >
> >
> > Is this an issue with the asm/jMock/CGLib versions?
> >
> >
> > David
> > dward at curriki.org
> > --
> >
> > On 6/22/07, evelyne24 at gmail.com <evelyne24 at gmail.com> wrote:
> > > Hello,
> > >
> > > Sorry if this mail arrives twice...I sent one in the morning but no reply so...I guess no one's got it.
> > > The problem is that after this change in the svn repository I can't build the xwiki-platform-core in Eclipse. There is no build.xml file and there are a lot of errors when I create a new project based on xwiki-platform-core directory (lots of libraries missing and othes errors).
> > >
> > > Sergiu has been trying to help me since this morning, but unfortunately it still doesn't work. I tried with mvn, in order to build the war and then put in the tomcat or jetty but when I run mvn install in the xwiki=platform-core directory I get a lot of errors, like
> > >
> > >
> > > D:\XWiki\src2\xwiki-platform-core>mvn install
> > > [INFO] Scanning for projects...
> > > [INFO] ------------------------------------------------------------------------
> > > [ERROR] FATAL ERROR
> > > [INFO] ------------------------------------------------------------------------
> > > [INFO] Error building POM (may not be this project's POM).
> > >
> > >
> > > Project ID: null:xwiki-core:jar:1.1-SNAPSHOT
> > >
> > > Reason: Cannot find parent: com.xpn.xwiki:xwiki for project: null:xwiki-core:jar
> > > :1.1-SNAPSHOT for project null:xwiki-core:jar:1.1-SNAPSHOT
> > >
> > >
> > > [INFO] ------------------------------------------------------------------------
> > > [INFO] Trace
> > > org.apache.maven.reactor.MavenExecutionException: Cannot find parent: com.xpn.xw
> > > iki:xwiki for project: null:xwiki-core:jar:1.1-SNAPSHOT for project null:xwiki-c
> > > ore:jar:1.1-SNAPSHOT
> > > at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
> > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
> > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> > > java:39)
> > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > > sorImpl.java:25)
> > > at java.lang.reflect.Method.invoke(Method.java:597)
> > > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > > at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > >
> > > at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent
> > > : com.xpn.xwiki:xwiki for project: null:xwiki-core:jar:1.1-SNAPSHOT for project
> > > null:xwiki-core:jar:1.1-SNAPSHOT
> > > at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> > > efaultMavenProjectBuilder.java:1261)
> > > at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
> > > aultMavenProjectBuilder.java:747)
> > > at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
> > > leInternal(DefaultMavenProjectBuilder.java:479)
> > > at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
> > > nProjectBuilder.java:200)
> > > at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553)
> > > at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467)
> > > at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364)
> > > ... 11 more
> > > Caused by: org.apache.maven.project.ProjectBuildingException: POM 'com.xpn.xwiki
> > > :xwiki' not found in repository: Unable to download the artifact from any reposi
> > > tory
> > >
> > >
> > > etc.....
> > > I have no access to svn://svn.forge.objectweb.org/svnroot/xwiki/trunks-devs (apparently Sergiu is not getting this errors but he's using this while I'm using svn://svn.forge.objectweb.org/svnroot/xwiki/trunks-users )
> > >
> > > So, if anyone has succeeded in building the xwiki after the change in the svn directory, please help me, I'm in big trouble and I can' continue working.
> > >
> > > Thank you very much.
> > >
> > > Evelina
> > >
> > >
> > >
> > > --
> > > You receive this message as a subscriber of the xwiki-dev at objectweb.org mailing list.
> > > To unsubscribe: mailto:xwiki-dev-unsubscribe at objectweb.org
> > > For general help: mailto:sympa at objectweb.org?subject=help
> > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> > >
> > >
> >
> >
> >
> > --
> > You receive this message as a subscriber of the xwiki-dev at objectweb.org mailing list.
> > To unsubscribe: mailto:xwiki-dev-unsubscribe at objectweb.org
> > For general help: mailto:sympa at objectweb.org?subject=help
> > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >
> >
>
More information about the devs
mailing list