Re: WO Maven getting started
Re: WO Maven getting started
- Subject: Re: WO Maven getting started
- From: Fabian Peters <email@hidden>
- Date: Sat, 12 Sep 2015 09:36:49 +0200
Hi Ramsey,
First, it seems you're using an old version specification for the wolifecycle plugin, the current being "[2.2.1,)".
The error messages only concern the m2e plugin, not the "real" maven build. The plugin has to be told to ignore the woapplication goal of the wolifecycle plugin. If you select the warning/error entry in the problems view, you should be offered quick-fix solutions that will add the XML boilerplate necessary to achieve this.
If you have a common parent pom, you should be able to add the following section to it and thus have it configured for all child pom files:
<build>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings
only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.objectstyle.woproject.maven2
</groupId>
<artifactId>
maven-wolifecycle-plugin
</artifactId>
<goals>
<goal>
define-woframework-resources
</goal>
<goal>woframework</goal>
<goal>
define-woapplication-resources
</goal>
<goal>woapplication</goal>
</goals>
<versionRange>[2.2.1,)</versionRange>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
As for the failure to find ERExtensions, you should check that you have downloaded and installed the settings file referenced in the getting started guide. IMHO step 2 there should not be skipped.
cheers, Fabian
> Am 11.09.2015 um 23:19 schrieb Ramsey Gurley <email@hidden>:
>
> So I really desperately want to migrate my projects to Maven. I tried back in May when I had a chance, and failed. I’m trying again now. I can’t get a hello world to compile. I’m starting here
>
> https://wiki.wocommunity.org/display/WOL/Quick+Start
>
> But from step 5 on, nothing works. I installed the m2e plugin on mars, imported my hello world, and I get
>
> Plugin execution not covered by lifecycle configuration: org.objectstyle.woproject.maven2:maven-wolifecycle-plugin:2.0.17:woapplication (execution: default-woapplication, phase: generate-test-resources) pom.xml /testing line 26 Maven Project Build Lifecycle Mapping Problem
>
> and
>
> Plugin execution not covered by lifecycle configuration: org.objectstyle.woproject.maven2:maven-wolifecycle-plugin:2.0.17:define-woapplication-resources (execution: default-define-woapplication-resources, phase: validate) pom.xml /testing line 26 Maven Project Build Lifecycle Mapping Problem
>
> If I simply try to mvn clean package in the project directory, I get
>
> [ERROR] Failed to execute goal on project testing: Could not resolve dependencies for project test:testing:woapplication:1.0-SNAPSHOT: The following artifacts could not be resolved: wonder.core:ERExtensions:jar:wo54:6.1.3-SNAPSHOT, wonder.core:WOOgnl:jar:wo54:6.1.3-SNAPSHOT, wonder.core:ERPrototypes:jar:6.1.3-SNAPSHOT: Failure to find wonder.core:ERExtensions:jar:wo54:6.1.3-SNAPSHOT in http://maven.wocommunity.org/content/groups/public-snapshots was cached in the local repository, resolution will not be reattempted until the update interval of wocommunity.snapshots has elapsed or updates are forced -> [Help 1]
>
> Can anyone explain why this isn’t working?
>
> Thanks,
>
> Ramsey
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden