I need to copying a runnable jar in a network folder during the install lifecycle. Now I try to add more detail at my problem. I'm developing a java program using maven like tool of building. After
Now I created some profiles inside my pom and after installation I need to move my runnable jar file inside a network directory. For example I hava:
- My jar file in target/myJar.jar
- Network folder is in \192.168.0.11\export\jars
To do this I'm using maven-upload-plugin with the following configuration:
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-upload-plugin</artifactId>
<version>1.1</version>
<configuration>
<serverId>MyServer</serverId>
<resourceSrc>${project.build.directory}\${project.build.finalName}.${project.packaging}</resourceSrc>
<resourceDest>/home/export/jars</resourceDest>
<url>\\192.168.0.11\export\jars</url>
</configuration>
</plugin>
I'm not able to find much documentation about this plugin, and I would want some information about resourceSRC,resourceDest,url.
Where i run the command mvn upload:upload -P Production, i get anything is copied in my remote folder.
Where am I doing wrong?
This is Java, not Windows. Try to use Java form for the url. I believe in your case url would be like this: