ceylon-ide-eclipse build error

70 views
Skip to first unread message

Rumesh Eranga

unread,
Mar 20, 2015, 4:04:11 PM3/20/15
to ceylo...@googlegroups.com
Hi,

I am trying to build ceylon-ide-eclipse. I am following the README.md in the repository and following the maven method.  I am building the project on Windows 8 environment.

In the step 6, I executed 'mvn clean install -fae'
I am getting following error. Can someone help me to fix this?

[INFO] Adding repository file:../ceylon-dist/osgi/build/dist
[ERROR] Internal error: java.lang.RuntimeException: Failed to load p2 repository
 with ID 'ceylon-dist' from location file:../ceylon-dist/osgi/build/dist: URI is
 not hierarchical -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeExcept
ion: Failed to load p2 repository with ID 'ceylon-dist' from location file:../ce
ylon-dist/osgi/build/dist
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:166)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
356)
Caused by: java.lang.RuntimeException: Failed to load p2 repository with ID 'cey
lon-dist' from location file:../ceylon-dist/osgi/build/dist
        at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.loadMetadataRep
ository(TargetPlatformFactoryImpl.java:296)
        at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.gatherExternalI
nstallableUnits(TargetPlatformFactoryImpl.java:266)
        at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPla
tform(TargetPlatformFactoryImpl.java:164)
        at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPla
tform(TargetPlatformFactoryImpl.java:117)
        at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPla
tform(TargetPlatformFactoryImpl.java:1)
        at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.computeTargetP
latform(P2TargetPlatformResolver.java:214)
        at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolv
eProject(DefaultTychoDependencyResolver.java:100)
        at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProj
ectsRead(TychoMavenLifecycleParticipant.java:75)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:310)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
        ... 11 more
Caused by: org.eclipse.equinox.p2.core.ProvisionException: URI is not hierarchic
al
        at org.eclipse.equinox.internal.p2.engine.ProfileMetadataRepository.<ini
t>(ProfileMetadataRepository.java:50)
        at org.eclipse.equinox.internal.p2.engine.ProfileMetadataRepositoryFacto
ry.load(ProfileMetadataRepositoryFactory.java:36)
        at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositor
yManager.factoryLoad(MetadataRepositoryManager.java:57)
        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepository
Manager.loadRepository(AbstractRepositoryManager.java:768)
        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepository
Manager.loadRepository(AbstractRepositoryManager.java:668)
        at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositor
yManager.loadRepository(MetadataRepositoryManager.java:96)
        at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepos
itory(RemoteMetadataRepositoryManager.java:59)
        at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepos
itory(RemoteMetadataRepositoryManager.java:52)
        at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.loadMetadataRep
ository(TargetPlatformFactoryImpl.java:292)
        ... 20 more
Caused by: java.lang.IllegalArgumentException: URI is not hierarchical
        at java.io.File.<init>(File.java:392)
        at org.eclipse.equinox.internal.p2.engine.ProfileMetadataRepository.getP
rofile(ProfileMetadataRepository.java:173)
        at org.eclipse.equinox.internal.p2.engine.ProfileMetadataRepository.<ini
t>(ProfileMetadataRepository.java:48)
        ... 28 more
[ERROR]


David Festal

unread,
Mar 20, 2015, 4:13:31 PM3/20/15
to ceylo...@googlegroups.com
Hi Ramesh,

