This code will be used in a student project, which we'll be releasing as GPLv3. However, we cannot use the code directly since the needs of our project are not the same as the original project. We'll be adding a few classes and also modifying existing classes slightly.
So our classes might be incompatible with any software that uses the original classes. So can we rename the package names to reflect our project name? What's the policy about adding names to the copyright? What is the 'right' way to reuse this code?
The GPL places no legal requirement on you to change package names, or not to change them.
However, you are required to retain all copyright notices, and include the existing GPL license details ... and to release the full source code of your derivitive work under the GPL.
The original licensor could in theory impose extra conditions in addition to the standard GPL. However, this something that you should avoid doing because:
it creates extra work for downstream users who need to check that the extra conditions don't create a new legal risk, and
it may render the license incompatible with true GPL, creating problems when the code is combined with other (GPL'ed) code.
Having said this, if you intend to distribute your application independently of the original one, it is polite to change it so that it is clear who is responsible for it. In the case of Java code, this includes changing package names and using different Maven artifact groups / ids. (To the extent that this is inconvenient, you should view this as part of the "cost" of repurposing existing GPL'ed code.)
[Insert obligatory disclaimer that I am not a lawyer here.]
There is no requirement in GPLv3 that you maintain any names from the original program. You can change whatever you want.
The only requirements are that your program's copyright notices (both in the source code and any interactive notices, if applicable) include all of the following:
So the copyright notice in your source distribution might look something like this:
Your Program's Name: This is what it does.
Copyright (C) 2012 Your Name.
This program incorporates a modified version of Other Program.
Copyright (C) 2006 Other Programmer.
This program is free software: [...insert GPL boilerplate here...]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With