Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Generate dp file
Generate dp file [message #1797014] Wed, 24 October 2018 07:18 Go to next message
shubh wade is currently offline shubh wadeFriend
Messages: 28
Registered: July 2018
Junior Member
Hello
I want create dp file at run-time as we follow manually steps to create .dp through the .dpp file.Is there any api or something to build .dpp file into .dp file at run-time.I don't want to do this steps manually.

[Updated on: Wed, 24 October 2018 07:19]

Report message to a moderator

Re: Generate dp file [message #1797015 is a reply to message #1797014] Wed, 24 October 2018 07:20 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 393
Registered: July 2015
Location: Italy
Senior Member
Hi,
I believe you can use maven for that purpose.
Have a look here: https://github.com/eclipse/kura/blob/develop/kura/features/org.eclipse.kura.driver.gpio/pom.xml#L21

Best regards,
Matteo
Re: Generate dp file [message #1797017 is a reply to message #1797015] Wed, 24 October 2018 07:30 Go to previous messageGo to next message
shubh wade is currently offline shubh wadeFriend
Messages: 28
Registered: July 2018
Junior Member
Thank you for reply

Currently i am following https://eclipse.github.io/kura/dev/hello-example.html

In this tutorial given a example for simple plugin project not for maven project.
Can you please share any example with maven.

Re: Generate dp file [message #1797018 is a reply to message #1797017] Wed, 24 October 2018 07:36 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 393
Registered: July 2015
Location: Italy
Senior Member
Maybe have a look at an example like this: https://github.com/eclipse/kura/blob/develop/kura/examples/org.eclipse.kura.example.publisher/pom.xml
There you can add your dp maven plugin to add a further step to create a dp file.

Best regards,
Matteo
Re: Generate dp file [message #1797021 is a reply to message #1797018] Wed, 24 October 2018 08:29 Go to previous messageGo to next message
shubh wade is currently offline shubh wadeFriend
Messages: 28
Registered: July 2018
Junior Member
Hello
I have converted my project to maven but can you tell me how i call this project or run to generate dp file.

[Updated on: Wed, 24 October 2018 08:40]

Report message to a moderator

Re: Generate dp file [message #1797026 is a reply to message #1797021] Wed, 24 October 2018 09:18 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 393
Registered: July 2015
Location: Italy
Senior Member
Hi, as said in a previous comment, you should add the specific plugin to your maven manifest.

Best regards,
Matteo
Re: Generate dp file [message #1797029 is a reply to message #1797026] Wed, 24 October 2018 09:48 Go to previous messageGo to next message
shubh wade is currently offline shubh wadeFriend
Messages: 28
Registered: July 2018
Junior Member
Yes i have added the maven dp pulgin to pom.xml
<plugin>
<groupId>de.dentrassi.maven</groupId>
<artifactId>osgi-dp</artifactId>
<version>0.3.0</version>
</plugin>

But when i run project with maven build i received this errors .

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building org.eclipse.kura.demo.heater 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.102 s
[INFO] Finished at: 2018-10-24T15:13:15+05:30
[INFO] Final Memory: 5M/119M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "build". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[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:

[Updated on: Wed, 24 October 2018 09:51]

Report message to a moderator

Re: Generate dp file [message #1797034 is a reply to message #1797029] Wed, 24 October 2018 10:22 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 393
Registered: July 2015
Location: Italy
Senior Member
as the error states, there is an error in your pom file.
Maybe have a review on maven documentation to get rid of it.

Best regards,
Matteo
Re: Generate dp file [message #1797090 is a reply to message #1797034] Thu, 25 October 2018 05:43 Go to previous messageGo to next message
shubh wade is currently offline shubh wadeFriend
Messages: 28
Registered: July 2018
Junior Member
Thank you now i am able to created dp file through the goal
<goal>build<goal>
but using this goal not able to generate dp file of all contents like all dependency and packages including in project . someting is missing because content of .dp file is too small.

I have tried <goal>bundle<goal> also but it gives error during maven build

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building org.eclipse.kura.demo.heater 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- osgi-dp:0.4.0:bundle (default-cli) @ org.eclipse.kura.demo.heater ---
[INFO] Building DP - Version: 0.0.1.20181025111020
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.315 s
[INFO] Finished at: 2018-10-25T11:10:22+05:30
[INFO] Final Memory: 15M/212M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal de.dentrassi.maven:osgi-dp:0.4.0:bundle (default-cli) on project org.eclipse.kura.demo.heater: The main artifact is missing. You may disable this error by setting 'failOnMissingMainArtifact' to 'true' -> [Help 1]
[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/MojoExecutionException
Re: Generate dp file [message #1797091 is a reply to message #1797034] Thu, 25 October 2018 06:02 Go to previous message
shubh wade is currently offline shubh wadeFriend
Messages: 28
Registered: July 2018
Junior Member
No Message Body

[Updated on: Thu, 25 October 2018 06:35]

Report message to a moderator

Previous Topic:Constant growth of memory
Next Topic:Creating deployment packages
Goto Forum:
  


Current Time: Wed Jul 08 05:40:24 GMT 2020

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

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

Back to the top