Maven. What to do with "homeless" jars?

Posted by Jake on Stack Overflow See other posts from Stack Overflow or by Jake
Published on 2010-05-26T21:27:44Z Indexed on 2010/05/26 21:31 UTC
Read the original article Hit count: 242

Filed under:
|

I have some proprietary.jar that I need to include in my project, but I don't wish to install it to the local repository.

What I did initially was to put the jar into version control in my project's lib/ folder, and then specify the Maven dependency as:

<!-- LOCAL DEPENDENCY -->
<dependency>
    <groupId>topsecret</groupId>
    <artifactId>proprietary</artifactId>
    <version>0.0.1</version>
    <scope>system</scope>
    <systemPath>${basedir}/lib/java/proprietary.jar</systemPath>
</dependency>

However, this becomes a big problem when my project becomes someone else's dependency. Maven will not be able to validate this POM because the path is not absolute.

What is the best way to overcome this problem?

© Stack Overflow or respective owner

Related posts about maven

Related posts about local-dependency

  • Maven. What to do with "homeless" jars?

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I have some proprietary.jar that I need to include in my project, but I don't wish to install it to the local repository. What I did initially was to put the jar into version control in my project's lib/ folder, and then specify the Maven dependency as: <!-- LOCAL DEPENDENCY --> <dependency> … >>> More

  • WPF Binding issues

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I have WPF window which binds a local Dependency property to a property of my usercontrol. So now I see the value which the window gave me in my usercontrol. I achieve this by setting DataContext of window to the window itself Now once the window is loaded i set the DataContext of usercontrol to… >>> More