Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

install error -- The packaging for this project did not assign a file to the build artifact

 
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm using Maven 3.0.3. I'm trying to run the install plugin (using "install:install") to install my WAR file to my local repo. However, I'm getting an error, shown below. As far as I can tell, my pom.xml file is set up correctly. I have also included it.



Thanks for any advice, - Dave




 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try running "mvn install" instead.

If you run "mvn install", then Maven performs all of the build phases for a war (the packaging type) up through the install phase.

If you run "mvn install:install", Maven runs only the install goal of the Install plugin. That is, the other build phases are not run. And it is the compile phase that assigns a file (the war file) to the build artifact. Since the compile phase doesn't run it you give install:install as the goal, then Maven complains about "did not assign a file to the build artifact.

I you don't want to run the whole build, use the install:install-file goal instead.
 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Peter, Thanks for that explanation. This command



indeed works. However I have a follow-up. It seems redundant to me to respecify my groupId, artifactId, packaging, and version since those are all in my pom.xml file. Is there a way I can rewrite the command above so that what is deployed is what is in my pom.xml file?

Thanks, - Dave
 
Politics is a circus designed to distract you from what is really going on. So is this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic