Re: Maven
Re: Maven
- Subject: Re: Maven
- From: Henrique Prange <email@hidden>
- Date: Fri, 20 Apr 2012 13:42:18 -0300
Hi Ron,
On 19/04/2012, at 05:54, Ron X wrote:
> hi
>
> does anybody know how set up maven for wonder in right way?
>
You have to complete at least the first three steps from the Maven Quick Start Guide [1] before you can build Wonder successfully.
1) Install Maven (it seems you already have) :).
2) Configure the Maven settings.
3) Install WebObjects libraries.
> mvn clean install
>
> i have this error:
>
> [INFO] Creating output folders
> [INFO] Defining WO resources
> [INFO] Defining WO properties
> [INFO] Defining WO classpath
> [INFO] Coping WebServerResources
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1:15.213s
> [INFO] Finished at: Thu Apr 19 01:44:56 PDT 2012
> [INFO] Final Memory: 9M/81M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.objectstyle.woproject.maven2:maven-wolifecycle-plugin:2.1:define-woapplication-resources (default-define-woapplication-resources) on project XMobile: Could not open jar ('JavaWebObjects-5.4.3.jar') input stream: invalid entry size (expected 13949 but got 11459 bytes) -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>
It seems you have a corrupted JavaWebObjects jar in your local repository. You can delete the WebObjects libraries from your local repository and install it again.
Additionally, you should use the latest version (2.2.1) of the maven-wolifecyle-plugin if you're building with Maven 3.
> by the way - how can i build project with maven in build-directory - not in target. i thought maven-wolifecycle-plugin do this automatically
>
You can configure Maven to do this. You need the following configuration in your pom:
<build>
<directory>${basedir}/build</directory>
</build>
Anyway, I don't recommend you do that, unless you have a good reason. Why do you want to build the project in the build folder instead of the target folder?
> and can anybody list all maven goals in this plugin?
You can use the maven-help-plugin to describe the plug-in goals. Below is the command to describe the goals of the latest version of the maven-wolifecycle-plugin.
mvn help:describe -DgroupId=org.objectstyle.woproject.maven2 -DartifactId=maven-wolifecycle-plugin -Dversion=2.2.1
The maven-wolifecycle-plugin goals participate in some phases of Maven. They are executed automatically when you run the "mvn package" command in a WebObjects project.
Cheers,
Henrique
_______________________________________________
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
- Follow-Ups:
- Re: Maven
- From: Henrique Prange <email@hidden>
References: | |
| >Maven (From: Ron X <email@hidden>) |