Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kura-dev] building kura on windows?

Hi Scott,

I can confirm parts of the build are now broken for Windows build environments. I have created an issue here [1]. Depending on what you are doing, you can still build everything, you just can’t create the installers for specific platforms (Raspberry Pi, Beaglebone, etc.). This command will build everything and create the user workspace:

mvn -f pom_pom.xml clean install -Pweb,dev-env

If this doesn’t work for you, please let me know what version of Windows, Maven, and Java you are using.

There is likely a simple work around for this, we will investigate as part of our next release cycle.


Thanks,
--Dave

On Aug 29, 2016, at 13:53, slewis@xxxxxxxxxxxxx wrote:

Hi Scott,

You should be able to build Kura on Windows. I donâ?Tt try for every
release, but I know I successfully built Kura v1.4.0 (2 releases back) on
a plain Windows 10 box. Could you post the errors you are getting in the
build?

Sure.  I'm attempting the Single Step build here

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

I get through these two steps (build success):

cd ~/git/kura/target-platform
mvn clean install

cd ../kura
#Build with CAN support
mvn -Dmaven.test.skip=true -f manifest_pom.xml -Pcan clean install

But when I execute this next target

# Build with web UI
mvn -Dmaven.test.skip=true -f pom_pom.xml -Pweb clean install

I get the following at the bottom of the output

...
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] kura ............................................... SUCCESS [
0.597 s]
[INFO] org.eclipse.kura.web2 .............................. SUCCESS [02:19
min]
[INFO] distrib ............................................ FAILURE [
27.218 s]
[INFO] tools .............................................. SKIPPED
[INFO] Eclipse Kura Archetypes ............................ SKIPPED
[INFO] Eclipse Kura App Quickstart Archetype .............. SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 02:47 min
[INFO] Finished at: 2016-08-29T10:51:58-07:00
[INFO] Final Memory: 46M/398M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.7:
run (release-copy) on project distrib: An Ant BuildException has occured:
Execut
e failed: java.io.IOException: Cannot run program
"src\main\sh\generate_kura_bun
dles_pom.sh" (in directory "C:\Users\lewisscx\git\kura\kura\distrib"):
CreatePro
cess error=2, The system cannot find the file specified
[ERROR] around Ant part ...<exec
output="RELEASE_INFO/2.0.0/kura-bundles/pom.xml
" executable="src/main/sh/generate_kura_bundles_pom.sh" append="true">...
@ 14:1
26 in
C:\Users\lewisscx\git\kura\kura\distrib\target\antrun\build-distrib-store-
files.xml
[ERROR] -> [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 rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command

[ERROR]   mvn <goals> -rf :distrib

<Scott again>

It appears to me that it's trying to run a shell script
(generate_kura_bundles_pom.sh?) and can't on vanilla windows.

I tried it also without the -web option, and it had a similar error.

Thanksinadvance Dave,

Scott



_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev


Back to the top