Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] Error assembling JAR: Could not find a common basedir

this could be a bug in the Eclipse-SourceReference provider for git [1]

it tries to compute the relative path from the project basedir to the git repo root which fails in this case

"Could not find a common basedir of c:\v\rt.equinox.framework\bundles\org.eclipse.osgi and C:\v\.git\modules"

this may have to do with git submodules or the way CBI build uses them.

I would expect the git root to be be c:\v\rt.equinox.framework\.git instead of C:\v\.git\modules.

Jan

[1] http://git.eclipse.org/c/tycho/org.eclipse.tycho.extras.git/tree/tycho-sourceref-jgit/src/main/java/org/eclipse/tycho/extras/sourceref/jgit/JGitSourceReferencesProvider.java 

From: cbi-dev-bounces@xxxxxxxxxxx [mailto:cbi-dev-bounces@xxxxxxxxxxx] On Behalf Of Thanh Ha
Sent: Mittwoch, 7. November 2012 00:40
To: cbi-dev@xxxxxxxxxxx
Subject: Re: [cbi-dev] Error assembling JAR: Could not find a common basedir

Hi Everyone,

I discovered I was able to reproduce this issue on a different computer and attached a debug log of when I try to build org.eclipse.osgi. I'm still unsure what it is exactly that causes this since I can build just fine on another computer.

One hint I was able to find though is it might be related to when we added scmUrls in a previous commit [1]. I found if I rolled back to the commit previous I was able to build just fine on this system. At this point I'm not sure what else I can look at, it seems weird to me that this would work just fine on one system but not another.

I have maven 3.0.4 on both systems and the same jre 1.6 on both systems. Only thing that appears different is I'm using Git 1.8 on the system that is failing, and Git 1.7.7 on the system where the build works.


Thanh

[1] http://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/commit/?h=R4_2_maintenance&id=5bbb8b193691eea7a667eab1f2b307d537e4e13c


On 06/11/2012 9:00 AM, Thanh Ha wrote:
Hi Everyone,

I was wondering if anyone has seen the build issue below before?

Andrew and some others have run into this error but I have not been able to reproduce it so I'm not entirely sure what causes this problem. Any insight would be appreciated.

Thanks,


Thanh
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.16.0:package-plugin (default-package-plugin) on project org.eclipse.osgi: 
Error assembling JAR: Could not find a common basedir of D:\lts\eclipse.platform.releng.aggregator\rt.equinox.framework\bundles\org.eclipse.osgi and D:\lts\eclipse.platform.releng.aggregator\.git\modules -> [Help 1]



_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cbi-dev



Back to the top