You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Simone Tripodi <si...@gmail.com> on 2020/07/14 12:14:24 UTC

maven-dependency-plugin:3.1.2:unpack not invoked, then does not unpack specified dependencies

Hi all mates,
I configured maven-dependency-plugin in my pom.xml in order to unpack
an artifact, the issue is that the plugin is not hit in any way;
follows below my pom snippet:

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>3.1.2</version>
        <executions>
          <execution>
            <id>unpack</id>
            <phase>package</phase>
            <goals>
              <goal>unpack</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <artifact>
            <groupId>org.monkeyvoice</groupId>
            <artifactId>monkey-tables</artifactId>
            <version>2.5.0-SNAPSHOT</version>
            <type>jar</type>
            <overWrite>true</overWrite>
            <outputDirectory>${project.build.directory}/monkey-tables</outputDirectory>
            <includes>**/*.hbm.xml</includes>
          </artifact>
          <outputDirectory>${project.build.directory}/unpacked-dependencies</outputDirectory>
          <overWriteSnapshots>true</overWriteSnapshots>
        </configuration>
      </plugin>
...

then follow below the list of invoked plugins:

[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @
MonkeyVoiceRESTfulWS ---
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @
MonkeyVoiceRESTfulWS ---
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources)
@ MonkeyVoiceRESTfulWS ---
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @
MonkeyVoiceRESTfulWS --
[INFO] --- animal-sniffer-maven-plugin:1.18:check (animal-sniffer) @
MonkeyVoiceRESTfulWS ---
[INFO] --- maven-resources-plugin:3.1.0:testResources
(default-testResources) @ MonkeyVoiceRESTfulWS ---
[INFO] --- maven-compiler-plugin:3.8.1:testCompile
(default-testCompile) @ MonkeyVoiceRESTfulWS ---
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @
MonkeyVoiceRESTfulWS ---
[INFO] --- maven-war-plugin:3.2.3:war (default-war) @ MonkeyVoiceRESTfulWS ---
[INFO] --- maven-source-plugin:3.2.1:jar-no-fork (attach-sources) @
MonkeyVoiceRESTfulWS ---
[INFO] --- maven-javadoc-plugin:3.2.0:jar (attach-javadocs) @
MonkeyVoiceRESTfulWS ---

As you can see, there's no maven-dependency-plugin invocation, this is
my development env:

$ mvn --version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/lib/maven/apache-maven-3.6.3
Java version: 13.0.2, vendor: Oracle Corporation, runtime:
/usr/lib/jvm/jdk-13.0.2
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.3.0-59-generic", arch: "amd64", family: "unix"

What I am doing wrong?
Many thanks in advance and all the best!
-Simo

http://people.apache.org/~simonetripodi/
http://www.99soft.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven-dependency-plugin:3.1.2:unpack not invoked, then does not unpack specified dependencies

Posted by Simone Tripodi <si...@gmail.com>.
reopening the bash made it work, didn't understand why - thanks anyway
all the best,
-Simo

http://people.apache.org/~simonetripodi/
http://www.99soft.org/

On Tue, Jul 14, 2020 at 2:14 PM Simone Tripodi <si...@gmail.com> wrote:
>
> Hi all mates,
> I configured maven-dependency-plugin in my pom.xml in order to unpack
> an artifact, the issue is that the plugin is not hit in any way;
> follows below my pom snippet:
>
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-dependency-plugin</artifactId>
>         <version>3.1.2</version>
>         <executions>
>           <execution>
>             <id>unpack</id>
>             <phase>package</phase>
>             <goals>
>               <goal>unpack</goal>
>             </goals>
>           </execution>
>         </executions>
>         <configuration>
>           <artifact>
>             <groupId>org.monkeyvoice</groupId>
>             <artifactId>monkey-tables</artifactId>
>             <version>2.5.0-SNAPSHOT</version>
>             <type>jar</type>
>             <overWrite>true</overWrite>
>             <outputDirectory>${project.build.directory}/monkey-tables</outputDirectory>
>             <includes>**/*.hbm.xml</includes>
>           </artifact>
>           <outputDirectory>${project.build.directory}/unpacked-dependencies</outputDirectory>
>           <overWriteSnapshots>true</overWriteSnapshots>
>         </configuration>
>       </plugin>
> ...
>
> then follow below the list of invoked plugins:
>
> [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @
> MonkeyVoiceRESTfulWS ---
> [INFO] --- buildnumber-maven-plugin:1.4:create (default) @
> MonkeyVoiceRESTfulWS ---
> [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources)
> @ MonkeyVoiceRESTfulWS ---
> [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @
> MonkeyVoiceRESTfulWS --
> [INFO] --- animal-sniffer-maven-plugin:1.18:check (animal-sniffer) @
> MonkeyVoiceRESTfulWS ---
> [INFO] --- maven-resources-plugin:3.1.0:testResources
> (default-testResources) @ MonkeyVoiceRESTfulWS ---
> [INFO] --- maven-compiler-plugin:3.8.1:testCompile
> (default-testCompile) @ MonkeyVoiceRESTfulWS ---
> [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @
> MonkeyVoiceRESTfulWS ---
> [INFO] --- maven-war-plugin:3.2.3:war (default-war) @ MonkeyVoiceRESTfulWS ---
> [INFO] --- maven-source-plugin:3.2.1:jar-no-fork (attach-sources) @
> MonkeyVoiceRESTfulWS ---
> [INFO] --- maven-javadoc-plugin:3.2.0:jar (attach-javadocs) @
> MonkeyVoiceRESTfulWS ---
>
> As you can see, there's no maven-dependency-plugin invocation, this is
> my development env:
>
> $ mvn --version
> Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
> Maven home: /usr/lib/maven/apache-maven-3.6.3
> Java version: 13.0.2, vendor: Oracle Corporation, runtime:
> /usr/lib/jvm/jdk-13.0.2
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "5.3.0-59-generic", arch: "amd64", family: "unix"
>
> What I am doing wrong?
> Many thanks in advance and all the best!
> -Simo
>
> http://people.apache.org/~simonetripodi/
> http://www.99soft.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org