You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Charlie Abela <ch...@gmail.com> on 2005/11/29 22:33:43 UTC

using Maven 2 and Getting this error

Hi I am new to Maven so this question might seem quite a non-problem :)

anyways I have set the  PATH to M2_HOME  and installed maven correctly since
executing the command M2 --version returns the correct version.
I have a project.xml with relative tagged info but when I try to execute
commands such as m2 compile of m2 java:compile an error is generated that
includes something of this sort:

--------------------------------------------------------------------------
Diagnosis: Error configuring plugin for execution of 'resources:resources'
[INFO]
----------------------------------------------------------------------------
[ERROR] Cause:
org.apache.maven.plugin.MojoExecutionException: Error configuring plugin for
execution of 'resources:resources'.
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:335)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:479)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:452)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:438)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:131)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginConfigurationException: Unable to
parse the created DOM for plugin configuration
        at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields
(DefaultPluginManager.java:1019)
        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(
DefaultPluginManager.java:515)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:330)
        ... 15 more
Caused by:
org.codehaus.plexus.component.configurator.ComponentConfigurationException:
Class 'java.util.List' cannot be instantiated
        at
org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject
(AbstractConfigurationCo
rter.java:121)
        at
org.codehaus.plexus.component.configurator.converters.composite.CollectionConverter.fromConfiguration
(CollectionConverter.java
)
        at
org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure
(ComponentValueSetter.java:252)
        at
org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration
(ObjectWithField
nverter.java:116)
        at
org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent
(BasicComponentConfigurator.java:55)
        at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields
(DefaultPluginManager.java:1014)
        ... 17 more
Caused by: java.lang.InstantiationException: java.util.List
        at java.lang.Class.newInstance0(Class.java:335)
        at java.lang.Class.newInstance(Class.java:303)
        at
org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject
(AbstractConfigurationCo
rter.java:111)
        ... 22 more
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Nov 29 22:24:50 CET 2005
[INFO] Final Memory: 2M/5M
[INFO]
----------------------------------------------------------------------------

can someone help me out?
Am I doing something wrong here?

Thanks in advance

Charlie

Re: using Maven 2 and Getting this error

Posted by Jesse McConnell <je...@gmail.com>.
missed the list

