Prefer source code to maven repository

Hey,

im having some trouble with maven.
i have a android project with a dependency on a module we wrote which i have source code for and is in my project .
something like:

<dependencies>
        <dependency>
            <groupId>some.project/groupId>
            <artifactId>some.artifact<artifactId>
            <version>1.0.0-SNAPSHOT</version>
            <type>apklib</type>
        </dependency>
</dependencies>


problem is, we have autmated release build who increment the snapshot version of that artifact, so the snapshot version on the nexus repo will change over time.
IntelliJ then pulls the apklib from nexus instead of using the local source code, this is really hard to work with.

i've tried checking the "Resolve workspace artifacts" check box as described here:
http://www.jetbrains.com/idea/webhelp/run-debug-configuration-maven.html#parameters
but it still pulls from nexus.

Any suggestions on how to resolve this?


Thanks in advance,
Tal

1 comment
Comment actions Permalink

Hello.

> IntelliJ then pulls the apklib from nexus
What actions in IDE are problematic, when does it pull from nexus?

"Resolve workspace artifacts" check box is a run configuration settings. So, you have created Maven run configuration, and while running, it uses wrong classes?

Thank you,
Alexander.

0

Please sign in to leave a comment.