# Perspective Component Using Maven Build

**URL:** <https://forum.inductiveautomation.com/t/perspective-component-using-maven-build/51832>\
**Category:** Module Development\
**Tags:** sdk, ignition80, ignition81, perspective\
**Created:** [October 11, 2021, 8:26pm UTC](https://forum.inductiveautomation.com/t/perspective-component-using-maven-build/51832 "2021-10-11T20:26:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cody.tamaki](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@cody.tamaki](https://forum.inductiveautomation.com/u/cody.tamaki)\
**Post date:** [October 11, 2021, 8:26pm UTC](https://forum.inductiveautomation.com/t/perspective-component-using-maven-build/51832/1 "2021-10-11T20:26:00Z")

</div>

I’m trying to get the “web” scope of my project to build with javascript only so that I can continue using maven for a while longer. I’ve read all the documentation and I believe I should just be able to run `lerna run build` in the root of the “web” scope and it’ll webpack all of my javascript up and stick it in the various resource folders. The current problem that I’m having is that I can’t seem to get yarn to resolve the Inductive dependencies properly.

I’ve added a .yarnrc file defining the Inductive nexus registry, but I get this error:  
`error An unexpected error occurred: "http://nexus.inductiveautomation.com/repository/node-packages/@types%2freact: connect ECONNREFUSED 50.231.87.35:80".`

I have the Inductive node-packages repository defined as:  
[http://nexus.inductiveautomation.com/repository/node-packages/](http://nexus.inductiveautomation.com/repository/node-packages/)

Is that correct? Is there something else I’m missing?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 11, 2021, 8:37pm UTC](https://forum.inductiveautomation.com/t/perspective-component-using-maven-build/51832/2 "2021-10-11T20:37:22Z")

</div>

Do you have an `.npmrc` as well, or just a `.yarnrc`? Can you post the exact line you’re using for the registry?

This [issue](https://github.com/yarnpkg/yarn/issues/606) suggests a specific `registry` format that’s _global_ (but also [undocumented…](https://classic.yarnpkg.com/lang/en/docs/yarnrc/)), but `.npmrc` supports [‘scoped’ registries](https://github.com/inductiveautomation/ignition-sdk-examples/blob/master/perspective-component/web/.npmrc) - there may be some interplay between Yarn and NPM to sort out. It’s suspicious that the download error is on an obviously non-Ignition package.

---

<div class="post-metadata">

**Author:** ![cody.tamaki](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@cody.tamaki](https://forum.inductiveautomation.com/u/cody.tamaki)\
**Post date:** [October 11, 2021, 8:39pm UTC](https://forum.inductiveautomation.com/t/perspective-component-using-maven-build/51832/3 "2021-10-11T20:39:06Z")

</div>

Well not 10 minutes later I figured out that I need to put http_ **s** _ and yarn seemed to work from there.

For anybody else on the same process here is my .yarnrc file:

```auto
registry:"https://registry.yarnpkg.com" "@inductiveautomation:registry": "https://nexus.inductiveautomation.com/repository/node-packages/"
yarn-path ".yarn/releases/yarn-1.22.15.cjs"

```
