Hi,
I have similar issue running with Maven 3. Both 2.2.2 and 2.2.4 plugin
versions gives the same error:
Error populating repository: <workdir>\target\classes (Access is denied) ->
[Help 1]

Feature description and all the dependencies are in the local repo.

Also I've noted that standard and enterprise feature descriptors are being
copied by the plugin. 

In the code karaf-2.2.2\tooling:
org.apache.karaf.tooling.features.AddFeaturesToRepoMojo, method
resolveBundle, following call sets bundle's file to
<workdir>\target\classes:
resolver.resolve(bundle, remoteRepos, localRepo);

I've tried the same with Maven 2.1.0 and it works fine. 

pom.xml:
          <plugin>
            <groupId>org.apache.karaf.tooling</groupId>
            <artifactId>features-maven-plugin</artifactId>
            <version>2.2.2</version>

            <executions>
              <execution>
                <id>add-features-to-repo</id>
                <phase>generate-resources</phase>
                <goals>
                  <goal>add-features-to-repo</goal>
                </goals>
                <configuration>
                  <descriptors>
                   
<descriptor>mvn:mygroupId/myArtifactId/${project.version}/xml/features</descriptor>
                  </descriptors>

                  <features>
                    <feature>myFeature</feature>
                  </features>
                  <repository>target/features-repo</repository>
                </configuration>
              </execution>
            </executions>
          </plugin>

Any ideas how to make it running with Maven 3? Any help would be greatly
appreciated. 

Thanks,
Sergey.

--
View this message in context: 
http://karaf.922171.n3.nabble.com/FileNotFindException-using-features-maven-plugin-on-Mac-OSX-tp2741979p3448074.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to