• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Maven-licence-plugin

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using a maven licence plugin, I have one super pom and four submodules.


when I'm ivoking licence-plugin from super pom everything is ok, but when I'm trying to invoke plugin from submodules, licence could'nt find the header.txt file. How can I define the root path for submodules? any ideas? thanks
 
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 this: in your submodules add this property to the pom:



That will override the property value so that when pathToHeader is evaluated you will get the correct value. This of course assumes that you submodule is a submodule of the parent.

However, if the parent is in a completely different location, you cannot do this. Instead you will have to figure something out about having the file appear in source control in multiple locations (if you use a linking mechanism then the actual file will appear only once). Or you could store the file in the Maven repository as a classifier of the parent pom and then have it as a dependency. You'll then need to use the dependency plugin to extract it from the repository and place it where the license plugin can find it.

By the way, do not use backward slashes in filenames - they are too often interpreted as escape characters
reply
    Bookmark Topic Watch Topic
  • New Topic