• 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

JAR for artifacts generated

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I have generated artifacts for a webservice using WSDL. However I am unable to package them in a jar.
I am trying to generate a jar file for all the class files of the artifacts which are under com/fmr/brokerage

Following is the code snippet.


after checking the jar using 'jar -tf mvn_edb-1.0.0-edb.jar' i get
META-INF/
META-INF/MANIFEST.MF
META-INF/maven/
META-INF/maven/com/
META-INF/maven/com/mvn_edb/
META-INF/maven/com/mvn_edb/pom.xml
META-INF/maven/com/mvn_edb/pom.properties

I would appreciate any guidance.
Thank you.
Filename: folder-structure.bmp
File size: 360 Kbytes
 
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
Exactly where, relative to ${basedir}, is "com/fmr/brokerage"? (Oh, I see it in the screenshot you attached...)

Why are you running the jar plugin during the compile phase? What is the packaging type defined in your pom.xml? Is it war or jar?

Also, for the <includes> I would use <include>com/fmr/brokerage/**/*.class</include>. The "/target/classes" is implied (via classesDirectory property), and could actually be causing the classes to not match the include pattern (if I read the docs correctly, the include pattern is relative to classesDirectory).
 
Samaresh Gupte
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Peter Johnson.

What you suggested worked for us.

I am creating the jar during compile phase just to check the contents of the jar generated without wasting much time
for packaging.I wont be doing so on the production.

Thanks once again.
reply
    Bookmark Topic Watch Topic
  • New Topic