On 11/29/05, Jesse McConnell <je...@gmail.com> wrote:
>
> looks to me like you need to be using maven 1 to compile this, project.xmlfiles were maven1 (note the pomVersion 3, in maven2 that is actually
> <modelVersion>4.0.0</modelVersion>)  in maven 2 the default project files
> are named pom.xml
>
> cheers!
>
> On 11/29/05, Charlie Abela <ch...@gmail.com> wrote:
> >
> > Thanks for your reply. Actually what I'm trying to do is the following,
> > I want to run a third party application which makes use of maven to compile
> > etc...Included with this code are 2 xml files, a maven and
> > project.xml....i am assuming that the project.xml is the POM that you're
> > referring to, correct?
> > anyways heere is the code in this xml file
> >
> > <project>
> >     <pomVersion>3</pomVersion>
> >     <groupId>Owls_GUI</groupId>
> >     <artifactId>Owls_GUI</artifactId>
> >     <name>OWL-S Matcher</name>
> >     <currentVersion>0.1</currentVersion>
> >     <organization>
> >         <name>TU Berlin, FG IVS, Michael C. Jaeger</name>
> >         <url>http://ivs.tu-berlin.de/</url>
> >     </organization>
> >     <inceptionYear>2004</inceptionYear>
> >     <description>The OWL-S Matcher is a matching utility for OWL-S Web
> > Service Description Files</description>
> >     <shortDescription>OWL-S Web Service Description
> > Matcher</shortDescription>
> >     <package>Owls_GUI</package>
> >         <developers>
> >         <developer>
> >             <name>Stefan Tang</name>
> >             <email>steftang@stanford.edu</email>
> >             <organization>Technische Universitaet Berlin</organization>
> >         </developer>
> >         <developer>
> >             <name>Christoph Liebetruth</name>
> >             <email>trutie@cs.tu.berlin.de</email>
> >             <organization>Technische Universitaet Berlin</organization>
> >         </developer>
> >         <developer>
> >             <name>Michael C. Jaeger</name>
> >             <email>mcj@ivs.tu-berlin.de</email>
> >             <organization>Technische Universitaet Berlin</organization>
> >         </developer>
> >     </developers>
> >
> >     <contributors>
> >         <contributor>
> >             <name>Maybe You</name>
> >             <email>your_address@your_domain.org</email>
> >             <organization>Your Organisation</organization>
> >         </contributor>
> >     </contributors>
> >
> >     <dependencies>
> >         <dependency>
> >             <groupId>icu4j</groupId>
> >             <artifactId>icu4j</artifactId>
> >             <version>x</version>
> >             <jar>icu4j.jar</jar>
> >             <url>http://www-124.ibm.com/icu4j/</url>
> >         </dependency>
> >         <dependency>
> >             <groupId>jaxen</groupId>
> >             <artifactId>jaxen</artifactId>
> >             <version>x</version>
> >             <jar>jaxen-1.0-FCS-full.jar</jar>
> >             <url>http://jaxen.sourceforge.net/</url>
> >         </dependency>
> >         <dependency>
> >             <groupId>jdom</groupId>
> >             <artifactId>jdom</artifactId>
> >             <version>x</version>
> >             <jar>jdom.jar</jar>
> >             <url>http://www.jdom.org</url>
> >         </dependency>
> >         <dependency>
> >             <groupId>jena</groupId>
> >             <artifactId>jena</artifactId>
> >             <version>x</version>
> >             <jar>jena.jar</jar>
> >             <url>http://jena.sourceforge.net</url>
> >         </dependency>
> >         <dependency>
> >             <groupId>jess</groupId>
> >             <artifactId>jess</artifactId>
> >             <version>x</version>
> >             <jar>jess.jar</jar>
> >             <url>http://herzberg.ca.sandia.gov/jess</url>
> >         </dependency>
> >         <dependency>
> >             <groupId>log4j</groupId>
> >             <artifactId>log4j</artifactId>
> >             <version>x</version>
> >             <url>http://logging.apache.org/log4j/docs/index.html</url>
> >         </dependency>
> >         <dependency>
> >             <groupId>owljesskb</groupId>
> >             <artifactId>owljesskb</artifactId>
> >             <version>x</version>
> >             <jar>owljesskb20040223.jar</jar>
> >             <url>http://edge.cs.drexel.edu/assemblies/software/owljesskb
> > </url>
> >         </dependency>
> >         <dependency>
> >             <groupId>saxpath</groupId>
> >             <artifactId>saxpath</artifactId>
> >             <version>x</version>
> >             <jar>saxpath-1.0-FCS.jar</jar>
> >             <url>http://saxpath.sourceforge.net/</url>
> >         </dependency>
> >         <dependency>
> >             <groupId>xerces</groupId>
> >             <artifactId>xercesImpl</artifactId>
> >             <version>x</version>
> >             <url>http://xml.apache.org/</url>
> >         </dependency>
> >     </dependencies>
> >     <build>
> >         <sourceDirectory> C:/matchmaker/src/java</sourceDirectory>
> >         <resources>
> >             <resource>
> >                 <directory>C:/matchmaker/src/java</directory>
> >                 <includes>
> >                     <include>**/*.png</include>
> >                     <include>**/*.gif</include>
> >                 </includes>
> >             </resource>
> >         </resources>
> >
> >     </build>
> >     <reports>
> >         <report>maven-jdepend-plugin</report>
> >         <report>maven-changes-plugin</report>
> >         <report>maven-license-plugin</report>
> >         <report>maven-javadoc-plugin</report>
> >         <report>maven-jxr-plugin</report>
> >         <report>maven-junit-report-plugin</report>
> >         <report>maven-linkcheck-plugin</report>
> >         <report>maven-tasklist-plugin</report>
> >     </reports>
> > </project>
> >
> > thanks again
> >
> > Charlie
> >
> > On 11/29/05, Jesse McConnell < jesse.mailing.lists@gmail.com> wrote:
> > >
> > >
> > > org.codehaus.plexus.component.configurator.ComponentConfigurationException
> > > :
> > > Class 'java.util.List' cannot be instantiated
> > >        at
> > >
> > > that indicates that it is trying to make a List, when it needs to be
> > > making
> > > an ArrayList in a mojo..are you using an implemenation="java.util.List
> > > "
> > > attribute in a plugin configuration somewhere?
> > >
> > > could you paste the relevant portion of the pom.xml?  and you meant
> > > pom.xmland not
> > > project.xml below, right?
> > >
> > > jesse
> > >
> > >
> > > On 11/29/05, Charlie Abela <charles.abela@gmail.com > wrote:
> > > >
> > > > Hi I am new to Maven so this question might seem quite a non-problem
> > > :)
> > > >
> > > > anyways I have set the  PATH to M2_HOME  and installed maven
> > > correctly
> > > > since
> > > > executing the command M2 --version returns the correct version.
> > > > I have a project.xml with relative tagged info but when I try to
> > > execute
> > > > commands such as m2 compile of m2 java:compile an error is generated
> > > that
> > > > includes something of this sort:
> > > >
> > > >
> > > --------------------------------------------------------------------------
> > > > Diagnosis: Error configuring plugin for execution of
> > > 'resources:resources'
> > > > [INFO]
> > > >
> > > >
> > > ----------------------------------------------------------------------------
> > > > [ERROR] Cause:
> > > > org.apache.maven.plugin.MojoExecutionException: Error configuring
> > > plugin
> > > > for
> > > > execution of 'resources:resources'.
> > > >         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> > > > DefaultPluginManager.java:335)
> > > >         at
> > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (
> > > > DefaultLifecycleExecutor.java:479)
> > > >         at
> > > >
> > > >
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> > > > (DefaultLifecycleExecutor.java:452)
> > > >         at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> > > > (
> > > > DefaultLifecycleExecutor.java:438)
> > > >         at
> > > >
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
> > > (
> > > > DefaultLifecycleExecutor.java:273)
> > > >         at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (
> > > > DefaultLifecycleExecutor.java:131)
> > > >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java
> > > :186)
> > > >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
> > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native
> > > Method)
> > > >         at sun.reflect.NativeMethodAccessorImpl.invoke(
> > > > NativeMethodAccessorImpl.java:39)
> > > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > > DelegatingMethodAccessorImpl.java :25)
> > > >         at java.lang.reflect.Method.invoke(Method.java:585)
> > > >         at org.codehaus.classworlds.Launcher.launchEnhanced(
> > > Launcher.java
> > > > :315)
> > > >         at org.codehaus.classworlds.Launcher.launch (Launcher.java
> > > :255)
> > > >         at org.codehaus.classworlds.Launcher.mainWithExitCode(
> > > > Launcher.java
> > > > :430)
> > > >         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > > Caused by: org.apache.maven.plugin.PluginConfigurationException:
> > > Unable to
> > > > parse the created DOM for plugin configuration
> > > >         at
> > > > org.apache.maven.plugin.DefaultPluginManager.populatePluginFields
> > > > ( DefaultPluginManager.java:1019)
> > > >         at
> > > org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(
> > > > DefaultPluginManager.java:515)
> > > >         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> > > > DefaultPluginManager.java:330)
> > > >         ... 15 more
> > > > Caused by:
> > > >
> > > org.codehaus.plexus.component.configurator.ComponentConfigurationException
> > > > :
> > > > Class 'java.util.List' cannot be instantiated
> > > >         at
> > > >
> > > >
> > > org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject
> > > > (AbstractConfigurationCo
> > > > rter.java:121)
> > > >         at
> > > >
> > > >
> > > org.codehaus.plexus.component.configurator.converters.composite.CollectionConverter.fromConfiguration
> > > > (CollectionConverter.java
> > > > )
> > > >         at
> > > >
> > > >
> > > org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure
> > > > (ComponentValueSetter.java:252)
> > > >         at
> > > >
> > > >
> > > org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration
> > > > (ObjectWithField
> > > > nverter.java :116)
> > > >         at
> > > >
> > > >
> > > org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent
> > > > (BasicComponentConfigurator.java:55)
> > > >         at
> > > > org.apache.maven.plugin.DefaultPluginManager.populatePluginFields
> > > > (DefaultPluginManager.java:1014)
> > > >         ... 17 more
> > > > Caused by: java.lang.InstantiationException: java.util.List
> > > >         at java.lang.Class.newInstance0(Class.java:335)
> > > >         at java.lang.Class.newInstance(Class.java:303)
> > > >         at
> > > >
> > > >
> > > org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject
> > > > (AbstractConfigurationCo
> > > > rter.java:111)
> > > >         ... 22 more
> > > > [INFO]
> > > >
> > > >
> > > ----------------------------------------------------------------------------
> > > > [INFO] Total time: 1 second
> > > > [INFO] Finished at: Tue Nov 29 22:24:50 CET 2005
> > > > [INFO] Final Memory: 2M/5M
> > > > [INFO]
> > > >
> > > >
> > > ----------------------------------------------------------------------------
> > > >
> > > > can someone help me out?
> > > > Am I doing something wrong here?
> > > >
> > > > Thanks in advance
> > > >
> > > > Charlie
> > > >
> > > >
> > >
> > >
> > > --
> > > jesse mcconnell
> > >
> > >
> >
>
>
> --
> jesse mcconnell
> jesseDOTmcconnellATgmailDOTcom




