portals-pluto-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Taylor <davidseantay...@gmail.com>
Subject Re: Pluto in Eclipse
Date Thu, 10 Oct 2013 15:52:49 GMT
I don't edit with Eclipse. With IntelliJ I just open the root pom.xml file.
Did you try "mvn eclipse:eclipse"

Here is the output I got from that command, which gives you Eclipse
.classpath files for most of the source:

[INFO] Wrote Eclipse project for "maven-pluto-plugin" to
/Users/dtaylor/apache/portals/pluto/maven-pluto-plugin.
[INFO]
[INFO]

[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Pluto Testsuite Portlet 2.1.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[WARNING] Failed to retrieve plugin descriptor for
org.apache.portals.pluto:maven-pluto-plugin:2.1.0-SNAPSHOT: Plugin
org.apache.portals.pluto:maven-pluto-plugin:2.1.0-SNAPSHOT or one of its
dependencies could not be resolved: Could not find artifact
org.apache.portals.pluto:maven-pluto-plugin:jar:2.1.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Pluto ...................................... SUCCESS [0.911s]
[INFO] Apache Pluto Container API ........................ SUCCESS [0.078s]
[INFO] Apache Pluto Portlet Container .................... SUCCESS [1.566s]
[INFO] Apache Pluto Portlet Tag Library .................. SUCCESS [0.039s]
[INFO] Apache Pluto Container Driver API ................. SUCCESS [0.050s]
[INFO] Apache Pluto Portal Driver ........................ SUCCESS [1.502s]
[INFO] Apache Pluto Portal Driver Implementation Classes . SUCCESS [1.205s]
[INFO] Apache Pluto Portal ............................... SUCCESS [0.801s]
[INFO] Apache Pluto Utilities ............................ SUCCESS [0.068s]
[INFO] Maven Pluto Installer Plugin ...................... SUCCESS [2.253s]
[INFO] Apache Pluto Testsuite Portlet .................... FAILURE [0.019s]
[INFO] Apache Pluto Ant Tasks ............................ SKIPPED
[INFO] Apache Pluto Website Skin ......................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 9.966s
[INFO] Finished at: Thu Oct 10 08:48:48 PDT 2013
[INFO] Final Memory: 22M/336M




On Thu, Oct 10, 2013 at 6:31 AM, Martin Scott Nicklous <
Scott.Nicklous@de.ibm.com> wrote:

>
> Does anyone have any experience working with the Pluto project in Eclipse?
>
> I use eclipse with Subversive and the M2E Maven plugin, and keep getting
> strange error messages when importing the Pluto source or when I rebuild
> Pluto from the command line.
>
> I checked out the Pluto source from SVN. I can build Pluto from the command
> line with "mvn install" with no problem. But when I import the Pluto source
> into eclipse using "Import -> Existing Maven Projects" and selecting the
> directory for the .../pluto/trunk, I get strange error messages when the
> projects are imported, like:
>
> * Execution default-cli of goal
> org.apache.maven.plugins:maven-resources-plugin:2.4:copy-resources failed.
>
> (org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war:default-war:package)
> * An error occurred while filtering resources
> * maven-remote-resources-plugin (goal "process") is ignored by m2e.
>
> The first two problems I could only get rid of by deleting the error
> markers after having determined that the resources were actually filtered
> properly (which is naturally not a very nice way of doing it ...). The
> third problem has to do with a missing maven lifecycle mapping for m2e, and
> I found a fix for that - a lifecycle mapping definition for m2e would need
> to be put into the .../pluto/pom.xml file in the <pluginManagement>
> section:
>
>             <plugin>
>                 <groupId>org.eclipse.m2e</groupId>
>                 <artifactId>lifecycle-mapping</artifactId>
>                 <version>1.0.0</version>
>                 <configuration>
>                     <lifecycleMappingMetadata>
>                         <pluginExecutions>
>                             <pluginExecution>
>                                 <pluginExecutionFilter>
>                                     <groupId>org.apache.maven.plugins</
> groupId>
>                                     <artifactId>
> maven-remote-resources-plugin</artifactId>
>                                     <versionRange>[1.0,)</versionRange>
>                                     <goals>
>                                         <goal>process</goal>
>                                     </goals>
>                                 </pluginExecutionFilter>
>                                 <action>
>                                     <execute />
>                                 </action>
>                             </pluginExecution>
>                         </pluginExecutions>
>                     </lifecycleMappingMetadata>
>                 </configuration>
>             </plugin>
>
> However, all the problems I have been having lead me to believe that I
> might not be going about it in the right way.
>
> Does anyone successfully use Eclipse to work with Pluto? If so, how do you
> go about importing Pluto into Eclipse without a lot of errors?
>
> thanks for any pointers,
> Scott
>
>
>


-- 
David

Mime
View raw message