-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

The deploy-file command will only do a single artifact at a time (and
the classifier would allow you to specify which one).

The deploy command however, takes (and someone correct me if I am wrong
here) all attached artifacts and deploys them in their correct place.

So, the following command line would build the artifacts you intend (and
although I use install, I would hope that deploy behaves similarly).

mvn clean jar:test-jar source:jar source:test-jar package install

Cheers,

Johan

ranicki wrote:
> 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:
> 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.
>>
- ---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
>>
>>
>>

- --
you too?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJ2cC3pHYnED7evioRAokDAJ4pR3LcA7dSNy5m8xUTkucKugKuqgCeJj+n
xCtdl8A06plWcH4sS3V/xbA=
=as7W
-----END PGP SIGNATURE-----

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

Reply via email to