--
jesse mcconnell
jesseDOTmcconnellATgmailDOTcom

RE : using Maven 2 and Getting this error

Posted by Olivier Lamy <ol...@accor.com>.
Have look http://maven.apache.org/guides/mini/guide-site.html (section
Configuring Reports).
This is totally different from maven1 and this is certainly the error.
Example to add javadoc report :
<reporting>
    <plugins>
	....
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>jxr-maven-plugin</artifactId>
      </plugin>
	....
    </plugins>
	
</reporting>

-----Message d'origine-----
De : Charlie Abela [mailto:charles.abela@gmail.com] 
Envoyé : mardi 29 novembre 2005 22:57
À : Maven Users List; jesse.mcconnell@gmail.com
Objet : Re: using Maven 2 and Getting this error


Thanks for your reply. Actually what I'm trying to do is the following,
I want to run a third party application which makes use of maven to
compile etc...Included with this code are 2 xml files, a maven and
project.xml....iam assuming that the project.xml is the POM that you're
referring to, correct? anyways heere is the code in this xml file

<project>
    <pomVersion>3</pomVersion>
    <groupId>Owls_GUI</groupId>
    <artifactId>Owls_GUI</artifactId>
    <name>OWL-S Matcher</name>
    <currentVersion>0.1</currentVersion>
    <organization>
        <name>TU Berlin, FG IVS, Michael C. Jaeger</name>
        <url>http://ivs.tu-berlin.de/</url>
    </organization>
    <inceptionYear>2004</inceptionYear>
    <description>The OWL-S Matcher is a matching utility for OWL-S Web
