|
Answer» Hi,
I'm trying to build my project and copying jar into destination with batch file. Unfortunately after mvn clean install jar will not be copied. Why? And how can I solve this PROBLEM? After mvn clean install there is COPY source destination in batch file, but the last one will not be run.
Thanks beforehand, regards, sipungora.Very difficult (impossible?) to tell without viewing your code.
Code: [Select]mvn clean install copy target\a.jar D:\srv\app /y/v Sorry, my knowledge of maven is lacking.
Can you ensure that the jar is being written, I have read that your first line fails (here.).
Perhaps it would be better for you to address your query to one of the mvn forums here.
Good luckEauch code line ALONE can easy be run and returns a correct results. But together first line can only be run, then nothing happens. if that's the case maybe the first line hasn't finished EXECUTING before the second tries to. how about a wait inbetween the two?
Code: [Select]PING /n 5 127.0.0.1>Nul FBWould putting both commands on one line separated by && be successful?
Quote mvn clean install && copy target\a.jar D:\srv\app /y/v
|