jira-importer commented on issue #468:
URL: 
https://github.com/apache/maven-deploy-plugin/issues/468#issuecomment-2771543508

   **[Dave 
Roberge](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=david_r12)**
 commented
   
   Hey, I'm attempting to implement this, and am hoping to get some feedback. I 
ran into an issue when writing a test in DeployFileMojoTest. I created a 
plugin-config.xml file similar to the others for deploy-file goal, it looks 
like:
   
   ```
   <project>
     <distributionManagement>
       <repository>
         <uniqueVersion>false</uniqueVersion>
         <id>deploy-test</id>
         <name>Test Repository</name>
         <url>file://${basedir}/target/remote-repo/deploy-file-dist-mgmt</url>
         <layout>default</layout>
       </repository>
     </distributionManagement>
     <build>
       <plugins>
         <plugin>
           <artifactId>maven-deploy-plugin</artifactId>
           <configuration>
             ...
             
<pomFile>${basedir}/src/test/resources/unit/deploy-file-dist-mgmt/plugin-config.xml</pomFile>
             ...
           </configuration>
         </plugin>
       </plugins>
     </build>
   </project>
   ```
   
   The problem is that basedir variable in distribution management section is 
not interpolated when being read in so it installs the artifact at the root of 
the filesystem. Does anyone have ideas on how fix that, or should I look for 
alternative approaches?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to