Service Description Files</description>
    <shortDescription>OWL-S Web Service Description
Matcher</shortDescription>
    <package>Owls_GUI</package>
        <developers>
        <developer>
            <name>Stefan Tang</name>
            <email>steftang@stanford.edu</email>
            <organization>Technische Universitaet Berlin</organization>
        </developer>
        <developer>
            <name>Christoph Liebetruth</name>
            <email>trutie@cs.tu.berlin.de</email>
            <organization>Technische Universitaet Berlin</organization>
        </developer>
        <developer>
            <name>Michael C. Jaeger</name>
            <email>mcj@ivs.tu-berlin.de</email>
            <organization>Technische Universitaet Berlin</organization>
        </developer>
    </developers>

    <contributors>
        <contributor>
            <name>Maybe You</name>
            <email>your_address@your_domain.org</email>
            <organization>Your Organisation</organization>
        </contributor>
    </contributors>

    <dependencies>
        <dependency>
            <groupId>icu4j</groupId>
            <artifactId>icu4j</artifactId>
            <version>x</version>
            <jar>icu4j.jar</jar>
            <url>http://www-124.ibm.com/icu4j/</url>
        </dependency>
        <dependency>
            <groupId>jaxen</groupId>
            <artifactId>jaxen</artifactId>
            <version>x</version>
            <jar>jaxen-1.0-FCS-full.jar</jar>
            <url>http://jaxen.sourceforge.net/</url>
        </dependency>
        <dependency>
            <groupId>jdom</groupId>
            <artifactId>jdom</artifactId>
            <version>x</version>
            <jar>jdom.jar</jar>
            <url>http://www.jdom.org</url>
        </dependency>
        <dependency>
            <groupId>jena</groupId>
            <artifactId>jena</artifactId>
            <version>x</version>
            <jar>jena.jar</jar>
            <url>http://jena.sourceforge.net</url>
        </dependency>
        <dependency>
            <groupId>jess</groupId>
            <artifactId>jess</artifactId>
            <version>x</version>
            <jar>jess.jar</jar>
            <url>http://herzberg.ca.sandia.gov/jess</url>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>x</version>
            <url>http://logging.apache.org/log4j/docs/index.html</url>
        </dependency>
        <dependency>
            <groupId>owljesskb</groupId>
            <artifactId>owljesskb</artifactId>
            <version>x</version>
            <jar>owljesskb20040223.jar</jar>
            <url>http://edge.cs.drexel.edu/assemblies/software/owljesskb
