Local Byteman installation (compilation) with Maven
ochaloup Jan 7, 2016 5:35 PMHi,
I would like to propose a small enhancement for dtest library [1]. Namely I'm missing a way how to instrument a class (with use of Intrumentor) without need of having it on classpath.
When trying to install the byteman snapshot with my fixes I hit a problem to successfully finish the installation. Please, what is the right way to do so? I've tried to run
mvn install
in byteman root directory but I've finished with javadoc plugin errors [2]. What I do wrong?
Thanks for any tip and help
Ondra
[1] https://github.com/ochaloup/byteman/commit/8b514c6d96f7dabe5860b9202ea088c5f8646486
[2]
[INFO] Reactor Summary: [INFO] [INFO] byteman-root ....................................... SUCCESS [ 0.370 s] [INFO] byteman-submit ..................................... SUCCESS [ 0.541 s] [INFO] byteman-agent ...................................... SUCCESS [ 52.583 s] [INFO] byteman-install .................................... SUCCESS [ 0.095 s] [INFO] byteman-bmunit ..................................... SUCCESS [ 4.881 s] [INFO] byteman-dtest ...................................... SUCCESS [ 0.075 s] [INFO] byteman-rulecheck maven plugin ..................... SUCCESS [ 3.321 s] [INFO] byteman-jboss-modules .............................. SUCCESS [ 0.006 s] [INFO] byteman-jboss-modules-plugin ....................... SUCCESS [ 0.072 s] [INFO] byteman-jboss-modules-tests ........................ SUCCESS [ 4.101 s] [INFO] byteman-sample ..................................... SUCCESS [ 0.039 s] [INFO] byteman-download ................................... FAILURE [ 0.453 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:06 min [INFO] Finished at: 2016-01-07T11:48:34+01:00 [INFO] Final Memory: 41M/574M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2.1:single (create-bin-zip) on project byteman-download: Failed to create assembly: Unable to resolve dependencies for assembly 'bin': Failed to resolve dependencies for assembly: Missing: [ERROR] ---------- [ERROR] 1) org.jboss.byteman:byteman-sample:jar:javadoc:3.0.4-SNAPSHOT [ERROR] [ERROR] Try downloading the file manually from the project website. [ERROR] [ERROR] Then, install it using the command: [ERROR] mvn install:install-file -DgroupId=org.jboss.byteman -DartifactId=byteman-sample -Dversion=3.0.4-SNAPSHOT -Dclassifier=javadoc -Dpackaging=jar -Dfile=/path/to/file [ERROR] [ERROR] Alternatively, if you host your own repository you can deploy the file there: [ERROR] mvn deploy:deploy-file -DgroupId=org.jboss.byteman -DartifactId=byteman-sample -Dversion=3.0.4-SNAPSHOT -Dclassifier=javadoc -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] [ERROR] [ERROR] Path to dependency: [ERROR] 1) org.jboss.byteman:byteman-download:pom:3.0.4-SNAPSHOT [ERROR] 2) org.jboss.byteman:byteman-sample:jar:javadoc:3.0.4-SNAPSHOT [ERROR] [ERROR] 2) org.jboss.byteman:byteman-jboss-modules-plugin:jar:javadoc:3.0.4-SNAPSHOT [ERROR] [ERROR] Try downloading the file manually from the project website. [ERROR] [ERROR] Then, install it using the command: [ERROR] mvn install:install-file -DgroupId=org.jboss.byteman -DartifactId=byteman-jboss-modules-plugin -Dversion=3.0.4-SNAPSHOT -Dclassifier=javadoc -Dpackaging=jar -Dfile=/path/to/file [ERROR] [ERROR] Alternatively, if you host your own repository you can deploy the file there: [ERROR] mvn deploy:deploy-file -DgroupId=org.jboss.byteman -DartifactId=byteman-jboss-modules-plugin -Dversion=3.0.4-SNAPSHOT -Dclassifier=javadoc -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] [ERROR] [ERROR] Path to dependency: [ERROR] 1) org.jboss.byteman:byteman-download:pom:3.0.4-SNAPSHOT [ERROR] 2) org.jboss.byteman:byteman-jboss-modules-plugin:jar:javadoc:3.0.4-SNAPSHOT [ERROR] [ERROR] ---------- [ERROR] 2 required artifacts are missing. [ERROR] [ERROR] for artifact: [ERROR] org.jboss.byteman:byteman-download:pom:3.0.4-SNAPSHOT [ERROR] [ERROR] from the specified remote repositories: [ERROR] jboss-public-repository-group (http://repository.jboss.org/nexus/content/groups/public/, releases=true, snapshots=true), [ERROR] ow2 (http://repository.ow2.org/nexus/content/repositories/releases/, releases=true, snapshots=true), [ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false) [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [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/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :byteman-download