Problems with idea replication packages

when you copy a package from one project to another, do you find that several layers are missing from the package copied to the target project?
this means that the package we copied in the past only fetched the last package.
for example, if you copy the package of com.weigugou.pojo to another project, the only package left in the target project is pojo. Where"s his whole package? Why not the result we want. By the way, my development tool is idea 2017.3

Mar.16,2021

because the package structure of the current project should be retained when copying. For example, if you copy a package com.google.xxx to your project com.abc.example , the copied package should be com.abc.example.xxx , but not com.abc.example.com.google.xxx . If the package of the current project does not have so many prefixes, only the name of xxx will be retained. Of course, you can change the package name of the current project to com.google , and right-click refactor- > rename on the package folder.


We are different?


did the landlord find a solution later?

Menu