Results 1 to 2 of 2
  1. #1
    Yeoman is offline Member
    Join Date
    Sep 2015
    Posts
    1
    Rep Power
    0

    Default Maven - naming conventions and directories

    Hi,

    I am new to Maven.
    When I create a new project, I open a terminal, go to my eclipse workspace root directory, and type this:

    $ mvn archetype:generate -DarchetypeArtifactId=maven-archetype-quickstart

    Then, I assign the variables groupId and artefactId as follows:

    groupId: com.myself.firstapp
    artefactId: firstapp

    This will create the project in a folder called "firstapp".

    Is this standard and/or recommended?
    Wouldn't it be better to call it "com.myself.firstapp"?

    Thanks
    Magnus

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    762
    Rep Power
    12

    Default Re: Maven - naming conventions and directories

    The project folder is "firstapp". If you look under the src/main/java directory you will see com/myself/firstapp as your default package directory.

Similar Threads

  1. Replies: 0
    Last Post: 12-30-2013, 07:01 AM
  2. Conventions with Package Naming
    By thurstjo63 in forum New To Java
    Replies: 0
    Last Post: 11-13-2011, 06:58 PM
  3. Naming requirements and conventions ?
    By javajosh in forum New To Java
    Replies: 4
    Last Post: 11-01-2011, 04:52 AM
  4. Naming conventions
    By tim in forum Forum Lobby
    Replies: 10
    Last Post: 11-16-2008, 09:27 PM
  5. Naming conventions
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-03-2007, 09:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •