Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven-style local dependencies #50

Closed
igorrosenberg opened this issue Oct 26, 2012 · 1 comment
Closed

Maven-style local dependencies #50

igorrosenberg opened this issue Oct 26, 2012 · 1 comment

Comments

@igorrosenberg
Copy link

PROBLEM:
When compiling, maven complains about libraries distributed within the project sources:

[WARNING] Some problems were encountered while building the effective model
[WARNING] 'dependencies.dependency.systemPath' should not point at files within the project directory, xxx.jar will be unresolvable by dependent projects

The culprits include synthetica.jar , syntheticaAddons.jar , syntheticaBlueMoon.jar , syntheticaBlueMoonAddon.jar , scanner.jar , Shell.jar , jodconverter-3.0-beta-2.jar

PROPOSED SOLUTION:
Create a local repository contained within the sources, and add it to the main pom. So create a 'repo' dir that contains private jars. It is referenced as a repository in the pom. Place the jars in this directory via the following command:

mvn install:install-file -DlocalRepositoryPath=repo -DcreateChecksum=true -Dpackaging=jar -Dfile=synthetica.jar -DgroupId=synthetica -DartifactId=synthetica -Dversion=1.0

In the pom.xml, add:

...


repo
file://${project.basedir}/repo


florentgarin added a commit that referenced this issue Nov 2, 2012
@florentgarin
Copy link
Member

you're right, done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants