Failing to build

15 views
Skip to first unread message

michael holzer

unread,
Sep 13, 2011, 4:22:07 AM9/13/11
to Scala IDE Dev
Hi everyone,

I'm trying to build the IDE, but maven seems to fail to collect all the
dependencies. The maven output is attached.
Any ideas?

Thanks,
michael

maven.txt

Mirko Stocker

unread,
Sep 13, 2011, 4:47:35 AM9/13/11
to scala-...@googlegroups.com, michael holzer
Hi Michael

On Tuesday 13 September 2011 10:22:07 michael holzer wrote:
> I'm trying to build the IDE, but maven seems to fail to collect all the
> dependencies. The maven output is attached.
> Any ideas?

Could it be this bug?

https://bugs.eclipse.org/bugs/show_bug.cgi?id=317785

Possible workarounds:
* use JRE6

:-)

Cheers,

Mirko

--
Mirko Stocker | m...@misto.ch
Work: http://ifs.hsr.ch | http://infoq.com
Personal: http://misto.ch | http://twitter.com/m_st

michael holzer

unread,
Sep 13, 2011, 7:47:00 AM9/13/11
to Mirko Stocker, scala-...@googlegroups.com
On 09/13/2011 10:47 AM, Mirko Stocker wrote:
> Hi Michael
>
> On Tuesday 13 September 2011 10:22:07 michael holzer wrote:
>> I'm trying to build the IDE, but maven seems to fail to collect all the
>> dependencies. The maven output is attached.
>> Any ideas?
> Could it be this bug?
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=317785
>
> Possible workarounds:
> * use JRE6
Thanks, at least this error is gone now, however with jre6 I'm now
getting this (interestingly, after moving back to jre7 again, I get
almost the same error):

[INFO] Adding repository (cached)
http://download.eclipse.org/tools/ajdt/36/update
[WARNING] Exception reading bundle manifest
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at
org.eclipse.tycho.core.osgitools.DefaultBundleReader.doLoadManifest(DefaultBundleReader.java:85)
at
org.eclipse.tycho.core.osgitools.DefaultBundleReader.loadManifest(DefaultBundleReader.java:54)
at
org.eclipse.tycho.core.osgitools.EquinoxResolver.loadManifest(EquinoxResolver.java:182)
at
org.eclipse.tycho.core.osgitools.EquinoxResolver.addBundle(EquinoxResolver.java:162)
at
org.eclipse.tycho.core.osgitools.EquinoxResolver.newState(EquinoxResolver.java:148)
at
org.eclipse.tycho.core.osgitools.EquinoxResolver.newResolvedState(EquinoxResolver.java:59)
at
org.eclipse.tycho.core.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:204)
at
org.eclipse.tycho.core.osgitools.OsgiBundleProject.resolve(OsgiBundleProject.java:150)
at
org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:101)
at
org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:91)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[ERROR] Internal error: java.lang.NullPointerException -> [Help 1]
org.apache.maven.InternalErrorException: Internal error:
java.lang.NullPointerException
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.NullPointerException
at
org.eclipse.osgi.internal.resolver.StateBuilder.createBundleDescription(StateBuilder.java:44)
at
org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl.createBundleDescription(StateObjectFactoryImpl.java:32)
at
org.eclipse.tycho.core.osgitools.EquinoxResolver.addBundle(EquinoxResolver.java:164)
at
org.eclipse.tycho.core.osgitools.EquinoxResolver.newState(EquinoxResolver.java:148)
at
org.eclipse.tycho.core.osgitools.EquinoxResolver.newResolvedState(EquinoxResolver.java:59)
at
org.eclipse.tycho.core.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:204)
at
org.eclipse.tycho.core.osgitools.OsgiBundleProject.resolve(OsgiBundleProject.java:150)
at
org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:101)
at
org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:91)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
... 11 more
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException

michael holzer

unread,
Sep 13, 2011, 10:07:16 AM9/13/11
to scala-...@googlegroups.com, Mirko Stocker
Finally got it to work, looks like something was wrong with my local
repository: switched to a new empty one and suddenly it worked :)

michael

Eric Molitor

unread,
Sep 13, 2011, 5:24:37 PM9/13/11
to Scala IDE Dev
Alternatively you can build against 3.7.1-SNAPSHOT which has this
issue fixed.

- Eric
Reply all
Reply to author
Forward
0 new messages