Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [birt-dev] Build Birt with mvn

Hi Ben & BIRT Committers,

Using maven 3.3.3 to build BIRT, and doing - mvn package -DskipTests, also results in build failures. It is at the end of the email.
I followed the instructions on https://github.com/eclipse/birt, and downloaded the source as a zip file before trying to build it. Also had to set up a toolchains.xml under .m2. Tried with the following combinations and all of them lead to failures.
1. Used maven 3.3.3 and branch birt-Neon.
2. Used maven 3.3.1 and branch birt-Neon.
3. Used maven 3.3.3 and branch master.

Please excuse me if I haven't followed something obvious. 
Before this, I have not gone so far into the Eclipse ecosystem so I have gaps in my knowledge.


[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.25.0:package-plugin (default-package-plugin) on project org.eclipse.birt.axis.overlay: Execution default-package-plugin of goal org.eclipse.tycho:tycho-packaging-plugin:0.25.0:package-plugin failed: One of setGitDir or setWorkTree must be called. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.25.0:package-plugin (default-package-plugin) on project org.eclipse.birt.axis.overlay: Execution default-package-plugin of goal org.eclipse.tycho:tycho-packaging-plugin:0.25.0:package-plugin failed: One of setGitDir or setWorkTree must be called.
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-package-plugin of goal org.eclipse.tycho:tycho-packaging-plugin:0.25.0:package-plugin failed: One of setGitDir or setWorkTree must be called.
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 20 more
Caused by: java.lang.IllegalArgumentException: One of setGitDir or setWorkTree must be called.
        at org.eclipse.jgit.lib.BaseRepositoryBuilder.requireGitDirOrWorkTree(BaseRepositoryBuilder.java:588)
        at org.eclipse.jgit.lib.BaseRepositoryBuilder.setup(BaseRepositoryBuilder.java:554)
        at org.eclipse.jgit.storage.file.FileRepositoryBuilder.build(FileRepositoryBuilder.java:92)
        at org.eclipse.tycho.extras.sourceref.jgit.JGitSourceReferencesProvider.getSourceReferencesHeader(JGitSourceReferencesProvider.java:41)
        at org.eclipse.tycho.packaging.sourceref.SourceReferenceComputer.addSourceReferenceHeader(SourceReferenceComputer.java:50)
        at org.eclipse.tycho.packaging.PackagePluginMojo.updateManifest(PackagePluginMojo.java:269)
        at org.eclipse.tycho.packaging.PackagePluginMojo.createPluginJar(PackagePluginMojo.java:226)
        at org.eclipse.tycho.packaging.PackagePluginMojo.execute(PackagePluginMojo.java:154)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        ... 21 more
[ERROR]






Best regards,
Zorawar



On Sat, Feb 25, 2017 at 12:11 AM, Ben Gamble <bgamble@xxxxxxxxxxxx> wrote:
Build using maven 3.3.3.  One of the quirks of tycho is that plugin version information might conflict between maven and osgi, and the versioning strategy currently in place relies on maven bug MNG-5840 which was fixed in 3.3.9.

--
Ben Gamble // bgamble@xxxxxxxxxxxx

-----Original Message-----
From: birt-dev-bounces@xxxxxxxxxxx [mailto:birt-dev-bounces@eclipse.org] On Behalf Of Lars Vogel
Sent: Friday, February 24, 2017 2:46 AM
To: birt-dev@xxxxxxxxxxx
Subject: [birt-dev] Build Birt with mvn

Dear friends of Birt,

I'm new to the BIRT code base and clone the repo. According to the README.md I should be able to build it via:

mvn package -DskipTests

This fails with lots of the following error messages:

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for
org.eclipse.birt.build:org.eclipse.birt.build-parent:[unknown-version]:
Could not find artifact
org.eclipse.birt:org.eclipse.birt-parent:pom:0.0.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 4, column 10 [FATAL] Non-resolvable parent POM for
org.eclipse.birt.chart:org.eclipse.birt.chart-parent:[unknown-version]:
Could not find artifact
org.eclipse.birt:org.eclipse.birt-parent:pom:0.0.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 5, column 10 [FATAL] Non-resolvable parent POM for
org.eclipse.birt.common:org.eclipse.birt.common-parent:[unknown-version]:
Could not find artifact
org.eclipse.birt:org.eclipse.birt-parent:pom:0.0.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 4, column 10 [FATAL] Non-resolvable parent POM for
org.eclipse.birt.core:org.eclipse.birt.core-parent:[unknown-version]:
Could not find artifact
org.eclipse.birt:org.eclipse.birt-parent:pom:0.0.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 4, column 10 [FATAL] Non-resolvable parent POM for
org.eclipse.birt.data:org.eclipse.birt.data-parent:[unknown-version]:
Could not find artifact
org.eclipse.birt:org.eclipse.birt-parent:pom:0.0.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 4, column 10


Any advice how to fix that?

Best regards, Lars

--
Eclipse Platform UI and e4 project co-lead CEO vogella GmbH

Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: https://urldefense.proofpoint.com/v2/url?u=http-3A__www.vogella.com&d=DwIGaQ&c=ZgVRmm3mf2P1-XDAyDsu4A&r=qFz7FW0_JPLxtOHR-ix3P-yjcpmGJ9OIHshnfMgHtPw&m=ztUA8o17z5-E2_lNQjiUqet27gxVxb2PW2sp8keYlas&s=Pz-09ju8icRRVBUN7E6NJ3nO228XE6R4iYt_znt9VbU&e=
_______________________________________________
birt-dev mailing list
birt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://urldefense.proofpoint.com/v2/url?u=https-3A__dev.eclipse.org_mailman_listinfo_birt-2Ddev&d=DwIGaQ&c=ZgVRmm3mf2P1-XDAyDsu4A&r=qFz7FW0_JPLxtOHR-ix3P-yjcpmGJ9OIHshnfMgHtPw&m=ztUA8o17z5-E2_lNQjiUqet27gxVxb2PW2sp8keYlas&s=f3grscqACyj-ippOQcd4nTNPNRij8Nncx2iRzXFY7nE&e=
_______________________________________________
birt-dev mailing list
birt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/birt-dev


Back to the top