Thanks for your quick response.

I already tried the -Dclassifier parameter but maybe i did it wrong...
When just appending the -Dclassifier=tests parameter to the command it still
just deploys one file.
So is it right that i have to deloy the classifier with a second deploy-cmd
after deploying the artifact-file?




Johan Lindquist wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> The deploy plugin accepts a classifier parameter (-Dclassifier=) - use
> this with the values 'tests', 'test-sources' and 'sources' and it should
> work.  See also [1].
> 
> Cheers,
> 
> Johan
> 
> [1]
> http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
> 
> ranicki wrote:
>> HI,
>> 
>> i have several files in one directory of my snapshots-repository. The
>> main
>> artifact, e.g.
>> 
>> artifact-name-1.0-SNAPSHOT.jar
>> 
>> and corresponding files like
>> 
>> artifact-name-1.0-SNAPSHOT-tests.jar
>> artifact-name-1.0-SNAPSHOT-test-sources.jar
>> artifact-name-1.0-SNAPSHOT-sources.jar
>> 
>> Now i want to copy these artifacts into a second repository by using
>> mvn-deploy-cmd, e.g:
>> 
>> mvn deploy:deploy-file -DrepositoryId=... -DuniqueVersion=false
>> -Durl=file://... -DgroupId=... -DartifactId=... -Dversion=<new Version>
>> -Dpackaging=jar -Dfile=/.../artifact-name-1.0-SNAPSHOT.jar
>> 
>> But this cmd only copies the main artifact! How can i deploy the
>> corresponding files as well?
>> 
>> Thanks for your help.
> 
> - --
> you too?
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFJ2bjIpHYnED7evioRAratAJ9xYAg3Mr+zLvNCN0kDKL2jVyr7rgCdH5iE
> 0jS/kpPEvEoYotli0/b1JtM=
> =SQZk
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/deploy-multipe-file-to-one-directory-tp22903919p22904359.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to