[ http://jira.codehaus.org/browse/MOJO-233?page=comments#action_55661 ] 

Corridor Software Developer commented on MOJO-233:
--------------------------------------------------


That would be the case for a file:// based url. There's no explicit check that 
the artifact has been deployed to the repo.

I'm not where I can answer this question myself right at the moment, but when 
you do mvn jboss:deploy, an install is performed correct?

I'd like to infer from an http:// url that the user is attempting to deploy 
from the repo. But I'm not sure we can, since hypothetically they may have the 
artifact exposed to a web server.

So, summarizing options for the remote deploy to a remote jboss instance (i.e., 
http://, not file://):

1) no checks, just pass the http url and let jboss worry about it.
2) check the url for an existing file and succeed if it's there. Don't worry if 
the file exists but is stale.
3) check the url and timestamp of the file and fail if it's not newer than the 
artifact.
4) check the url and timestamp of the file and warn if it's not newer than the 
artifact but succeed anyway.
5) check the url and timestamp of the file and programatically start a deploy 
if it's not newer than the artifact but is an http:// url. This is assuming a 
lot.

I like 4 myself. You? Did I miss any others?




> JBoss: Slight modification supports deployment to remote jboss instance.
> ------------------------------------------------------------------------
>
>          Key: MOJO-233
>          URL: http://jira.codehaus.org/browse/MOJO-233
>      Project: Mojo
>         Type: Improvement

>  Environment: maven 2.0.1
>     Reporter: Corridor Software Developer
>     Assignee: Corridor Software Developer

>
>
> The jboss plugin uses the jmx deployment interface to perform deployments. 
> Currently only local deployments can be done and the code is biased towards 
> that end.
> With a slight modification and the help of the mvn deploy goal, we can 
> support remote deployment as well. The use case would be "developer deploys a 
> j2ee artifact to a remote development jboss instance". The command would be:
> mvn deploy jboss:deploy
> The initial deploy is required because remote deployment requires that the 
> server can reach the artifact via a url, and a file:// url isn't sufficient.
> The code change to the deployer is a simple check for an existing protocol in 
> the url given from the configuration. If it's not present, prepend "file://". 
> This avoids damaging the existing local deployment support.
> The configuration would appear as such:
>             <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>jboss-maven-plugin</artifactId>
>                 <configuration>
>                     <server>server.id</server>
>                     <hostName>server.domain<hostName>
>                     
> <fileName>http://repo.server.domain/path-to-artifact/filename-ear-version.ear</fileName>
>                     <port>port</port>
>                 </configuration>
>             </plugin>
> I'll attach a patch and commit the change soon.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to