during build phase teamcity throws error but it's building through maven without problem, why?
I set default maven to 3.1 on teamcity 8.1
I can build the project via console without problem?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>copy-installed</id>
<phase>install</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<type>${project.packaging}</type>
<outputDirectory>${trunk_output}</outputDirectory>
<destFileName>${build.finalName}.apk</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
[com.triodor.today:today] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:copy (copy-installed) on project today: Error copying artifact from C:\TeamCity\buildAgent\work\fbce55a8dab1cf33\Android\DailyWork\trunk\target\today_2.1.0.14_(trunk).apk to Z:\today_2.1.0.14_(trunk).apk
Please sign in to leave a comment.
Please add -X to additional command line paramteres in your maven step settings and run build again.
Attach resulting build log to this forum thread.
I'm sorry, what do you mean add -X for additional parameters?
goals has been set as below on teamcity
clean install -e -Dandroidmanifest.version.name=%androidmanifest.version.name%
as I said it works perfectly via console.
There is a special field on your Maven build step configuration page:
Additional Maven command line parameters
it is used for passing parameters other than goals.
You should move your existing params (-e -Dandroidmanifest.version.name=%androidmanifest.version.name%) to the field
Also, add a "-X" parameter to the field. This will enable debug logs for maven build and help to diagnose the underlying issue.
I did everything as you mentioned.
here are the result,
EDIT: When I set it to a local folder it worked. Why could I copy to another mapped network location? Why teamcity does not allow while maven console does?
Mustafa,
Mapping a network location to a drive letter is done on per-user basis in MS Windows (see this discussion)
So, unless TeamCity Agent runs using your account, mapped drive will not be visible to it.
Check the account that is used to start build agent. Please note that the default window service account can also have limitaions accessing network drives.
:/ how couldnt I think that. Yes you're right, thank you for helping. Problem solved then.