Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Error in Building(Error while building Kura from develop branch)
Error in Building [message #1694986] Mon, 11 May 2015 08:41 Go to next message
Amit Kumar Mondal is currently offline Amit Kumar MondalFriend
Messages: 108
Registered: March 2015
Location: Munich, Germany
Senior Member

Hi,

I tried to build the complete source code from develop branch to get the recent updated version of Eclipse Kura. I have followed the mentioned procedure as found in the following.

http://wiki.eclipse.org/Kura/Getting_Started

I tried to build the source with Web UI Support.

The error which popped up is the following.

Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-1:read-project-properties (default) on project org.eclipse.kura.web: Properties file not found: /Users/AMIT/bitbucket/kura/kura/org.eclipse.kura.web/../distrib/build.properties


I checked the location to see if it has the properties file it is asking for. There is no properties file present in distrib folder.

It would be helpful if anyone can help me in this regard.


Amit Kumar Mondal
Email: admin@amitinside.com
Skype: arsenalnerk Blog: blog.amitinside.com
Re: Error in Building [message #1695007 is a reply to message #1694986] Mon, 11 May 2015 11:10 Go to previous messageGo to next message
Amit Kumar Mondal is currently offline Amit Kumar MondalFriend
Messages: 108
Registered: March 2015
Location: Munich, Germany
Senior Member

I don't have any clue how it worked now. Anyways I can build the complete Source from Develop branch now.

Amit Kumar Mondal
Email: admin@amitinside.com
Skype: arsenalnerk Blog: blog.amitinside.com
Re: Error in Building [message #1695205 is a reply to message #1695007] Tue, 12 May 2015 15:52 Go to previous messageGo to next message
Amit Kumar Mondal is currently offline Amit Kumar MondalFriend
Messages: 108
Registered: March 2015
Location: Munich, Germany
Senior Member

Today, just after b8f7fb7 commit, I am not able to build at all.

The error log as mentioned below:

Could not find artifact org.eclipse.kura:org.eclipse.kura.core.log:jar:1.0.0-SNAPSHOT in kura_addons (https://raw.github.com/eurotech/kura_addons/mvn-repo/)


Amit Kumar Mondal
Email: admin@amitinside.com
Skype: arsenalnerk Blog: blog.amitinside.com
Re: Error in Building [message #1695361 is a reply to message #1695205] Wed, 13 May 2015 17:34 Go to previous messageGo to next message
Amit Kumar Mondal is currently offline Amit Kumar MondalFriend
Messages: 108
Registered: March 2015
Location: Munich, Germany
Senior Member

I just have updated my local repo with remote updates.

Now the error while building:

Console.java:[173,49] error: incompatible types: char[] cannot be converted to String



Amit Kumar Mondal
Email: admin@amitinside.com
Skype: arsenalnerk Blog: blog.amitinside.com
Re: Error in Building [message #1695391 is a reply to message #1695361] Wed, 13 May 2015 23:44 Go to previous messageGo to next message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
The builds are succeeding on Hudson. Can you maybe try cleaning your local Maven repo (rm -rf ~/.m2/repository/org/eclipse/kura) and rebuilding?

Thanks,
--Dave
Re: Error in Building [message #1695448 is a reply to message #1695391] Thu, 14 May 2015 18:06 Go to previous messageGo to next message
Amit Kumar Mondal is currently offline Amit Kumar MondalFriend
Messages: 108
Registered: March 2015
Location: Munich, Germany
Senior Member

I tried deleting my local repo files for Kura, but now I am encountering the following errors.

[DEBUG] Could not find metadata org.eclipse.kura:org.eclipse.kura.api/maven-metadata.xml in local (/Users/AMIT/.m2/repository)
[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://repo.maven.apache.org/maven2
[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://raw.github.com/eurotech/kura_addons/mvn-repo/
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://raw.github.com/eurotech/kura_addons/mvn-repo/
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2
Downloading: https://raw.github.com/eurotech/kura_addons/mvn-repo/org/eclipse/kura/org.eclipse.kura.api/maven-metadata.xml
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/kura/org.eclipse.kura.api/maven-metadata.xml
[DEBUG] Writing tracking file /Users/AMIT/.m2/repository/org/eclipse/kura/org.eclipse.kura.api/resolver-status.properties
[DEBUG] Writing tracking file /Users/AMIT/.m2/repository/org/eclipse/kura/org.eclipse.kura.api/resolver-status.properties
[DEBUG] Could not find metadata org.eclipse.kura:org.eclipse.kura.api/maven-metadata.xml in kura_addons (https://raw.github.com/eurotech/kura_addons/mvn-repo/)
[DEBUG] Could not find metadata org.eclipse.kura:org.eclipse.kura.api/maven-metadata.xml in central (https://repo.maven.apache.org/maven2)
[DEBUG] Could not find metadata org.eclipse.kura:org.eclipse.kura.core/maven-metadata.xml in local (/Users/AMIT/.m2/repository)
[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://raw.github.com/eurotech/kura_addons/mvn-repo/
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://raw.github.com/eurotech/kura_addons/mvn-repo/
[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://repo.maven.apache.org/maven2
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/kura/org.eclipse.kura.core/maven-metadata.xml
Downloading: https://raw.github.com/eurotech/kura_addons/mvn-repo/org/eclipse/kura/org.eclipse.kura.core/maven-metadata.xml
[DEBUG] Writing tracking file /Users/AMIT/.m2/repository/org/eclipse/kura/org.eclipse.kura.core/resolver-status.properties
[DEBUG] Writing tracking file /Users/AMIT/.m2/repository/org/eclipse/kura/org.eclipse.kura.core/resolver-status.properties
[DEBUG] Could not find metadata org.eclipse.kura:org.eclipse.kura.core/maven-metadata.xml in kura_addons (https://raw.github.com/eurotech/kura_addons/mvn-repo/)
[DEBUG] Could not find metadata org.eclipse.kura:org.eclipse.kura.core/maven-metadata.xml in central (https://repo.maven.apache.org/maven2)
[DEBUG] Could not find metadata org.eclipse.kura:org.eclipse.kura.core.configuration/maven-metadata.xml in local (/Users/AMIT/.m2/repository)
[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://raw.github.com/eurotech/kura_addons/mvn-repo/
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://raw.github.com/eurotech/kura_addons/mvn-repo/
Downloading: https://raw.github.com/eurotech/kura_addons/mvn-repo/org/eclipse/kura/org.eclipse.kura.core.configuration/maven-metadata.xml
[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://repo.maven.apache.org/maven2
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/kura/org.eclipse.kura.core.configuration/maven-metadata.xml
[DEBUG] Writing tracking file /Users/AMIT/.m2/repository/org/eclipse/kura/org.eclipse.kura.core.configuration/resolver-status.properties
[DEBUG] Writing tracking file /Users/AMIT/.m2/repository/org/eclipse/kura/org.eclipse.kura.core.configuration/resolver-status.properties
[DEBUG] Could not find metadata org.eclipse.kura:org.eclipse.kura.core.configuration/maven-metadata.xml in kura_addons (https://raw.github.com/eurotech/kura_addons/mvn-repo/)
[DEBUG] Could not find metadata org.eclipse.kura:org.eclipse.kura.core.configuration/maven-metadata.xml in central (https://repo.maven.apache.org/maven2)
[DEBUG] Could not find metadata org.eclipse.kura:org.eclipse.kura.core.net/maven-metadata.xml in local (/Users/AMIT/.m2/repository)
[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://repo.maven.apache.org/maven2
[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://raw.github.com/eurotech/kura_addons/mvn-repo/
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://raw.github.com/eurotech/kura_addons/mvn-repo/
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/kura/org.eclipse.kura.core.net/maven-metadata.xml
Downloading: https://raw.github.com/eurotech/kura_addons/mvn-repo/org/eclipse/kura/org.eclipse.kura.core.net/maven-metadata.xml
[DEBUG] Writing tracking file /Users/AMIT/.m2/repository/org/eclipse/kura/org.eclipse.kura.core.net/resolver-status.properties
[DEBUG] Writing tracking file /Users/AMIT/.m2/repository/org/eclipse/kura/org.eclipse.kura.core.net/resolver-status.properties
[DEBUG] Could not find metadata org.eclipse.kura:org.eclipse.kura.core.net/maven-metadata.xml in kura_addons (https://raw.github.com/eurotech/kura_addons/mvn-repo/)
[DEBUG] Could not find metadata org.eclipse.kura:org.eclipse.kura.core.net/maven-metadata.xml in central (https://repo.maven.apache.org/maven2)
[DEBUG] Could not find metadata org.eclipse.kura:org.eclipse.kura.deployment.agent/maven-metadata.xml in local (/Users/AMIT/.m2/repository)
[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://repo.maven.apache.org/maven2
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2
[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://raw.github.com/eurotech/kura_addons/mvn-repo/
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://raw.github.com/eurotech/kura_addons/mvn-repo/
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/kura/org.eclipse.kura.deployment.agent/maven-metadata.xml
Downloading: https://raw.github.com/eurotech/kura_addons/mvn-repo/org/eclipse/kura/org.eclipse.kura.deployment.agent/maven-metadata.xml
[DEBUG] Writing tracking file /Users/AMIT/.m2/repository/org/eclipse/kura/org.eclipse.kura.deployment.agent/resolver-status.properties
[DEBUG] Writing tracking file /Users/AMIT/.m2/repository/org/eclipse/kura/org.eclipse.kura.deployment.agent/resolver-status.properties
[DEBUG] Could not find metadata org.eclipse.kura:org.eclipse.kura.deployment.agent/maven-metadata.xml in kura_addons (https://raw.github.com/eurotech/kura_addons/mvn-repo/)
[DEBUG] Could not find metadata org.eclipse.kura:org.eclipse.kura.deployment.agent/maven-metadata.xml in central (https://repo.maven.apache.org/maven2)
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=1, ConflictMarker.markTime=0, ConflictMarker.nodeCount=15, ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=13, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=1, ConflictResolver.conflictItemCount=14, DefaultDependencyCollector.collectTime=24725, DefaultDependencyCollector.transformTime=2}
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] kura ............................................... SUCCESS [  0.447 s]
[INFO] org.eclipse.kura.web ............................... FAILURE [ 24.894 s]
[INFO] distrib ............................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.949 s
[INFO] Finished at: 2015-05-14T20:00:23+02:00
[INFO] Final Memory: 12M/169M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project org.eclipse.kura.web: Could not resolve dependencies for project org.eclipse.kura:org.eclipse.kura.web:war:1.0.4-SNAPSHOT: Failed to collect dependencies at org.eclipse.kura:org.eclipse.kura.api:jar:[1.0,2.0): No versions available for org.eclipse.kura:org.eclipse.kura.api:jar:[1.0,2.0) within specified range -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project org.eclipse.kura.web: Could not resolve dependencies for project org.eclipse.kura:org.eclipse.kura.web:war:1.0.4-SNAPSHOT: Failed to collect dependencies at org.eclipse.kura:org.eclipse.kura.api:jar:[1.0,2.0)
	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)
	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
	at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
	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:120)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
	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:497)
	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.project.DependencyResolutionException: Could not resolve dependencies for project org.eclipse.kura:org.eclipse.kura.web:war:1.0.4-SNAPSHOT: Failed to collect dependencies at org.eclipse.kura:org.eclipse.kura.api:jar:[1.0,2.0)
	at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:180)
	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
	... 22 more
Caused by: org.eclipse.aether.collection.DependencyCollectionException: Failed to collect dependencies at org.eclipse.kura:org.eclipse.kura.api:jar:[1.0,2.0)
	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:291)
	at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:316)
	at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:172)
	... 23 more
Caused by: org.eclipse.aether.resolution.VersionRangeResolutionException: No versions available for org.eclipse.kura:org.eclipse.kura.api:jar:[1.0,2.0) within specified range
	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.filterVersions(DefaultDependencyCollector.java:638)
	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:394)
	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:363)
	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:351)
	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:254)
	... 25 more


Amit Kumar Mondal
Email: admin@amitinside.com
Skype: arsenalnerk Blog: blog.amitinside.com
Re: Error in Building [message #1695452 is a reply to message #1695448] Thu, 14 May 2015 18:35 Go to previous messageGo to next message
Amit Kumar Mondal is currently offline Amit Kumar MondalFriend
Messages: 108
Registered: March 2015
Location: Munich, Germany
Senior Member

I tried to build each and every bundle project and now I am encountering the following.

org.apache.maven.plugin.MojoExecutionException: Properties file not found: /Users/AMIT/kura-develop/kura/kura/org.eclipse.kura.web/../distrib/build.properties


I checked that there is no build.properties file in the distrib directory.


Amit Kumar Mondal
Email: admin@amitinside.com
Skype: arsenalnerk Blog: blog.amitinside.com
Re: Error in Building [message #1695454 is a reply to message #1695452] Thu, 14 May 2015 18:58 Go to previous message
Amit Kumar Mondal is currently offline Amit Kumar MondalFriend
Messages: 108
Registered: March 2015
Location: Munich, Germany
Senior Member

Got it solved. Needed to force update downloads using -U in maven.

Amit Kumar Mondal
Email: admin@amitinside.com
Skype: arsenalnerk Blog: blog.amitinside.com
Previous Topic:Error in Kura
Next Topic:Uninstall KURA
Goto Forum:
  


Current Time: Sat Apr 27 04:31:28 GMT 2024

Powered by FUDForum. Page generated in 0.03753 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top