You need to install a local repository manager (e.g. nexus, archivia, etc)
and use it to mirror the repo without the pom.

You can then install the pom into your mirror.

AFAIK, opnce an artifact has been deployed without a pom, a pom cannot be
deployed for it without breaking builds, so if the artifact has been
released for a long time you should not push a pom for that artifact into
the repository.

The correct way to handle that problem is to re-release with a different
version number and this time deploy the pom.

-Stephen

On Tue, Apr 15, 2008 at 7:10 AM, youhaodeyi <[EMAIL PROTECTED]> wrote:

>
> I want to download these jars from remote reposiroty and then generate POM
> automatically. The method you mensioned is to installed the jar by hand.
>  I
> don't want to do that since the jars already exist in remote repository
> just
> without POM file.
>
>
> Chris_Graham wrote:
> >
> > For instance:
> >
> > mvn install:install-file
> >     -Dfile=doccheck.jar
> >     -DgroupId=com.sun.tools.doclets
> >     -DartifactId=doccheck
> >     -Dversion=1.2b2
> >     -Dpackaging=jar
> >     -DgeneratePom=true
> >
> > -Chris
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-can-I-generate-a-POM-file-for-dependency--tp16695479s177p16695709.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to