Hi Karl,
I am testing below plug-in, for example, I tried put it as the first/last
element of "<plugins>", and the same results,
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.basedir}/../lib/</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
<useSubDirectoryPerScope>true</useSubDirectoryPerScope>
</configuration>
</execution>
<execution>
<id>copy-sources</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.basedir}/../lib/source</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
<useSubDirectoryPerScope>true</useSubDirectoryPerScope>
<classifier>sources</classifier>
</configuration>
</execution>
</executions>
</plugin>
regards,
Lin
On Sat, Apr 4, 2015 at 4:23 PM, Karl Heinz Marbaise <[email protected]>
wrote:
> Hi,
>
> On 4/5/15 1:09 AM, Lin Ma wrote:
>
>> Hello everyone,
>>
>> I tried to manipulate orders of plug-in in pom.xml and always get the same
>> results.
>>
>
> Of which plugins would you like to change the execution order? And for
> what purpose?
>
>
> > Wondering if any impact for order or plug-in, and any best
>
>> practices? Thanks.
>>
>
> So the order of executions is defined by the binding to the appropriate
> life cycle .... as you can see here:
>
> http://maven.apache.org/ref/3.3.1/maven-core/default-bindings.html
>
>
> Or are you talking about execution order within the same life cycle phase?
>
>
> Kind regards
> Karl Heinz Marbaise
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>