IDE-1574 Deploy service-builder project to remote server failed

Makes sense, thanks.


On Wed, Jul 9, 2014 at 10:08 AM, simon.jiang <notifications@github.com>
wrote:

> In
> maven/plugins/com.liferay.ide.maven.core/src/com/liferay/ide/maven/core/MavenProjectRemoteServerPublisher.java:
>
> > +
> > +        IMavenProjectFacade projectFacade = MavenUtil.getProjectFacade( project, monitor );
> > +
> > +        String pluginType = MavenUtil.getLiferayMavenPluginType( projectFacade.getMavenProject( monitor ) );
> > +
> > +        List<IFile> serviceXmls = ( new SearchFilesVisitor() ).searchFiles( project, "service.xml" );
> > +
> > +        final MavenProject parentProject = projectFacade.getMavenProject( monitor ).getParent();
> > +        String goal = getMavenDeployGoals();
> > +
> > +        if( serviceXmls != null && serviceXmls.size() > 0 &&
> > +            pluginType.equalsIgnoreCase( ILiferayMavenConstants.DEFAULT_PLUGIN_TYPE ) && parentProject != null )
> > +        {
> > +            execProject = ProjectUtil.getProject( parentProject.getName() );
> > +            projectFacade = MavenUtil.getProjectFacade( execProject, monitor );
> > +            goal = " package -am -pl " + project.getName();
>
> no, we don't need to add *-portlet-service project because I have use -pl
> and -am parameter, maven will automatically invoke the dependency project
> *portlet-service project
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/gamerson/liferay-ide/pull/596/files#r14690757>.
>



-- 
Greg Amerson
Liferay Developer Tools
Liferay, Inc. www.liferay.com