L
L
leksoQA2017-09-20 23:09:32
Java
leksoQA, 2017-09-20 23:09:32

Maven, creating your own archetype. How to write package names in classes?

Good evening.
When creating my archetype in Maven, I encountered such a problem.
I set the structure of packages and classes. In classes, I prescribe the name of the packages through the $package variable. As a result, after creating a project from an archetype, the structure of packages and classes itself is created. But only the root name of the package is pulled into the class.
For example, I have a package:
com.project.utils.date
And in the class code it only pulls:
com.project
How to make the full name of the package be pulled into the class?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question