• 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

Need help in organizing a maven project

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm new to maven and xdoclet and I have a confusion in organizing my project. I need to run ejbdoclet and hibernatedoclet on my source, then compile. After this, I need to create 2 jar files, each of them containing some files from the previous steps' output.

By default, one jar is created as the artifact. This one contains ALL the class files, but this isnt what I want (I need only some of them to be present in the jar). The rest of the class files (with some overlap) should go into another jar.

I'm not sure how to exclude .class files from the artifact coz they seem to be happening by default. Also, I tried creating a new project for the 2nd jar, extending the previous. Now, I need some way to copy the class files I need from the parent and jar them up. I used "jar:jar" as the default goal for this new project, extended the previous project, added the parent's classes as resources. But this new one seems to be running ejbdoclet, trying to create xml files (all this is being done only in the previous proj), throwing a lot of errors.

Please help me by giving a proper way to accomplish this task.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic