bmatthews68 / ldap-maven-plugin

A Maven plugin that runs an embedded LDAP directory server within the Maven build life-cycle and imports/exports data to/from an LDAP directory server.
http://ldap-maven-plugin.btmatthews.com
Apache License 2.0
6 stars 18 forks source link

Error - cannot be instantiated #16

Closed armeo closed 9 years ago

armeo commented 10 years ago

Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 20:51:28+0700) Java version: 1.7.0_55, vendor: Oracle Corporation LDAP: Oracle Directory Enterprise Edition.

[ERROR] Failed to execute goal com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0:load (default-cli) on project ldapapp: Unable to parse configuration of mojo com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0:load for parameter ldif: Abstract class or interface 'com.btmatthews.maven.plugins.ldap.mojo.Ldif' cannot be instantiated -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0:load (default-cli) on project ldapapp: Unable to parse configuration of mojo com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0:load for parameter ldif: Abstract class or interface 'com.btmatthews.maven.plugins.ldap.mojo.Ldif' cannot be instantiated

I'm not sure what is wrong, please help me to clarify.

bmatthews68 commented 10 years ago

Can you send me you pom.xml? On 6 Aug 2014 12:14, "Adisorn Chockaumnuai" notifications@github.com wrote:

Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 20:51:28+0700) Java version: 1.7.0_55, vendor: Oracle Corporation

[ERROR] Failed to execute goal com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0:load (default-cli) on project ldapapp: Unable to parse configuration of mojo com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0:load for parameter ldif: Abstract class or interface 'com.btmatthews.maven.plugins.ldap.mojo.Ldif' cannot be instantiated -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0:load (default-cli) on project ldapapp: Unable to parse configuration of mojo com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0:load for parameter ldif: Abstract class or interface 'com.btmatthews.maven.plugins.ldap.mojo.Ldif' cannot be instantiated

I'm not sure what is wrong, please help me to clarify.

— Reply to this email directly or view it on GitHub https://github.com/bmatthews68/ldap-maven-plugin/issues/16.

armeo commented 10 years ago
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
                         http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>
    <groupId>test</groupId>
    <artifactId>ldapapp</artifactId>
    <version>1.0-SNAPSHOT</version>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.btmatthews.maven.plugins</groupId>
                <artifactId>ldap-maven-plugin</artifactId>
                <configuration>
                    <host>localhost</host>
                    <port>1389</port>
                    <authDn>cn=admin,cn=administrators,cn=dscc</authDn>
                    <passwd>P@ssw0rd</passwd>
                    <continueOnError>true</continueOnError>
                    <sources>
                        <ldif>${project.basedir}\src\main\data\user.ldif</ldif>
                    </sources>
                    <filename>${project.basedir}\src\main\data\dump.ldif</filename>
                    <searchBase>dc=test,dc=com</searchBase>
                    <format>ldif</format>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>load</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
armeo commented 10 years ago

@bmatthews68 :: pom is correct ?

bmatthews68 commented 10 years ago

Hi Adisom,

Yes. I couldn't find anything out of place in the pom.xml.

I didn't have time to do any further investigation but I have a free evening. The best thing would by to run Maven with -e and -X options and send me the output. Also what version of Maven are you using. I usually only test this plugin with 3.0.5.

Kind regards, Brian

On 13 August 2014 09:57, Adisorn Chockaumnuai notifications@github.com wrote:

@bmatthews68 https://github.com/bmatthews68 :: pom is correct ?

— Reply to this email directly or view it on GitHub https://github.com/bmatthews68/ldap-maven-plugin/issues/16#issuecomment-52024507 .

armeo commented 10 years ago

