Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

m2eclipse and the "uknown packaging" eror

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Eclipse, when I open the POM for one of my projects I am getting the error "Project build error: Unknown packaging type: iso".

I have create a plugin that handles builds for packaging type of iso. I have modified the pom.xml to reference that plugin and the build runs fine from the command line. My question is, how to I tell m2eclipse about my plugin so that it doesn't complain about the packaging type? I have dug through the various configuration files in the workspace/.metadata directory and googled for the error message but haven't found any answer. Anybody know?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The trick seem to be to restart Eclipse. At least that is the only thing I can come up with because the next day when I started Eclipse and opened the offending POM, Eclipse was happy and no longer complained about the packaging type.

By the way, before I restarted I tried: resaving the pom.xml, cleaning the project, building the project, refreshing the project. None of those removed the unknown packaging error.
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've had bad experiences with eclipse resulting in the following error solving method:

This should compile -> This should really compile -> restart eclipse -> it compiles
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, but I never compile anything within Eclipse. All I was trying to do was get rid of an error flag.

But it is kind of funny that the typical way to fix weird Eclipse issues is the similar to the typical way to fix Windows issues - reboot!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic