Message Boards

cannot generate maven project

Alexey Perekhodov, modified 3 Years ago.

cannot generate maven project

New Member Posts: 2 Join Date: 11/26/20 Recent Posts

I'm trying generate portlet project with maven according to 'MVC Portlet Template' article. However, when I input the command from the article:

mvn archetype:generate -DarchetypeGroupId=com.liferay -DarchetypeArtifactId=com.liferay.project.templates.mvc.portlet -DgroupId=com.liferay -DartifactId=my-mvc-portlet-project -Dpackage=com.liferay.docs.mvcportlet -Dversion=1.0 -DclassName=MyMvcPortlet -Dauthor=Joe Bloggs -DliferayVersion=7.2

I get the error:

The goal you specified requires a project to execute but there is no POM in this directory

As far as I understand all data is supplied from command line and no preliminary pom is needed.

Alexey Perekhodov, modified 3 Years ago.

RE: cannot generate maven project (Answer)

New Member Posts: 2 Join Date: 11/26/20 Recent Posts

The thing was missing quotes: -Dauthor="Joe Bloggs"