java - How to build a project that builds into a plugin dependency? -
does has view of right pom “model”, work on “jar” artifact supposed used dependency on execution plugin ?
the real case: want develop particular class in jar, xbean.jar, want set dependency of jetty-maven-plugin, since whole jetty server supposed have jar in classpath before beingness started, classes in jar can configured @ server level in jetty.xml.
if add together dependency on plugin , maven complain of loop.
so far way had working creating dependency on randomly named artifact, on defined scope system, , provided link output bundle of jar module. not optimal dependency in in fact lost.
any ideas ?
just create next structure:
+-- root (pom.xml) +--- mod-xbean (pom.xml) +--- mod-jetty (pom.xml) just create classes in mod-xbean etc. in mod-jetty create definition of jetty-maven-plugin , add together mod-xbean dependency module classpath entry plugin itself.
java maven classpath
No comments:
Post a Comment