• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Can Maven Tool Go beyond

 
Ranch Hand
Posts: 335
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
While letting my hats off to some advantages of Maven( as for example well defined project layout and builtin types for testing ,integration with other technologies etc),please
can any body help ,I've been tryig to get the best out of Maven ,as for example usimg him,i am abe to
create a pom.xml also a main and test directories.in the first instance,the pom.xml also being obtained
by way of archetype generation but eventually end up with a limited scope of its operations.
Are there not atleast complex archetype procedure covering more sumptuous and meaningfull POM.xml creations as per requirement at one finish itself
thus paving way to lesson the burden of updating, debugging and downloading (a bonanza boost ! ) for making java coding interesting.even though Maven is fast enough .
Thanks much
As
CRMK
 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 335
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Comal Rajagopalaratnam Muthukumar wrote:Hi
While letting my hats off to some advantages of Maven( as for example well defined project layout and builtin types for testing ,integration with other technologies etc),please
can any body help ,I've been tryig to get the best out of Maven ,as for example usimg him,i am abe to
create a pom.xml also a main and test directories.in the first instance,the pom.xml also being obtained
by way of archetype generation but eventually end up with a limited scope of its operations.
Are there not atleast complex archetype procedure covering more sumptuous and meaningfull POM.xml creations as per requirement at one finish itself
thus paving way to lesson the burden of updating, debugging and downloading (a bonanza boost ! ) for making java coding interesting.even though Maven is fast enough .
Thanks much
As
CRMK




I am writing these few lines more besides the above,please consider the best of yours to make maven help us

Prject creation is always cmbursome process .Now tell me know how to put a class into directoy strcture that matches the package hierarchy..It is not enough to say your class is in a package by merely putting a package statement in the archetype generation method .(for POM making)
when i run maven it not only be able to compile but also produce the end result.Please give your suggestion for this
Thanks
AS
CRMK


 
Saloon Keeper
Posts: 10308
217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Comal, I regret to say that it's completely unclear what you want. Please explain in simple English exactly what you want to achieve, and what's preventing you from achieving it.
 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 335
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:Comal, I regret to say that it's completely unclear what you want. Please explain in simple English exactly what you want to achieve, and what's preventing you from achieving it.


Hi

In usual java ,creating a jar file used to be rather vague as for example you must always put a class into a directory structure that matches the package hierarchy,meaning setting up a matching directory for both the source and the classes trees.my request was to find out if the similar method is required to achieve
for the maven's usage via archetype generating to produce a pom.xml and eventuallyr make it possible to render jar file for any type of java application.If its a possibilty then do'nt you think it becomes very easy avoiding the diificulties as said in my first one (above).
please confirm

Thanks
As
CRMK
 
Stephan van Hulst
Saloon Keeper
Posts: 10308
217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand the difficulties you described in your first post. Maybe you can show us a concrete example of such a difficulty.
 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 335
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:I don't understand the difficulties you described in your first post. Maybe you can show us a concrete example of such a difficulty.




Hi
please try now
.archetype:generate -D groupId=com.crm.core.util.ArrayList -D artifactId= BMICalculator
-D archetypeArtifactId=maven-archetype-quickstar t-D interactivemode=false

(This a an application program in java BMICalculator.java)
As you see in this it does not have a matching package to make maven not only compile but also put all the
classes ( of the so compiled classes in to a classes directory) besides the usual source directory
as matching -package structure to bring good result at one stretch of course with a pom.xml dumped with limited turn over in the pom.xml
containing only main and tests without classes inclusion etc
GoodLuck
As
CRMK
 
Stephan van Hulst
Saloon Keeper
Posts: 10308
217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you use the maven-archetype-quickstart archetype to generate a new project with the given groupId and artifactId.

What is the problem?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!