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

How to Create Maven Java Portlet 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-portlet
    

    And so for Example:

    mvn archetype:generate
    -DgroupId=com.tutorialforlinux
    -DartifactId=myPortletPro
    -DarchetypeArtifactId=maven-archetype-portlet
    

    This should then create a Maven Project Structure like:

    .
    |-- src
    |  `-- main
    |    `-- java
    |      |-- [your project's package] 
    |      |  `-- MyPortal.java
    |      |-- jetspeed
    |      |  `-- web.xml
    |      |-- resources
    |      |-- webapp
    |      |  |-- WEB-INF
    |      |  |  |-- tld
    |      |  |  |  `-- portlet.tld
    |      |  |  |-- portlet.xml
    |            |  |  `-- web.xml
    |      |  |-- help.jsp
    |      |  |-- maximized.jsp
    |      |  `-- normal.jsp
    |      `-- index.jsp
    `-- 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