ops4j / org.ops4j.pax.construct

Build, manage and deploy many types of OSGi bundles
https://ops4j1.jira.com/wiki/display/paxconstruct/Pax+Construct
24 stars 14 forks source link

pax:provision cannot trigger executions? [PAXCONSTRUCT-126] #138

Closed ops4j-issues closed 14 years ago

ops4j-issues commented 14 years ago

Kristoffer Peterhänsel created PAXCONSTRUCT-126

I am trying to get a some resources copied into the runner dir when I provision, but for the life of me I cannot get it to trigger an execution defined for the maven-resources-plugin.

The thing is that I need a couple of files in there for the provision to work. Namely a keystore for SSL operations.

I think I have tried pretty much any possible permutation of goals and phases to get my execution of the mave-resources-plugin run as part of the provision goal. But so far it has not done the slightest thing.

My basic attempt is basically a copy of an example on the maven-resources-plugin page:


<plugin>
    <artifactId>maven-resources-plugin</artifactId>
    <executions>
        <execution>
            <id>copy-resources</id>
            <goals>
                <goal>provision</goal>
            </goals>
            <configuration>
            <outputDirectory>${basedir}/runner/config</outputDirectory>
                <resources>
                    <resource>
                        <directory>src/non-packaged-resources</directory>
                        <filtering>false</filtering>
                    </resource>
                </resources>
            </configuration>
        </execution>
    </executions>
</plugin>

Affects: 1.4 Votes: 0, Watches: 0

ops4j-issues commented 14 years ago

Kristoffer Peterhänsel commented

Damnit! Why do you always find out you have been working on something in the wrong way 2 seconds after you complained about it...

goals in the execution is not a trigger but what is being called on the plugin =)

ops4j-issues commented 14 years ago

Kristoffer Peterhänsel commented

I was ignoring one essential piece of information about Maven and executions. So this issue makes little sense. Still it would be nice to be able to copy some resources when you provision a project.