'How to refactor Java classes in a maven project outside of an IDE
Imagine you have an maven project that compiles fine but lacks in a proper use of packages, because all Java/classes reside in the same package.
Is there a tool on the commandline available, that allows to refactor the java files outside of any IDE (like eclipse oder IJ) if it gets the following instuctions via commandline:
- rename class A to A'
- move class into a newly created package structure
- (opt) create a subproject and move the class B into it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|