views:

38

answers:

1

Hi,

At my work all development is over java techonology, and we use nexus for manage our maven repositories. But for a new project, it's necesary build dll's and exe's artifacts, so, it's possible to put those windows binary files into a nexus repository?, there some plugin to make this simplier?, it's a crazyness what i'm trying to do?

Thanks in advance!

A: 

I use Nexus to store all the binary dependencies that I download from the internet.

You can upload the files using the Nexus GUI or use the Maven command line as follows:

mvn deploy:deploy-file \
    -Durl=$REPO_URL \
    -DrepositoryId=$REPO_ID \
    -DgroupId=org.apache.maven \
    -DartifactId=maven \
    -Dversion=2.2.1  \
    -Dpackaging=zip \
    -Dfile=maven.zip

This will generate the POM for you zip package automatically.

To retrieve dependencies, you can just navigate to the Nexus URL, or use a generic dependency manager tool like ivy:

java -jar ivy.jar -dependency org.apache.maven maven 2.2.1 -retrieve [artifact].[ext]
Mark O'Connor