# Can't resolve dependency

**URL:** <https://forum.inductiveautomation.com/t/cant-resolve-dependency/23718>\
**Category:** Module Development\
**Created:** [March 29, 2019, 8:45pm UTC](https://forum.inductiveautomation.com/t/cant-resolve-dependency/23718 "2019-03-29T20:45:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![keithw](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@keithw](https://forum.inductiveautomation.com/u/keithw)\
**Post date:** [March 29, 2019, 8:45pm UTC](https://forum.inductiveautomation.com/t/cant-resolve-dependency/23718/1 "2019-03-29T20:45:16Z")

</div>

I’m trying to use the following dependency,

```auto
<!-- https://mvnrepository.com/artifact/javax.media/jai_imageio -->
		<dependency>
		    <groupId>javax.media</groupId>
		    <artifactId>jai_imageio</artifactId>
		    <version>1.1</version>
		</dependency>

```

But I get the following error during build,

```auto
[ERROR] Failed to execute goal on project pdf-common: Could not resolve dependencies for project com.mycompany.ignition:pdf-common:jar:1.0.0: Failed to collect dependencies at javax.media:jai_imageio:jar:1.1: Failed to read artifact descriptor for javax.media:jai_imageio:jar:1.1: Could not transfer artifact javax.media:jai_imageio:pom:1.1 from/to snapshots (http://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots): Failed to transfer http://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/javax/media/jai_imageio/1.1/jai_imageio-1.1.pom. Error code 400, Repository version policy: SNAPSHOT does not allow version: 1.1 -> [Help 1]

```

I’ve tried adding the mvnrepository to my main pom, no dice. How do I use this dependency if it isn’t in the nexus repo?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 29, 2019, 8:51pm UTC](https://forum.inductiveautomation.com/t/cant-resolve-dependency/23718/2 "2019-03-29T20:51:47Z")

</div>

What does the repository management section of your pom.xml look like? Do you only have our snapshots repo listed?

---

<div class="post-metadata">

**Author:** ![keithw](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@keithw](https://forum.inductiveautomation.com/u/keithw)\
**Post date:** [March 29, 2019, 9:06pm UTC](https://forum.inductiveautomation.com/t/cant-resolve-dependency/23718/3 "2019-03-29T21:06:28Z")

</div>

```auto
    <repositories>
        <repository>
            <id>releases</id>
            <url>http://nexus.inductiveautomation.com/repository/inductiveautomation-releases</url>
        </repository>

        <repository>
            <id>snapshots</id>
            <url>http://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots</url>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
            </snapshots>
        </repository>

        <repository>
            <id>thirdparty</id>
            <url>http://nexus.inductiveautomation.com/repository/inductiveautomation-thirdparty
            </url>
        </repository>
        
    	<repository>
            <id>javax.media</id>
	    <url>https://mvnrepository.com/artifact/</url>
	    <snapshots>
	        <enabled>true</enabled>
	        <updatePolicy>always</updatePolicy>
	    </snapshots>
    	</repository>

    
    </repositories>

```

---

<div class="post-metadata">

**Author:** ![keithw](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@keithw](https://forum.inductiveautomation.com/u/keithw)\
**Post date:** [March 29, 2019, 9:46pm UTC](https://forum.inductiveautomation.com/t/cant-resolve-dependency/23718/4 "2019-03-29T21:46:16Z")

</div>

I figured it out, sorry for wasting time. I noob.

The repo url was incorrect,

```auto
<repository>
    	<id>javax</id>
	<url>http://maven.geotoolkit.org/</url>
	<snapshots>
		    <enabled>true</enabled>
		    <updatePolicy>always</updatePolicy>
	</snapshots>
</repository>

```

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [July 11, 2019, 11:56am UTC](https://forum.inductiveautomation.com/t/cant-resolve-dependency/23718/5 "2019-07-11T11:56:54Z")

</div>

2 posts were split to a new topic: [8.0.0-SNAPSHOT dependency not found](https://forum.inductiveautomation.com/t/8-0-0-snapshot-dependency-not-found/26470)
