java - Intermittent issue with Maven with required class missing -


When creating ActiveJDBC (I am the author of the project), it creates a Maven plugin for the first time: After installing the plugin:

< P>, it is used on a separate project module (this is a multi-module project). Sometimes the build is successful and sometimes it breaks with the error message:

  [INFO] JavaLite - normal .............. ....... ............. Success [4.241 s] [INFO] Java Light - Instrumentation Plugin and Java Agent .... Success [2.590s] [INFO] Java Light - Active JDBC ORM Framework ...... .......... Failure [5.526 s] [INFO] Java Light - DB-Migrator Maven Plugin ... ... SKIPPED [INFO] JavaLite - DB-Migrator Integration Test ............ SKIPPED [INFO] JavaLite - GET INFORMATION Maven plugin .............. .... . SKIPPED [INFO] JavaLite - ActiveJDBC Route ......................... SKIPPED [INFO] ------------ -------- ------------------------------------------ -------- - [INFO] Build failure [INFO] --------------------------------- ------- -------------------------------- [INFO] Total Time: 12.572s [INFO] Finish: 2014-10-27T23: 01: 22-05: 00 [INFO] Last Memory: 26m / 271m [INFO] --------------------- -------- ------------------------------------------ - [ERROR] failed to execute Goa L org.javalite: activejdbc- equipment: 1.4.10-snapshot: instrument (default) project activejdbc: target default execution org.javalite: activejdbc- equipment: 1.4.10-snapshot : The instrument has failed: a requirement While the group was missing the organization executed. Jawlite: Active jdbc-instrumentation: 1.4.10-SNAPSHOT: Instrument: Javanist / Classpath [ERROR] ------------------- -------- -------------------------- [Error] realm = plugin & gt; org.javalite: activejdbc-instrumentation: 1.4.10-SNAPSHOT [error] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] URL [0] = file: / home / igor / projects / javalite / activejdbc / activejdbc-instrumentation / target / activejdbc-instrumentation-1.4.10-SNAPSHOT.jar [ERROR] URL [1] = file: /home/igor/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus -utils-1.1.jar [error] URL [2] = file: / home / Igor / projects / javalite / activejdbc / activejdbc / target / classes / [eRROR] URL [3] = file: /home/igor/.m2 /repository/org/slf4j/slf4j-api/1.7.5/slf4j- API-Lk7k5kjr [ER ROR] URL [4] = file: / home / igor / projects / javalite / activejdbc / javalite-common / Target / javalite-common-1.4.10-SNAPSHOT.jar [ERROR] URL [5] = F L: / home / Igor / projects / javalite / activejdbc / activejdbc / target / test sections / [ERROR] number of foreign imports: 1 [ERROR] import entry [the scope ClassRealm [maven.api import, parents: null] ] [Error] [error] ------------------------------------------ ----- -----: javassist.ClassPath [Error] - & gt; [Help 1] [Error] [Error] To see the complete stack traces of errors, re-run Maven with the -i switch [ERROR] To enable full debug logging, Maven, using the X switch, Run. [Error] [Error] Errors and possible solutions, please read the following article for more information: [Error] [Help1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException [Error] [Error] After fixing the problems, you get the command [ERROR] MVN & lt; Goals and gt; With Build can resume build. -rf: activejdbc  

As far as I can see, this issue is: There was a need for a required class while implementing the organization: activejdbc-instrumentation: 1.4.10-SNAPSHOT : Tools: JavaShext / ClassPath

However this class is directly packaged in the jar file of the plugin, please see here:

Therefore, sometimes it will be created But sometimes breaks. Without making any changes to the code or configuration - on the same terminal window. Basically, I have to build several times before success. Please, help identify and correct this problem,

I tried Maven 3.0.4 and 3.2.3.

Thanks

Do you have dependency on javassist in Palm ..

  & lt; Dependency & gt; & Lt; Group & gt; Javassist & lt; / Group & gt; & Lt; ArtifactId & gt; Javassist & lt; / ArtifactId> & Lt; Version & gt; 3.18.2.GA & lt; / Edition & gt; & Lt; / Dependencies & gt;  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -