Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Error setting up project with axistools-maven-plugin

We don't recommend or support adding an execute mapping to your pom, and I believe for axis tools there should be no reason to. Try removing the mapping and using the Discover quickfix.

On 18 July 2011 07:14, Wenig, Michael (IT/I4Z) <michael.wenig@xxxxxxxxxxxxxxxx> wrote:

Hi all,

I upgraded to m2eclipse 1.0 and unfortuinately none of our projects are running out of the box. I got most of the modules working (at least acceptable for the moment) by putting a custom lifecycle mapping in the parent pom.

One is still missing and I get the following error:

Unable to update Maven configuration
Could not get mojo execution parameter value
Cannot assign configuration entry 'outputDirectory' with value 'target/generated-sources' of type java.lang.String to property of type java.io.File[]

Could anyone lead me the way to solve this?

this is the pom definition:

  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>axistools-maven-plugin</artifactId>
        <version>1.3</version>
        <executions>
          <execution>
            <goals>
              <goal>wsdl2java</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <packageSpace>gen.mypackage</packageSpace>
          <sourceDirectory>src/wsdl</sourceDirectory>
          <outputDirectory>target/generated-sources</outputDirectory>
        </configuration>
      </plugin> 
     </plugins>
    </build>

and the following mapping:

                                <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-dependency-plugin
                                                                                </artifactId>
                                                                                <versionRange>
                                                                                        [2.2,)
                                                                                </versionRange>
                                                                                <goals>
                                                                                <goal>unpack</goal>
                                                                                        <goal>resolve</goal>
                                                                                        <goal>unpack-dependencies</goal>

                                                                                </goals>
                                                                        </pluginExecutionFilter>
                                                                        <action>
                                                                                <execute />
                                                                        </action>
                                                                </pluginExecution>
                                                        </pluginExecutions>
                                                </lifecycleMappingMetadata>
                                        </configuration>
                                </plugin>


Regards

Michael

*******************************************************************************
Diese eMail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese eMail irrtuemlich erhalten
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht
gestattet.

This email may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this email
in error) please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the material
in this email is strictly forbidden.
*******************************************************************************

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users



Back to the top