</url>
        </dependency>
        <dependency>
            <groupId>saxpath</groupId>
            <artifactId>saxpath</artifactId>
            <version>x</version>
            <jar>saxpath-1.0-FCS.jar</jar>
            <url>http://saxpath.sourceforge.net/</url>
        </dependency>
        <dependency>
            <groupId>xerces</groupId>
            <artifactId>xercesImpl</artifactId>
            <version>x</version>
            <url>http://xml.apache.org/</url>
        </dependency>
    </dependencies>
    <build>
        <sourceDirectory> C:/matchmaker/src/java</sourceDirectory>
        <resources>
            <resource>
                <directory>C:/matchmaker/src/java</directory>
                <includes>
                    <include>**/*.png</include>
                    <include>**/*.gif</include>
                </includes>
            </resource>
        </resources>

    </build>
    <reports>
        <report>maven-jdepend-plugin</report>
        <report>maven-changes-plugin</report>
        <report>maven-license-plugin</report>
        <report>maven-javadoc-plugin</report>
        <report>maven-jxr-plugin</report>
        <report>maven-junit-report-plugin</report>
        <report>maven-linkcheck-plugin</report>
        <report>maven-tasklist-plugin</report>
    </reports>
</project>

thanks again

Charlie

On 11/29/05, Jesse McConnell <je...@gmail.com> wrote:
>
> org.codehaus.plexus.component.configurator.ComponentConfigurationExcep
> tion
> :
> Class 'java.util.List' cannot be instantiated
>        at
>
> that indicates that it is trying to make a List, when it needs to be 
> making an ArrayList in a mojo..are you using an 
> implemenation="java.util.List" attribute in a plugin configuration 
> somewhere?
>
> could you paste the relevant portion of the pom.xml?  and you meant 
> pom.xmland not project.xml below, right?
>
> jesse
>
>
> On 11/29/05, Charlie Abela <ch...@gmail.com> wrote:
> >
> > Hi I am new to Maven so this question might seem quite a non-problem

> > :)
> >
> > anyways I have set the  PATH to M2_HOME  and installed maven 
> > correctly since executing the command M2 --version returns the 
> > correct version. I have a project.xml with relative tagged info but 
> > when I try to execute commands such as m2 compile of m2 java:compile

> > an error is generated
> that
> > includes something of this sort:
> >
> >
> ----------------------------------------------------------------------
> ----
> > Diagnosis: Error configuring plugin for execution of
> 'resources:resources'
> > [INFO]
> >
> >
> ----------------------------------------------------------------------
> ------
> > [ERROR] Cause:
> > org.apache.maven.plugin.MojoExecutionException: Error configuring 
> > plugin for execution of 'resources:resources'.
> >         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> > DefaultPluginManager.java:335)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > DefaultLifecycleExecutor.java:479)
> >         at
> >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLif
> ecycle
> > (DefaultLifecycleExecutor.java:452)
> >         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> > (
> > DefaultLifecycleExecutor.java:438)
> >         at 
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme
> > nts(
> > DefaultLifecycleExecutor.java:273)
> >         at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> > DefaultLifecycleExecutor.java:131)
> >         at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186)
> >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:39)
> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at org.codehaus.classworlds.Launcher.launchEnhanced(
> Launcher.java
> > :315)
> >         at
org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >         at org.codehaus.classworlds.Launcher.mainWithExitCode(
> > Launcher.java
> > :430)
> >         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > Caused by: org.apache.maven.plugin.PluginConfigurationException: 
> > Unable
> to
> > parse the created DOM for plugin configuration
> >         at 
> > org.apache.maven.plugin.DefaultPluginManager.populatePluginFields
> > (DefaultPluginManager.java:1019)
> >         at
> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(
> > DefaultPluginManager.java:515)
> >         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> > DefaultPluginManager.java:330)
> >         ... 15 more
> > Caused by:
> >
> org.codehaus.plexus.component.configurator.ComponentConfigurationExcep
> tion
> > :
> > Class 'java.util.List' cannot be instantiated
> >         at
> >
> >
> org.codehaus.plexus.component.configurator.converters.AbstractConfigur
> ationConverter.instantiateObject
> > (AbstractConfigurationCo
> > rter.java:121)
> >         at
> >
> >
> org.codehaus.plexus.component.configurator.converters.composite.Collec
> tionConverter.fromConfiguration
> > (CollectionConverter.java
> > )
> >         at
> >
> >
> org.codehaus.plexus.component.configurator.converters.ComponentValueSe
> tter.configure
> > (ComponentValueSetter.java:252)
> >         at
> >
> >
> org.codehaus.plexus.component.configurator.converters.composite.Object
> WithFieldsConverter.processConfiguration
> > (ObjectWithField
> > nverter.java:116)
> >         at
> >
> >
> org.codehaus.plexus.component.configurator.BasicComponentConfigurator.
> configureComponent
> > (BasicComponentConfigurator.java:55)
> >         at 
> > org.apache.maven.plugin.DefaultPluginManager.populatePluginFields
> > (DefaultPluginManager.java:1014)
> >         ... 17 more
> > Caused by: java.lang.InstantiationException: java.util.List
> >         at java.lang.Class.newInstance0(Class.java:335)
> >         at java.lang.Class.newInstance(Class.java:303)
> >         at
> >
> >
> org.codehaus.plexus.component.configurator.converters.AbstractConfigur
> ationConverter.instantiateObject
> > (AbstractConfigurationCo
> > rter.java:111)
> >         ... 22 more
> > [INFO]
> >
> >
> ----------------------------------------------------------------------
> ------
> > [INFO] Total time: 1 second
> > [INFO] Finished at: Tue Nov 29 22:24:50 CET 2005
> > [INFO] Final Memory: 2M/5M
> > [INFO]
> >
> >
> ----------------------------------------------------------------------
> ------
> >
> > can someone help me out?
> > Am I doing something wrong here?
> >
> > Thanks in advance
> >
> > Charlie
> >
> >
>
>
> --
> jesse mcconnell
>
>



