On 17/07/14 08:31 AM, Phil Mason wrote:
An error occurred while publishing bundle /home/pmason/platform-build-test/eclipse.platform.releng.aggregator/eclipse.jdt.core/org.eclipse.jdt.core/target/org.eclipse.jdt.core-3.9.2-SNAPSHOT.jar: zip file is empty
The build command I'm now running is this:
mvn --offline -X --toolchains /home/pmason/toolchains.xml -Pbree-libs -Dmaven.repo.local=/home/pmason/mvn-repo -Djava.io.tmpdir=/home/pmason/mvn-tmp-dir -Declipse.p2.mirrors=false clean verify 2>&1 | tee build_log.txt
Hmm one difference in your command from mine is I don't use
"-Decilpse.p2.mirrors=false" I wonder if that somehow is causing
your offline builds to fail. I know I've seen this issue before in
my case when the comparator repo points to an invalid P2 URL.
The build is configured to reuse the old bundles released bundles if
the contents of the new jar for a bundle is exactly the same as an
older version. It does this by comparing the built jars to a
comparator repo which is defined in the
eclipse-platform-parent/pom.xml file (Look for the line:
<comparator.repo>http://download.eclipse.org/eclipse/updates/4.5-I-builds</comparator.repo> for example).
You can disable the comparator by my setting the line
<baselineReplace>all</baselineReplace> to "none" (it's
in the pluginManagaement section for tycho-p2-plugin). However keep
in mind this will cause your build to not reuse older released
artifacts thus your new build will have newer qualifiers even if the
bundle itself hasn't changed.
Another unrelated issue is that I've been trying to speed things up by running parallel builds in maven using the -T flag but that doesn't seem to work. Should I expect it to?
Unfortunately parallel builds is not supported because the build
depends on Tycho, a Maven plugin which does not support parallel
builds [1].
Hope this helps,
Thanh
[1] https://bugs.eclipse.org/380169