Hello! I'm working on Maven plugin for building project using 3rd party tools. Problem: My plugin (PLUGIN) is used to build project (PROJECT). When building PROJECT my PLUGIN need to use RESOURCES (file skeletons, etc) . I want the RESOURCES to be in separate artifact refered from PLUGIN.
Reason for this requirement: PROJECT is being built using 3rd party tools (ant scripts and java libraries). I want to develop Maven plugin using those tools. Tools have to be set up in proper directories and run against PROJECT's resources. Solution I came with is to put 3rd party resources into artifact (RESOURCE), and use them in my PLUGIN. If something will change I will only need to publish new artifact for 3rd party tools. So, during the build PLUGIN need to get RESOURCE artifact, expand and start the tool. Question: How to referer to PLUGIN's pom.xml and read RESOURCE artifact during PROJECT's build? Maven model classes are representing PROJECT's pom.xml not PLUGIN's (MavenProject.getArtifacts()). Question 2: Is there way to put own properties on <dependency> in pom.xml? I want to distinguish RESOURCE from other dependencies. This is what I'm missing from M1 (http://maven.apache.org/maven-1.x/reference/project-descriptor.html#class_Dependency) Regards, Marcin. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]