This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
********************************************************************** 
Ce message électronique et tous les fichiers joints ainsi que  les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites.
********************************************************************** 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: using Maven 2 and Getting this error

Posted by Charlie Abela <ch...@gmail.com>.
Thanks for your reply. Actually what I'm trying to do is the following, I
want to run a third party application which makes use of maven to compile
etc...Included with this code are 2 xml files, a maven and
project.xml....iam assuming that the
project.xml is the POM that you're referring to, correct?
anyways heere is the code in this xml file

<project>
    <pomVersion>3</pomVersion>
    <groupId>Owls_GUI</groupId>
    <artifactId>Owls_GUI</artifactId>
    <name>OWL-S Matcher</name>
    <currentVersion>0.1</currentVersion>
    <organization>
        <name>TU Berlin, FG IVS, Michael C. Jaeger</name>
        <url>http://ivs.tu-berlin.de/</url>
    </organization>
    <inceptionYear>2004</inceptionYear>
    <description>The OWL-S Matcher is a matching utility for OWL-S Web
Service Description Files</description>
    <shortDescription>OWL-S Web Service Description
Matcher</shortDescription>
    <package>Owls_GUI</package>
        <developers>
        <developer>
            <name>Stefan Tang</name>
            <email>steftang@stanford.edu</email>
            <organization>Technische Universitaet Berlin</organization>
        </developer>
        <developer>
            <name>Christoph Liebetruth</name>
            <email>trutie@cs.tu.berlin.de</email>
            <organization>Technische Universitaet Berlin</organization>
        </developer>
        <developer>
            <name>Michael C. Jaeger</name>
            <email>mcj@ivs.tu-berlin.de</email>
            <organization>Technische Universitaet Berlin</organization>
        </developer>
    </developers>

    <contributors>
        <contributor>
            <name>Maybe You</name>
            <email>your_address@your_domain.org</email>
            <organization>Your Organisation</organization>
        </contributor>
    </contributors>

    <dependencies>
        <dependency>
            <groupId>icu4j</groupId>
            <artifactId>icu4j</artifactId>
            <version>x</version>
            <jar>icu4j.jar</jar>
            <url>http://www-124.ibm.com/icu4j/</url>
        </dependency>
        <dependency>
            <groupId>jaxen</groupId>
            <artifactId>jaxen</artifactId>
            <version>x</version>
            <jar>jaxen-1.0-FCS-full.jar</jar>
            <url>http://jaxen.sourceforge.net/</url>
        </dependency>
        <dependency>
            <groupId>jdom</groupId>
            <artifactId>jdom</artifactId>
            <version>x</version>
            <jar>jdom.jar</jar>
            <url>http://www.jdom.org</url>
        </dependency>
        <dependency>
            <groupId>jena</groupId>
            <artifactId>jena</artifactId>
            <version>x</version>
            <jar>jena.jar</jar>
            <url>http://jena.sourceforge.net</url>
        </dependency>
        <dependency>
            <groupId>jess</groupId>
            <artifactId>jess</artifactId>
            <version>x</version>
            <jar>jess.jar</jar>
            <url>http://herzberg.ca.sandia.gov/jess</url>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>x</version>
            <url>http://logging.apache.org/log4j/docs/index.html</url>
        </dependency>
        <dependency>
            <groupId>owljesskb</groupId>
            <artifactId>owljesskb</artifactId>
            <version>x</version>
            <jar>owljesskb20040223.jar</jar>
            <url>http://edge.cs.drexel.edu/assemblies/software/owljesskb
