# Build Fail during MyFirstURCap tutorial

**URL:** <https://forum.universal-robots.com/t/build-fail-during-myfirsturcap-tutorial/23367>\
**Category:** Technical Questions\
**Created:** [August 19, 2022, 6:25pm UTC](https://forum.universal-robots.com/t/build-fail-during-myfirsturcap-tutorial/23367 "2022-08-19T18:25:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon75433025](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@anon75433025](https://forum.universal-robots.com/u/anon75433025)\
**Post date:** [August 19, 2022, 6:25pm UTC](https://forum.universal-robots.com/t/build-fail-during-myfirsturcap-tutorial/23367/1 "2022-08-19T18:25:29Z")

</div>

Hello  
Im get this error while following the MyFirstURCap tutorial running mvn install -P ursim

```auto
[INFO] Results:
[INFO] 
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- maven-bundle-plugin:2.4.0:bundle (default-bundle) @ lightup ---
[INFO] 
[INFO] --- exec-maven-plugin:1.1:exec (package-urcap) @ lightup ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ lightup ---
[INFO] Installing /home/ur/workspace/com.UniWest.lightup/target/lightup-1.0-SNAPSHOT.jar to /home/ur/.m2/repository/com/UniWest/lightup/1.0-SNAPSHOT/lightup-1.0-SNAPSHOT.jar
[INFO] Installing /home/ur/workspace/com.UniWest.lightup/pom.xml to /home/ur/.m2/repository/com/UniWest/lightup/1.0-SNAPSHOT/lightup-1.0-SNAPSHOT.pom
[INFO] 
[INFO] --- maven-bundle-plugin:2.4.0:install (default-install) @ lightup ---
[INFO] Installing com/UniWest/lightup/1.0-SNAPSHOT/lightup-1.0-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO] 
[INFO] --- exec-maven-plugin:1.1:exec (ursim-install-urcap) @ lightup ---
[INFO] cp: cannot create regular file '/home/ursim/ursim-5.11.ur0.108249/.urcaps/com.UniWest.lightup.jar': No such file or directory
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.694 s
[INFO] Finished at: 2022-08-19T13:14:13-07:00
[INFO] Final Memory: 16M/270M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1:exec (ursim-install-urcap) on project lightup: Result of /bin/sh -c cd /home/ur/workspace/com.UniWest.lightup && cp target/lightup-1.0-SNAPSHOT.jar /home/ursim/ursim-5.11.ur0.108249/.urcaps/com.UniWest.lightup.jar execution is: '1'. -> [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

```

I can see that it is missing .jar, is that something i need to create myself? i cant recall doing this in the tutorial

//David

---

<div class="post-metadata">

**Author:** ![eric.feldmann](https://avatars.discourse-cdn.com/v4/letter/e/94ad74/32.png) [@eric.feldmann](https://forum.universal-robots.com/u/eric.feldmann)\
**Post date:** [August 19, 2022, 9:48pm UTC](https://forum.universal-robots.com/t/build-fail-during-myfirsturcap-tutorial/23367/2 "2022-08-19T21:48:00Z")

</div>

Lots of times if you have build errors its because the various paths defined in the POM file don’t exist on your system. For example, the error says

```auto
cp: cannot create regular file '/home/ursim/ursim-5.11.ur0.108249/.urcaps/com.UniWest.lightup.jar': No such file or directory

```

So make sure your directory is exactly that. Often times it’s just a different ursim-5.11.XXXX file.

---

<div class="post-metadata">

**Author:** ![cags](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/cags/32/6304_2.png) [@cags](https://forum.universal-robots.com/u/cags)\
**Post date:** [August 22, 2022, 6:40am UTC](https://forum.universal-robots.com/t/build-fail-during-myfirsturcap-tutorial/23367/3 "2022-08-22T06:40:44Z")

</div>

Your issue is that in your build the project aims to generate a URCap and automatically deploy it to URSim.  
On the build settings, you can comment out the URSim deployment, so the URCap will build and the output will just be within the project folder.  
Then you can copy the generated URCap to a USB stick and install it from Polyscope.

---

<div class="post-metadata">

**Author:** ![anon75433025](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@anon75433025](https://forum.universal-robots.com/u/anon75433025)\
**Post date:** [August 24, 2022, 10:20am UTC](https://forum.universal-robots.com/t/build-fail-during-myfirsturcap-tutorial/23367/4 "2022-08-24T10:20:20Z")

</div>

Hello  
You are totally correct, i guess i was a bit tired when doing this…  
old path /home/ursim/ursim-5.11.ur0.108249/.urcaps/com.UniWest.lightup.jar  
correct path /home/ur/ursim/ursim-5.11.ur0.108249/.urcaps/com.UniWest.lightup.jar  
thanks!
