Quote:
Originally Posted by muthukutta1
Hi
How to put a class into a directory structure that matches the package hierarchy.using archetype generation method
Thanks
As
muthukutta1
|
Hi
please visualise the following to render solutuon on this:->
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 requesthere iss 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 of repeated downloads especially
to nullify the non synchronising versions etc
archetype:generate -D groupId=com.crm.core.util.ArrayList -D artifactId= BMICalculator -D archetypeArtifactId=maven-archetype-quickstart -D interactivemode=false
(This a an application program in java BMICalculator.java)
As you see in this
which 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 even though!!!
Thanks
As
muthukutta1