</url>
        </dependency>
        <dependency>
            <groupId>saxpath</groupId>
            <artifactId>saxpath</artifactId>
            <version>x</version>
            <jar>saxpath-1.0-FCS.jar</jar>
            <url>http://saxpath.sourceforge.net/</url>
        </dependency>
        <dependency>
            <groupId>xerces</groupId>
            <artifactId>xercesImpl</artifactId>
            <version>x</version>
            <url>http://xml.apache.org/</url>
        </dependency>
    </dependencies>
    <build>
        <sourceDirectory> C:/matchmaker/src/java</sourceDirectory>
        <resources>
            <resource>
                <directory>C:/matchmaker/src/java</directory>
                <includes>
                    <include>**/*.png</include>
                    <include>**/*.gif</include>
                </includes>
            </resource>
        </resources>

    </build>
    <reports>
        <report>maven-jdepend-plugin</report>
        <report>maven-changes-plugin</report>
        <report>maven-license-plugin</report>
        <report>maven-javadoc-plugin</report>
        <report>maven-jxr-plugin</report>
        <report>maven-junit-report-plugin</report>
        <report>maven-linkcheck-plugin</report>
        <report>maven-tasklist-plugin</report>
    </reports>
</project>

thanks again

Charlie

On 11/29/05, Jesse McConnell <je...@gmail.com> wrote:
>
> org.codehaus.plexus.component.configurator.ComponentConfigurationException
> :
> Class 'java.util.List' cannot be instantiated
>        at
>
> that indicates that it is trying to make a List, when it needs to be
> making
> an ArrayList in a mojo..are you using an implemenation="java.util.List"
> attribute in a plugin configuration somewhere?
>
> could you paste the relevant portion of the pom.xml?  and you meant
> pom.xmland not
> project.xml below, right?
>
> jesse
>
>
> On 11/29/05, Charlie Abela <ch...@gmail.com> wrote:
> >
> > Hi I am new to Maven so this question might seem quite a non-problem :)
> >
> > anyways I have set the  PATH to M2_HOME  and installed maven correctly
> > since
> > executing the command M2 --version returns the correct version.
> > I have a project.xml with relative tagged info but when I try to execute
> > commands such as m2 compile of m2 java:compile an error is generated
> that
> > includes something of this sort:
> >
> >
> --------------------------------------------------------------------------
> > Diagnosis: Error configuring plugin for execution of
> 'resources:resources'
> > [INFO]
> >
> >
> ----------------------------------------------------------------------------
> > [ERROR] Cause:
> > org.apache.maven.plugin.MojoExecutionException: Error configuring plugin
> > for
> > execution of 'resources:resources'.
> >         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> > DefaultPluginManager.java:335)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > DefaultLifecycleExecutor.java:479)
> >         at
> >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> > (DefaultLifecycleExecutor.java:452)
> >         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> > (
> > DefaultLifecycleExecutor.java:438)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> > DefaultLifecycleExecutor.java:273)
> >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> > DefaultLifecycleExecutor.java:131)
> >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186)
> >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:39)
> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at org.codehaus.classworlds.Launcher.launchEnhanced(
> Launcher.java
> > :315)
> >         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >         at org.codehaus.classworlds.Launcher.mainWithExitCode(
> > Launcher.java
> > :430)
> >         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > Caused by: org.apache.maven.plugin.PluginConfigurationException: Unable
> to
> > parse the created DOM for plugin configuration
> >         at
> > org.apache.maven.plugin.DefaultPluginManager.populatePluginFields
> > (DefaultPluginManager.java:1019)
> >         at
> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(
> > DefaultPluginManager.java:515)
> >         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> > DefaultPluginManager.java:330)
> >         ... 15 more
> > Caused by:
> >
> org.codehaus.plexus.component.configurator.ComponentConfigurationException
> > :
> > Class 'java.util.List' cannot be instantiated
> >         at
> >
> >
> org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject
> > (AbstractConfigurationCo
> > rter.java:121)
> >         at
> >
> >
> org.codehaus.plexus.component.configurator.converters.composite.CollectionConverter.fromConfiguration
> > (CollectionConverter.java
> > )
> >         at
> >
> >
> org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure
> > (ComponentValueSetter.java:252)
> >         at
> >
> >
> org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration
> > (ObjectWithField
> > nverter.java:116)
> >         at
> >
> >
> org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent
> > (BasicComponentConfigurator.java:55)
> >         at
> > org.apache.maven.plugin.DefaultPluginManager.populatePluginFields
> > (DefaultPluginManager.java:1014)
> >         ... 17 more
> > Caused by: java.lang.InstantiationException: java.util.List
> >         at java.lang.Class.newInstance0(Class.java:335)
> >         at java.lang.Class.newInstance(Class.java:303)
> >         at
> >
> >
> org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject
> > (AbstractConfigurationCo
> > rter.java:111)
> >         ... 22 more
> > [INFO]
> >
> >
> ----------------------------------------------------------------------------
> > [INFO] Total time: 1 second
> > [INFO] Finished at: Tue Nov 29 22:24:50 CET 2005
> > [INFO] Final Memory: 2M/5M
> > [INFO]
> >
> >
> ----------------------------------------------------------------------------
> >
> > can someone help me out?
> > Am I doing something wrong here?
> >
> > Thanks in advance
> >
> > Charlie
> >
> >
>
>
> --
> jesse mcconnell
>
>