Are you sure you performed steps 2 and 3 of the 'build by Tycho.Maven 3
(https://github.com/ceylon/ceylon-ide-eclipse#building-with-tychomaven-3) ?
You must have the ceylon-dist, ceylon-compiler, ... projects directories
just besides the 'ceylon-ide-eclipse' directory.

Hope this helps,

Regards,

David.
> --
> You received this message because you are subscribed to the Google
> Groups "ceylon-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ceylon-dev+...@googlegroups.com.
> To post to this group, send email to ceylo...@googlegroups.com.
> Visit this group at http://groups.google.com/group/ceylon-dev.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ceylon-dev/CAKGoiOZegc9pXaYD5PRM7kO7KfmVmWWosKNMY8ZQe1ag7kpyJQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.


Rumesh Eranga

unread,
Mar 20, 2015, 4:37:39 PM3/20/15
to ceylo...@googlegroups.com
Hi David,

Yeah I performed those steps. But I found out that I had missed the "ant ide".

So I again issued "ant ide" and got an error as follows.

BUILD FAILED
E:\Rumesh\Development\Git\ceylon\ceylon-dist\build.xml:134: The following error occurred while executing this line:
E:\Rumesh\Development\Git\ceylon\ceylon-dist\build.xml:140: The following error occurred while executing this line:
E:\Rumesh\Development\Git\ceylon\ceylon-dist\build.xml:150: The following error occurred while executing this line:
E:\Rumesh\Development\Git\ceylon\ceylon-compiler\build.xml:195: Compile failed; see the compiler error output for details.
Total time: 13 minutes 46 seconds

before these lines there were lot of error lines which are similar to following
[javac] at com.sun.tools.javac.code.Types$Rewriter.visitClassType(Types. java:3563)

Any idea why is that?

Thanks

Rumesh Eranga

unread,
Mar 20, 2015, 4:54:43 PM3/20/15
to ceylo...@googlegroups.com
Found out that I am getting a Stackoverflow error.

test.classes:
    [javac] Compiling 177 source files to E:\Rumesh\Development\Git\ceylon\ceylon-compiler\build\classes
    [javac] 
    [javac] 
    [javac] The system is out of resources.
    [javac] Consult the following stack trace for details.
    [javac] java.lang.StackOverflowError
    [javac] at com.sun.tools.javac.code.Types$Rewriter.visitWildcardType(Types.java:3605)
    [javac] at com.sun.tools.javac.code.Types$Rewriter.visitWildcardType(Types.java:3548)



Rumesh Eranga

unread,
Mar 21, 2015, 4:53:53 AM3/21/15
to ceylo...@googlegroups.com
Hi all,

I tried the same in Ubuntu and successfully got it working. Still no idea why I got an StackOverflowError. Any thoughts? 

Thanks

Tako Schotanus

unread,
Mar 21, 2015, 6:26:36 AM3/21/15
to ceylon-dev

On Sat, Mar 21, 2015 at 9:53 AM, Rumesh Eranga <rehr...@gmail.com> wrote:
Still no idea why I got an StackOverflowError. Any thoughts? 

I have no idea to be honest, I just updated and compiled everything on Windows and it seems to work just fine (from within a Git Bash shell).

-Tako

Rumesh Eranga

unread,
Mar 21, 2015, 6:59:51 AM3/21/15
to ceylo...@googlegroups.com
May be its due to some configuration error in my system. I'll investigate furthermore and post it here if I find anything useful. 

--
You received this message because you are subscribed to the Google Groups "ceylon-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-dev+...@googlegroups.com.
To post to this group, send email to ceylo...@googlegroups.com.
Visit this group at http://groups.google.com/group/ceylon-dev.

Tako Schotanus

unread,
Mar 21, 2015, 7:07:45 AM3/21/15
to ceylon-dev
What versions of Java, Ant and Maven are you using?

In my case on Windows:

java version "1.8.0_31"
Apache Ant(TM) version 1.9.3 compiled on December 23 2013
Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; 2014-06-17T15:51:42+02:00)




-Tako

Rumesh Eranga

unread,
Mar 21, 2015, 11:58:26 PM3/21/15
to ceylo...@googlegroups.com
Hi,

These are the versions I am using.

javac 1.7.0
Apache Ant(TM) version 1.9.4 compiled on April 29 2014
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-12T02:28:10+05:30)


Regards.

Rumesh


Rumesh Eranga

unread,
Mar 21, 2015, 11:59:00 PM3/21/15
to ceylo...@googlegroups.com
OS : Windows 8 (64bit)

Thanks

Tako Schotanus

unread,
Mar 22, 2015, 5:10:24 AM3/22/15
to ceylon-dev
Well that all seems ok, so that's probably not the problem.


-Tako

Reply all
Reply to author
Forward
0 new messages