Just create a pom.xml with dummy coords and run from the directory
with that pom using deploy:deploy-file
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>localdomain.localhost</groupId>
<artifactId>dummy</artifactId>
<version>1-SNAPSHOT</version>
<build>
<extensions>
<!-- put required extensions here -->
</extensions>
</build>
</project>
mvn deploy:deploy-file -DgroupId=my.groupId -DartifactId=my-artifact
-Dversion=62.65 -Dfile=... -Dpackaging=... -DgeneratePom=true
-Durl=...
On 29 August 2011 14:18, mihxil <[email protected]> wrote:
>
> Maxime Gréau wrote:
>>
>> In all cases (I mean if you have an existing pom.xml or not), there will
>> be
>> a pom.xml with the artifact in the remote repository.
>>
>> If you want to deploy an existing file (jar, war...) in a remote
>> repository,
>> you have 2 choices :
>> - use deploy:deploy-file goal, this goal can be execute with or without a
>> pom.xml [1]
>>
> The point is that we don't understand how you can add an extension to the
> pom without a pom. Because you need one now to be able to connect with ssh.
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/maven-3-deploy-deploy-file-and-dav-http-tp3370548p4746131.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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]