$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

How to Create Maven J2EE Project on Gnu/Linux Command Line

December 18, 2021 | By the+gnu+linux+evangelist.

Creating Project

  1. 2. Installing Maven

    How to Install Apache Maven on GNU/Linux

    Installing Maven Linux Tutorial
  2. 3. Making Java Project

    Maven 3 Command to Create a Simple Java Project
    The general form is:

    mvn archetype:generate
    -DgroupId=[yourPackagingId]
    -DartifactId=[yourProjectName]
    -DarchetypeArtifactId=maven-archetype-j2ee-simple
    

    And so for Example:

    mvn archetype:generate
    -DgroupId=com.tutorialforlinux
    -DartifactId=myJ2eePro
    -DarchetypeArtifactId=maven-archetype-j2ee-simple
    

    This should then create a Maven Project Structure like:

    .
    |-- ear
    |  `-- pom.xml
    |-- ejb
    |  |-- src
    |  |  `-- main
    |  |    `-- resources
    |  |      `-- META-INF
    |  |        `-- ejb-jar.xml
    |  `-- pom.xml
    |-- primary-source
    |  `-- pom.xml
    |-- projects
    |  |-- logging
    |  |  `-- pom.xml
    |  `-- pom.xml
    |-- servlets
    |  |-- servlet
    |  |  |-- src
    |  |  |  `-- main
    |  |  |    `-- webapp
    |  |  |      |-- WEB-INF
    |  |  |      |  `-- web.xml
    |  |  |      `-- index.jsp
    |  |  `-- pom.xml
    |  `-- pom.xml
    |-- src
    |  `-- main
    |    `-- resources
    `-- pom.xml
    
  3. 4. Setting up Eclipse

    How to Integrate a Maven Java Project into Eclipse:

    Maven Eclipse Integration

    Getting-Started with Java Development on Eclipse IDE for Linux: Installing Eclipse on Linux

Contents