You can create an ADF application with Maven integration in the following ways:
From a command-line using the OEPE provided ADF Application Archetype
From OEPE using the New Maven Project and using the ADF application Archetype
From OEPE using the New ADF Application Wizard
You can create an ADF application using the command line.
To Create an ADF application from the command line:
Open a command prompt and navigate to your project location.
Run the following command:
mvn archetype:generate -DarchetypeGroupId=com.oracle.adf.archetype -DarchetypeArtifactId=adf-basic-application -DarchetypeVersion=12.1.2-0-0
Enter the appropriate required values for groupId, artifactId, version, and package, as shown in Figure: Running the Generate Basic Maven Application Command.
Change directory to newly-created top-level Maven project folder.
Execute the following command:
mvn clean install
You can create a Maven application using the Maven Project wizard.
To create a Maven application from the application wizard:
In your OEPE Eclipse application go to File > New > Project. In the New Project dialog expand the Maven directory and select Maven Project and click Next.
In the New Maven Project dialog, select your project name and location, as shown in Figure: Creating a New Maven Project - Filename and Location.
Click Next. The Select an Archetype dialog appears. Select the ADF archetype called com.oracle.adf.archetypes, as shown in Figure: Creating a New Maven Project - Selecting the ADF Archetype. Type "adf" as a filter to filter out the many other options.
Select the ADF archetype and click Next.
Enter your values in the dialog fields, as shown in Figure: Creating a New Maven Project - Specifying the Archetype Parameters.
Click Finish. The new Maven application appears in your Project Explorer window.
OEPE provides the option to add Maven capabilities to projects in your new ADF application.
To add Maven integration to new ADF application projects:
Go to File > New > ADF Application. You are creating an ADF application in which you will add Maven capabilities to the application projects.
Add the information required for you new ADF application on the first two wizard pages.
The third wizard page is the Maven Integration Page, as shown in Figure: Add Maven Integration Page in New ADF Application Wizard.
Check the Add Maven (m2e) capabilities to projects box. This adds Maven capabilities.
Click Finish.