You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Harshal Joshi <ha...@gmail.com> on 2008/12/10 13:29:31 UTC

Can't generate POM file while deploying my own jar

Hi All,

I am trying to deploy my own jar in to .m2 repository using below command.

mvn install:install-file -DgroupId=jsr168-api -DartifactId=jsr168-api
-Dversion=1.0.0 -Dpackaging=jar
-Dfile=D:\IBM\WebSphere\PortalServer\shared\app\jsr168-api.jar

It deploy jar file in to my repository but it can't generate POM file in to
it's directory so whenever I build the WAR it looks for the jsr168-api.pom
in to internet repository.

This happens with couple of more jar files which I deploy and so that it
consume more time to generate WAR file.

Any suggestion will be helpful.

Thanks,
HJ

Re: Can't generate POM file while deploying my own jar

Posted by Wendy Smoak <ws...@gmail.com>.
On Wed, Dec 10, 2008 at 7:29 AM, Harshal Joshi <ha...@gmail.com> wrote:
> mvn install:install-file -DgroupId=jsr168-api -DartifactId=jsr168-api
> -Dversion=1.0.0 -Dpackaging=jar
> -Dfile=D:\IBM\WebSphere\PortalServer\shared\app\jsr168-api.jar
>
> It deploy jar file in to my repository but it can't generate POM file

Try adding -DgeneratePom=true to the command line.

http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html#generatePom

-- 
Wendy

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