NPanday
  1. NPanday
  2. NPANDAY-456

dependencies installed in wrong location when calling pom.xml from a different directory

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4-incubating
    • Fix Version/s: 1.5.0-incubating
    • Component/s: Maven Plugins
    • Labels:
      None

      Description

      Create a single pom.xml that has a dependency on a dotnet-executable. The following shows one that depends on the executable for the generate-sources phase.

      When this is run using -f <path/file> generate-sources,

      the dependency CodeGenerator.exe is placed in a target directory in the current working directory rather than in the project.build.directory.

      <?xml version="1.0" encoding="utf-8"?>
      <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://maven.apache.org/POM/4.0.0">
      <modelVersion>4.0.0</modelVersion>
      <groupId>Company.LTKNet</groupId>
      <version>10.14.0.1-SNAPSHOT</version>
      <artifactId>LLRP</artifactId>
      <packaging>dotnet-library</packaging>
      <name>Company.LTKNet : LLRP</name>
      <build>
      <sourceDirectory>./</sourceDirectory>
      <plugins>
      <plugin>
      <groupId>org.apache.npanday.plugins</groupId>
      <artifactId>maven-compile-plugin</artifactId>
      <extensions>true</extensions>
      <executions>
      <execution>
      <id>CompileSourceFiles</id>
      <phase>compile</phase>
      <goals>
      <goal>compile</goal>
      </goals>
      <configuration>
      <includeSources>
      <includeSource>Properties/AssemblyInfo.cs</includeSource>
      </includeSources>
      </configuration>
      </execution>
      </executions>
      </plugin>
      <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>exec-maven-plugin</artifactId>
      <executions>
      <execution>
      <id>LLRPParam</id>
      <phase>generate-sources</phase>
      <goals>
      <goal>exec</goal>
      </goals>
      <configuration>
      <executable>$

      {project.build.directory}

      /CodeGenerator.exe</executable>
      <arguments>
      <argument>../../Definitions/Core/llrp-1x0-def.xml</argument>
      <argument>LLRPParam.cs</argument>
      <argument>LLRPParam.xslt</argument>
      </arguments>
      </configuration>
      </execution>
      </executions>
      </plugin>
      </plugins>
      </build>
      <dependencies>
      <dependency>
      <groupId>Company.LTKNet</groupId>
      <artifactId>CodeGenerator</artifactId>
      <version>10.14.0.1-SNAPSHOT</version>
      <type>dotnet-executable</type>
      <scope>compile</scope>
      </dependency>
      </dependencies>
      </project>

        Activity

        Hide
        Brett Porter added a comment -

        This was fixed as part of NPANDAY-410

        Show
        Brett Porter added a comment - This was fixed as part of NPANDAY-410

          People

          • Assignee:
            Brett Porter
            Reporter:
            Paul Dietrich
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development