• Post Reply Bookmark Topic Watch Topic
  • New Topic

JAR for artifacts generated  RSS feed

 
Samaresh Gupte
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • 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
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!