@@ -0,0 +1,1314 @@
+package org.apache.aries.blueprint.plugin;%0A%0Aimport org.apache.maven.model.Resource;%0Aimport org.apache.maven.plugin.AbstractMojo;%0Aimport org.apache.maven.plugin.MojoExecutionException;%0Aimport org.apache.maven.plugin.MojoFailureException;%0Aimport org.apache.maven.plugins.annotations.LifecyclePhase;%0Aimport org.apache.maven.plugins.annotations.Mojo;%0Aimport org.apache.maven.plugins.annotations.Parameter;%0Aimport org.apache.maven.plugins.annotations.ResolutionScope;%0Aimport org.apache.maven.project.MavenProject;%0A%0A/**%0A * Creates resource base dir where blueprint file will be generated for IDE support%0A */%0A@Mojo(name=%22add-resource-dir%22,%0A    requiresDependencyResolution= ResolutionScope.COMPILE,%0A    defaultPhase= LifecyclePhase.GENERATE_RESOURCES,%0A    inheritByDefault=false, threadSafe = true)%0Apublic class AddResourceDirMojo extends AbstractMojo %7B%0A%0A    @Parameter(defaultValue=%22$%7Bproject%7D%22, required=true)%0A    protected MavenProject project;%0A%0A    @Override%0A    public void execute() throws MojoExecutionException, MojoFailureException %7B%0A        String buildDir = project.getBuild().getDirectory();%0A        String generatedBaseDir = buildDir + %22/generated-sources/blueprint%22;%0A        Resource resource = new Resource();%0A        resource.setDirectory(generatedBaseDir);%0A        project.addResource(resource);%0A    %7D%0A%7D%0A

Add add-resource-dir goal to blueprint maven plugin