You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Tsao, L (Lewis)" <Le...@rabobank.com> on 2008/09/02 11:16:27 UTC

Help with getting plugins

I am trying to download Maven plugins manually and need some help.

Reason for doing this is because I am behind a very tight company firewall where downloads are highly controlled. Maven auto download of plugins is not possible.

I have found some of the documents on setting up local repositories etc but it is not very clear how to set it up and dir structures.

The "Definitive Guide" also mentions that plugins will be downloaded into the ".m2" directory, but it does not say what directory structure.

For example, in the Maven repository org/apache/maven/plugins/xxx/... etc, the plugins are in directories with version names. Are these necessary in the .m2 or local repository? What about the xml files?

Your help would be most appreciated.


_____________________________________________________________

This email (including any attachments to it) is confidential, legally privileged, subject to copyright and is sent for the personal attention of the intended recipient only. If you have received this email in error, please advise us immediately and delete it. You are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Although we have taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the viruses in this email or attachments. We exclude any liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided in this email or its attachments, unless that information is subsequently confirmed in writing. If this email contains an offer, that should be considered as an invitation to treat.
_____________________________________________________________

RE: Help with getting plugins

Posted by "Paul van Leeuwen (Collis)" <le...@collis.nl>.
The following text is copied from:
http://maven.apache.org/general.html#importing-jars

If you understand the layout of the maven repository, you can copy the
jar directly into where it is meant to go. Maven will find this file
next time it is run.

If you are not confident about the layout of the maven repository, then
you can adapt the following command to load in your jar file, all on one
line.

mvn install:install-file
  -Dfile=<path-to-file>
  -DgroupId=<group-id>
  -DartifactId=<artifact-id>
  -Dversion=<version>
  -Dpackaging=<packaging>
  -DgeneratePom=true

Where: <path-to-file>  the path to the file to load
       <group-id>      the group that the file should be registered
under
       <artifact-id>   the artifact name for the file
       <version>       the version of the file
       <packaging>     the packaging of the file e.g. jar
     

This should load in the file into the maven repository, renaming it as
needed.

-----Original Message-----
From: Tsao, L (Lewis) [mailto:Lewis.Tsao@rabobank.com] 
Sent: dinsdag 2 september 2008 11:16
To: 'users@maven.apache.org'
Subject: Help with getting plugins

I am trying to download Maven plugins manually and need some help.

Reason for doing this is because I am behind a very tight company
firewall where downloads are highly controlled. Maven auto download of
plugins is not possible.

I have found some of the documents on setting up local repositories etc
but it is not very clear how to set it up and dir structures.

The "Definitive Guide" also mentions that plugins will be downloaded
into the ".m2" directory, but it does not say what directory structure.

For example, in the Maven repository org/apache/maven/plugins/xxx/...
etc, the plugins are in directories with version names. Are these
necessary in the .m2 or local repository? What about the xml files?

Your help would be most appreciated.


_____________________________________________________________

This email (including any attachments to it) is confidential, legally
privileged, subject to copyright and is sent for the personal attention
of the intended recipient only. If you have received this email in
error, please advise us immediately and delete it. You are notified that
disclosing, copying, distributing or taking any action in reliance on
the contents of this information is strictly prohibited. Although we
have taken reasonable precautions to ensure no viruses are present in
this email, we cannot accept responsibility for any loss or damage
arising from the viruses in this email or attachments. We exclude any
liability for the content of this email, or for the consequences of any
actions taken on the basis of the information provided in this email or
its attachments, unless that information is subsequently confirmed in
writing. If this email contains an offer, that should be considered as
an invitation to treat.
_____________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org