Re: using Maven 2 and Getting this error

Posted by Jesse McConnell <je...@gmail.com>.
org.codehaus.plexus.component.configurator.ComponentConfigurationException:
Class 'java.util.List' cannot be instantiated
       at

that indicates that it is trying to make a List, when it needs to be making
an ArrayList in a mojo..are you using an implemenation="java.util.List"
attribute in a plugin configuration somewhere?

could you paste the relevant portion of the pom.xml?  and you meant
pom.xmland not
project.xml below, right?

jesse


On 11/29/05, Charlie Abela <ch...@gmail.com> wrote:
>
> Hi I am new to Maven so this question might seem quite a non-problem :)
>
> anyways I have set the  PATH to M2_HOME  and installed maven correctly
> since
> executing the command M2 --version returns the correct version.
> I have a project.xml with relative tagged info but when I try to execute
> commands such as m2 compile of m2 java:compile an error is generated that
> includes something of this sort:
>
> --------------------------------------------------------------------------
> Diagnosis: Error configuring plugin for execution of 'resources:resources'
> [INFO]
>
> ----------------------------------------------------------------------------
> [ERROR] Cause:
> org.apache.maven.plugin.MojoExecutionException: Error configuring plugin
> for
> execution of 'resources:resources'.
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:335)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:479)
>         at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> (DefaultLifecycleExecutor.java:452)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> (
> DefaultLifecycleExecutor.java:438)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:273)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:131)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
> :315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(
> Launcher.java
> :430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.PluginConfigurationException: Unable to
> parse the created DOM for plugin configuration
>         at
> org.apache.maven.plugin.DefaultPluginManager.populatePluginFields
> (DefaultPluginManager.java:1019)
>         at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(
> DefaultPluginManager.java:515)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:330)
>         ... 15 more
> Caused by:
> org.codehaus.plexus.component.configurator.ComponentConfigurationException
> :
> Class 'java.util.List' cannot be instantiated
>         at
>
> org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject
> (AbstractConfigurationCo
> rter.java:121)
>         at
>
> org.codehaus.plexus.component.configurator.converters.composite.CollectionConverter.fromConfiguration
> (CollectionConverter.java
> )
>         at
>
> org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure
> (ComponentValueSetter.java:252)
>         at
>
> org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration
> (ObjectWithField
> nverter.java:116)
>         at
>
> org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent
> (BasicComponentConfigurator.java:55)
>         at
> org.apache.maven.plugin.DefaultPluginManager.populatePluginFields
> (DefaultPluginManager.java:1014)
>         ... 17 more
> Caused by: java.lang.InstantiationException: java.util.List
>         at java.lang.Class.newInstance0(Class.java:335)
>         at java.lang.Class.newInstance(Class.java:303)
>         at
>
> org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject
> (AbstractConfigurationCo
> rter.java:111)
>         ... 22 more
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Tue Nov 29 22:24:50 CET 2005
> [INFO] Final Memory: 2M/5M
> [INFO]
>
> ----------------------------------------------------------------------------
>
> can someone help me out?
> Am I doing something wrong here?
>
> Thanks in advance
>
> Charlie
>
>


--
jesse mcconnell