zhangjingl02 / activejdbc

Automatically exported from code.google.com/p/activejdbc
0 stars 0 forks source link

Class Instrumentation has accidental dependency on Maven API #106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
this is a bad idea for projects not using Maven

classes:build_time_libs/activejdbc-instrumentation-1.1-SNAPSHOT.jar:build_time_l
ibs/javassist-3.8.0.GA.jar:lib/activejdbc-1.1-SNAPSHOT.jar
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/maven/plugin/logging/Log
    at activejdbc.instrumentation.Instrumentation.instrument(Instrumentation.java:46)
    at activejdbc.instrumentation.Main.main(Main.java:39)
Exception in thread "main" activejdbc.DBException: failed to determine Model 
class name, are you sure models have been instrumented?
    at activejdbc.Model$ClassGetter.getClassName(Model.java:2003)
    at activejdbc.Model.getClassName(Model.java:1974)
    at activejdbc.Model.getDaClass(Model.java:1966)
    at activejdbc.Model.getMetaModel(Model.java:58)
    at activejdbc.Model.getMetaModelLocal(Model.java:779)
    at activejdbc.Model.set(Model.java:197)
    at activejdbc.examples.simple.SimpleExample.createEmployee(SimpleExample.java:33)
    at activejdbc.examples.simple.SimpleExample.main(SimpleExample.java:12)
Caused by: activejdbc.InitException: failed to determine Model class name, are 
you sure models have been instrumented?
    ... 8 more

Original issue reported on code.google.com by ipolevoy@gmail.com on 2 Aug 2011 at 8:04

GoogleCodeExporter commented 9 years ago

Original comment by ipolevoy@gmail.com on 2 Aug 2011 at 8:32