On Wed, Feb 24, 2010 at 5:24 PM, viy <[email protected]> wrote:

> Hi all, 2 naming convention related points in this post:
>
> 1. what is the preferable/recommended maven groupId for Java project
> hosted at code.google.com?
>

I'm not aware that there is one.

Looking at mvn central, currently at least 2 different ones are used:
> http://repo1.maven.org/maven2/com/googlecode/
> http://repo1.maven.org/maven2/com/google/code/
>

Developers making these choices may be the result of some redirection that
we do on our part (for completely separate reasons). Because http://
<projectname>.googlecode.com/ redirects to
http://code.google.com/p/<projectname>/,
my conjecture is that some projects choose to use "com/googlecode" while
others use "com/google/code".

2. is there any convention to choose root package name for google.code
> Java projects? Is it good idea to start own sources at so deep root
> package as com.google.code.myProj?
>

I'm not aware of such a convention. I can see it seeming to make sense if
the project's primary presence on the web is its project page at
http://code.google.com/p/<project name>, and I'm sure that there are a lot
of small projects hosted with us for which that's the case (because they're
too small to bother with setting up their own domain). I wouldn't advise
doing so because:

PS. And a common question for both points above: does it make any
> sense to bind own project to code.google.com at all? Yes,
> code.google.com is a good open-source hosting platform, but it is only
> hosting - you may choose to move to another hosting, but changing
> groupId and root package will be a head-ache if the project is already
> widely-used.
>

This is a very astute point. Project Hosting at Google Code is just a
service and set of tools for use in building your software and there's no
cultural, technical, legal, or gastronomical integration or interdependency
between the two. Placing "com.google.code" or "com.googlecode" at points in
your code that give your code its identity (such as Java package names)
seems to me to send a different message (that your code may be affiliated
with and/or developed by Google). It's *your* code (on which you have worked
hard and of which you should be proud!) and the fact that you used Project
Hosting at Google Code may be no more than incidental, so my recommendation
would be choosing package names and other identifiers that tell your users
about *you* (or about the project itself).
-Nathaniel

-- 
You received this message because you are subscribed to the Google Groups 
"Project Hosting on Google Code" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-code-hosting?hl=en.

Reply via email to