Hi Brian,

Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 20:51:28+0700)
Maven home: C:\Users\AdisornChockaumnuai\Documents\devtool\apache-maven-3.0.5
Java version: 1.7.0_55, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_55\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from C:\Users\AdisornChockaumnuai\Documents\devtool\apache-maven-3.0.5\conf\settings.xml
[DEBUG] Reading user settings from C:\Users\AdisornChockaumnuai\.m2\settings.xml
[DEBUG] Using local repository at C:\Users\AdisornChockaumnuai\.m2\repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for C:\Users\AdisornChockaumnuai\.m2\repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project groupId:ldapapp:jar:1.0-SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for groupId:ldapapp:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for com.btmatthews.maven.plugins:ldap-maven-plugin is missing. @ line 26, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[DEBUG] Resolving plugin version for com.btmatthews.maven.plugins:ldap-maven-plugin
[DEBUG] Could not find metadata com.btmatthews.maven.plugins:ldap-maven-plugin/maven-metadata.xml in local (C:\Users\AdisornChockaumnuai\.m2\repository)
[DEBUG] Skipped remote update check for com.btmatthews.maven.plugins:ldap-maven-plugin/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin version for com.btmatthews.maven.plugins:ldap-maven-plugin to 1.2.0 from repository central (http://repo.maven.apache.org/maven2, releases)
[DEBUG] Resolving plugin prefix ldap from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Resolved plugin prefix ldap to com.btmatthews.maven.plugins:ldap-maven-plugin from POM groupId:ldapapp:jar:1.0-SNAPSHOT
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: groupId:ldapapp:jar:1.0-SNAPSHOT
[DEBUG] Tasks:   [ldap:load]
[DEBUG] Style:   Regular
[DEBUG] =======================================================================
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building ldapapp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Resolving plugin prefix ldap from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Resolved plugin prefix ldap to com.btmatthews.maven.plugins:ldap-maven-plugin from POM groupId:ldapapp:jar:1.0-SNAPSHOT
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project:       groupId:ldapapp:1.0-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): []
[DEBUG] Repositories (dependencies): [central (http://repo.maven.apache.org/maven2, releases)]
[DEBUG] Repositories (plugins)     : [central (http://repo.maven.apache.org/maven2, releases)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0:load (default-cli)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <authDn>cn=admin,cn=administrators,cn=dscc</authDn>
  <connectionRetries default-value="3"/>
  <connectionTimeout default-value="5000"/>
  <continueOnError default-value="false">true</continueOnError>
  <host default-value="localhost">localhost</host>
  <passwd>Odsee#dm1n</passwd>
  <port default-value="389">1389</port>
  <sources>
    <ldif>C:\Users\AdisornChockaumnuai\Documents\workspace\java\ldapapp\src\main\data\user.ldif</ldif>
  </sources>
</configuration>
[DEBUG] =======================================================================
[INFO] 
[INFO] --- ldap-maven-plugin:1.2.0:load (default-cli) @ ldapapp ---
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG]   Imported: org.apache.maven.wagon.events < plexus.core
[DEBUG]   Imported: org.sonatype.aether.transfer < plexus.core
[DEBUG]   Imported: org.apache.maven.exception < plexus.core
[DEBUG]   Imported: org.sonatype.aether.metadata < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
[DEBUG]   Imported: org.sonatype.aether.collection < plexus.core
[DEBUG]   Imported: org.sonatype.aether.version < plexus.core
[DEBUG]   Imported: org.apache.maven.monitor < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.resource < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.logging < plexus.core
[DEBUG]   Imported: org.apache.maven.profiles < plexus.core
[DEBUG]   Imported: org.sonatype.aether.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.classrealm < plexus.core
[DEBUG]   Imported: org.apache.maven.execution < plexus.core
[DEBUG]   Imported: org.sonatype.aether.artifact < plexus.core
[DEBUG]   Imported: org.sonatype.aether.spi < plexus.core
[DEBUG]   Imported: org.apache.maven.reporting < plexus.core
[DEBUG]   Imported: org.apache.maven.usability < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.container < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.component < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.authentication < plexus.core
[DEBUG]   Imported: org.apache.maven.lifecycle < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.classworlds < plexus.core
[DEBUG]   Imported: org.sonatype.aether.graph < plexus.core
[DEBUG]   Imported: org.sonatype.aether.* < plexus.core
[DEBUG]   Imported: org.apache.maven.settings < plexus.core
[DEBUG]   Imported: org.codehaus.classworlds < plexus.core
[DEBUG]   Imported: org.sonatype.aether.impl < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.* < plexus.core
[DEBUG]   Imported: org.apache.maven.toolchain < plexus.core
[DEBUG]   Imported: org.sonatype.aether.deployment < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.observers < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core
[DEBUG]   Imported: org.apache.maven.configuration < plexus.core
[DEBUG]   Imported: org.apache.maven.cli < plexus.core
[DEBUG]   Imported: org.sonatype.aether.installation < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.context < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.authorization < plexus.core
[DEBUG]   Imported: org.apache.maven.project < plexus.core
[DEBUG]   Imported: org.apache.maven.rtinfo < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.lifecycle < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.configuration < plexus.core
[DEBUG]   Imported: org.apache.maven.artifact < plexus.core
[DEBUG]   Imported: org.apache.maven.model < plexus.core
[DEBUG]   Imported: org.apache.maven.* < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.proxy < plexus.core
[DEBUG]   Imported: org.sonatype.aether.resolution < plexus.core
[DEBUG]   Imported: org.apache.maven.plugin < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.* < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.personality < plexus.core
[DEBUG] Populating class realm maven.api
[DEBUG] com.btmatthews.maven.plugins:ldap-maven-plugin:jar:1.2.0:
[DEBUG]    org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.2:compile
[DEBUG]    org.apache.maven:maven-plugin-api:jar:3.0.5:compile
[DEBUG]       org.apache.maven:maven-model:jar:3.0.5:compile
[DEBUG]       org.sonatype.sisu:sisu-inject-plexus:jar:2.3.0:compile
[DEBUG]          org.sonatype.sisu:sisu-inject-bean:jar:2.3.0:compile
[DEBUG]             org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.0:compile
[DEBUG]                org.sonatype.sisu:sisu-guava:jar:0.9.9:compile
[DEBUG]    org.apache.maven:maven-core:jar:3.0.5:compile
[DEBUG]       org.apache.maven:maven-settings:jar:3.0.5:compile
[DEBUG]       org.apache.maven:maven-settings-builder:jar:3.0.5:compile
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:3.0.5:compile
[DEBUG]       org.apache.maven:maven-model-builder:jar:3.0.5:compile
[DEBUG]       org.sonatype.aether:aether-impl:jar:1.13.1:compile
[DEBUG]       org.sonatype.aether:aether-api:jar:1.13.1:compile
[DEBUG]       org.sonatype.aether:aether-util:jar:1.13.1:compile
[DEBUG]       org.codehaus.plexus:plexus-interpolation:jar:1.14:compile
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:2.0.6:compile
[DEBUG]       org.codehaus.plexus:plexus-classworlds:jar:2.4:compile
[DEBUG]       org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile
[DEBUG]       org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile
[DEBUG]          org.sonatype.plexus:plexus-cipher:jar:1.4:compile
[DEBUG]    org.apache.maven:maven-aether-provider:jar:3.0.5:compile
[DEBUG]       org.sonatype.aether:aether-spi:jar:1.13.1:compile
[DEBUG]    org.apache.maven:maven-artifact:jar:3.0.5:compile
[DEBUG]    com.jcabi:jcabi-aether:jar:0.8:compile
[DEBUG]       com.jcabi:jcabi-aspects:jar:0.7.22:compile
[DEBUG]       com.jcabi:jcabi-log:jar:0.7.22:compile
[DEBUG]          log4j:log4j:jar:1.2.17:compile
[DEBUG]          org.slf4j:slf4j-api:jar:1.7.5:compile
[DEBUG]       org.aspectj:aspectjrt:jar:1.7.3:compile
[DEBUG]       javax.validation:validation-api:jar:1.1.0.Final:compile
[DEBUG]       org.kuali.maven.wagons:maven-s3-wagon:jar:1.1.20:compile
[DEBUG]          org.kuali.common:kuali-s3:jar:1.0.1:compile
[DEBUG]          com.amazonaws:aws-java-sdk:jar:1.4.2:compile
[DEBUG]             org.apache.httpcomponents:httpclient:jar:4.1:compile
[DEBUG]                org.apache.httpcomponents:httpcore:jar:4.1:compile
[DEBUG]             commons-codec:commons-codec:jar:1.3:compile
[DEBUG]             org.codehaus.jackson:jackson-core-asl:jar:1.8.9:compile
[DEBUG]             org.codehaus.jackson:jackson-mapper-asl:jar:1.8.9:compile
[DEBUG]          org.springframework:spring-core:jar:3.1.2.RELEASE:compile
[DEBUG]          commons-io:commons-io:jar:2.4:compile
[DEBUG]          commons-lang:commons-lang:jar:2.6:compile
[DEBUG]          org.kuali.common:kuali-threads:jar:1.0.9:compile
[DEBUG]          org.slf4j:jcl-over-slf4j:jar:1.6.4:compile
[DEBUG]       org.sonatype.aether:aether-connector-file:jar:1.13.1:compile
[DEBUG]       org.sonatype.aether:aether-connector-asynchttpclient:jar:1.13.1:compile
[DEBUG]          com.ning:async-http-client:jar:1.6.5:compile
[DEBUG]             org.jboss.netty:netty:jar:3.2.5.Final:compile
[DEBUG]       org.sonatype.aether:aether-connector-wagon:jar:1.13.1:compile
[DEBUG]       org.apache.maven.wagon:wagon-provider-api:jar:2.4:compile
[DEBUG]       org.apache.commons:commons-lang3:jar:3.1:compile
[DEBUG]    dom4j:dom4j:jar:1.6.1:compile
[DEBUG]       xml-apis:xml-apis:jar:1.0.b2:compile
[DEBUG]    jaxen:jaxen:jar:1.1.4:compile
[DEBUG]    com.unboundid:unboundid-ldapsdk:jar:2.3.5:compile
[DEBUG]    com.btmatthews.utils:monitor:jar:2.1.1:compile
[DEBUG]    com.btmatthews.maven.plugins.ldap:format-api:jar:1.2.0:compile
[DEBUG]    com.btmatthews.maven.plugins.ldap:format-ldif:jar:1.2.0:compile
[DEBUG]    com.btmatthews.maven.plugins.ldap:format-dsml:jar:1.2.0:compile
[DEBUG]    com.btmatthews.maven.plugins.ldap:server-api:jar:1.2.0:compile
[DEBUG] Created new class realm plugin>com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0
[DEBUG] Importing foreign packages into class realm plugin>com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0
[DEBUG]   Imported:  < maven.api
[DEBUG] Populating class realm plugin>com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0
[DEBUG]   Included: com.btmatthews.maven.plugins:ldap-maven-plugin:jar:1.2.0
[DEBUG]   Included: org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.2
[DEBUG]   Included: org.sonatype.sisu:sisu-inject-bean:jar:2.3.0
[DEBUG]   Included: org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.0
[DEBUG]   Included: org.sonatype.sisu:sisu-guava:jar:0.9.9
[DEBUG]   Included: org.sonatype.aether:aether-util:jar:1.13.1
[DEBUG]   Included: org.codehaus.plexus:plexus-interpolation:jar:1.14
[DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:2.0.6
[DEBUG]   Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5
[DEBUG]   Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3
[DEBUG]   Included: org.sonatype.plexus:plexus-cipher:jar:1.4
[DEBUG]   Included: com.jcabi:jcabi-aether:jar:0.8
[DEBUG]   Included: com.jcabi:jcabi-aspects:jar:0.7.22
[DEBUG]   Included: com.jcabi:jcabi-log:jar:0.7.22
[DEBUG]   Included: log4j:log4j:jar:1.2.17
[DEBUG]   Included: org.slf4j:slf4j-api:jar:1.7.5
[DEBUG]   Included: org.aspectj:aspectjrt:jar:1.7.3
[DEBUG]   Included: javax.validation:validation-api:jar:1.1.0.Final
[DEBUG]   Included: org.kuali.maven.wagons:maven-s3-wagon:jar:1.1.20
[DEBUG]   Included: org.kuali.common:kuali-s3:jar:1.0.1
[DEBUG]   Included: com.amazonaws:aws-java-sdk:jar:1.4.2
[DEBUG]   Included: org.apache.httpcomponents:httpclient:jar:4.1
[DEBUG]   Included: org.apache.httpcomponents:httpcore:jar:4.1
[DEBUG]   Included: commons-codec:commons-codec:jar:1.3
[DEBUG]   Included: org.codehaus.jackson:jackson-core-asl:jar:1.8.9
[DEBUG]   Included: org.codehaus.jackson:jackson-mapper-asl:jar:1.8.9
[DEBUG]   Included: org.springframework:spring-core:jar:3.1.2.RELEASE
[DEBUG]   Included: commons-io:commons-io:jar:2.4
[DEBUG]   Included: commons-lang:commons-lang:jar:2.6
[DEBUG]   Included: org.kuali.common:kuali-threads:jar:1.0.9
[DEBUG]   Included: org.slf4j:jcl-over-slf4j:jar:1.6.4
[DEBUG]   Included: org.sonatype.aether:aether-connector-file:jar:1.13.1
[DEBUG]   Included: org.sonatype.aether:aether-connector-asynchttpclient:jar:1.13.1
[DEBUG]   Included: com.ning:async-http-client:jar:1.6.5
[DEBUG]   Included: org.jboss.netty:netty:jar:3.2.5.Final
[DEBUG]   Included: org.sonatype.aether:aether-connector-wagon:jar:1.13.1
[DEBUG]   Included: org.apache.commons:commons-lang3:jar:3.1
[DEBUG]   Included: dom4j:dom4j:jar:1.6.1
[DEBUG]   Included: xml-apis:xml-apis:jar:1.0.b2
[DEBUG]   Included: jaxen:jaxen:jar:1.1.4
[DEBUG]   Included: com.unboundid:unboundid-ldapsdk:jar:2.3.5
[DEBUG]   Included: com.btmatthews.utils:monitor:jar:2.1.1
[DEBUG]   Included: com.btmatthews.maven.plugins.ldap:format-api:jar:1.2.0
[DEBUG]   Included: com.btmatthews.maven.plugins.ldap:format-ldif:jar:1.2.0
[DEBUG]   Included: com.btmatthews.maven.plugins.ldap:format-dsml:jar:1.2.0
[DEBUG]   Included: com.btmatthews.maven.plugins.ldap:server-api:jar:1.2.0
[DEBUG]   Excluded: org.apache.maven:maven-plugin-api:jar:3.0.5
[DEBUG]   Excluded: org.apache.maven:maven-model:jar:3.0.5
[DEBUG]   Excluded: org.sonatype.sisu:sisu-inject-plexus:jar:2.3.0
[DEBUG]   Excluded: org.apache.maven:maven-core:jar:3.0.5
[DEBUG]   Excluded: org.apache.maven:maven-settings:jar:3.0.5
[DEBUG]   Excluded: org.apache.maven:maven-settings-builder:jar:3.0.5
[DEBUG]   Excluded: org.apache.maven:maven-repository-metadata:jar:3.0.5
[DEBUG]   Excluded: org.apache.maven:maven-model-builder:jar:3.0.5
[DEBUG]   Excluded: org.sonatype.aether:aether-impl:jar:1.13.1
[DEBUG]   Excluded: org.sonatype.aether:aether-api:jar:1.13.1
[DEBUG]   Excluded: org.codehaus.plexus:plexus-classworlds:jar:2.4
[DEBUG]   Excluded: org.apache.maven:maven-aether-provider:jar:3.0.5
[DEBUG]   Excluded: org.sonatype.aether:aether-spi:jar:1.13.1
[DEBUG]   Excluded: org.apache.maven:maven-artifact:jar:3.0.5
[DEBUG]   Excluded: org.apache.maven.wagon:wagon-provider-api:jar:2.4
[DEBUG] Configuring mojo com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0:load from plugin realm ClassRealm[plugin>com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0, parent: sun.misc.Launcher$AppClassLoader@21346812]
[DEBUG] Configuring mojo 'com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0:load' with basic configurator -->
[DEBUG]   (f) authDn = cn=admin,cn=administrators,cn=dscc
[DEBUG]   (f) connectionRetries = 3
[DEBUG]   (f) connectionTimeout = 5000
[DEBUG]   (f) continueOnError = true
[DEBUG]   (f) host = localhost
[DEBUG]   (f) passwd = Odsee#dm1n
[DEBUG]   (f) port = 1389
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.940s
[INFO] Finished at: Thu Aug 14 12:00:17 ICT 2014
[INFO] Final Memory: 7M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0:load (default-cli) on project ldapapp: Unable to parse configuration of mojo com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0:load for parameter ldif: Abstract class or interface 'com.btmatthews.maven.plugins.ldap.mojo.Ldif' cannot be instantiated -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0:load (default-cli) on project ldapapp: Unable to parse configuration of mojo com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0:load for parameter ldif: Abstract class or interface 'com.btmatthews.maven.plugins.ldap.mojo.Ldif' cannot be instantiated
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:221)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginConfigurationException: Unable to parse configuration of mojo com.btmatthews.maven.plugins:ldap-maven-plugin:1.2.0:load for parameter ldif: Abstract class or interface 'com.btmatthews.maven.plugins.ldap.mojo.Ldif' cannot be instantiated
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:597)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:529)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more
Caused by: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Abstract class or interface 'com.btmatthews.maven.plugins.ldap.mojo.Ldif' cannot be instantiated
    at org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(AbstractConfigurationConverter.java:145)
    at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.fromConfiguration(ObjectWithFieldsConverter.java:98)
    at org.codehaus.plexus.component.configurator.converters.composite.ArrayConverter.fromChildren(ArrayConverter.java:129)
    at org.codehaus.plexus.component.configurator.converters.composite.ArrayConverter.fromConfiguration(ArrayConverter.java:91)
    at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:348)
    at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:161)
    at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:567)
    ... 22 more
Caused by: java.lang.InstantiationException: com.btmatthews.maven.plugins.ldap.mojo.Ldif
    at java.lang.Class.newInstance(Class.java:359)
    at org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(AbstractConfigurationConverter.java:135)
    ... 29 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginConfigurationException

Regards, Adisorn

anbark commented 10 years ago

Encountered same issue with Maven 3.0.5. Stack trace exactly the same as in a previous comment.

tcollignon commented 10 years ago

It seem to be a problem with plexus construction of Ldif class. I have propose a fix in this pull request : https://github.com/bmatthews68/ldap-maven-plugin/pull/19