1

I have a .war project in Eclipse. It is probably not relevant but I should mention that it was converted from a maven project using mvn eclipse:eclipse plugin.

I saw a warning that various .jar files on the Build Path were not being exported. To fix this I went to Project Properties -> Deployment Assembly and added the jars that needed to go into the .war

However, one .jar file does not need to go into the .war because it will be provided by the container. It is on the build path merely to get the project to compile.

For this .jar file, I want to get rid of the warning. One way was to Ctrl+1 to QuickFix which caused the Properties->Java Build Path->Libraries tab->...jar file to have an extra line on expanding it which says: Excluded from publish/export structure: (None)

My question is how could I have done this without Quick Fix? I could not find any way to exclude from publish/export structure without using the Eclipse Ctrl+1 Quick Fix.

necromancer
  • 23,916
  • 22
  • 68
  • 115

2 Answers2

3

There is no other UI beyond the quick fix for setting the ignore flag.

Konstantin Komissarchik
  • 28,879
  • 6
  • 61
  • 61
  • 1
    thanks for the confirmation (i must say that's not good engineering on part of the eclipse team) – necromancer Mar 21 '12 at 15:42
  • Was the problem solved with last releases? I accidentally marked a package as "no-export" with the quick fix option and now I can't easily mark it back to "export" – tigerjack Dec 06 '14 at 08:31
1

m2e-wtp automatically takes care of this for you - any dependency that has the scope as provided is excluded from the publish\export structure.

vanval
  • 997
  • 1
  • 9
  • 19