JBoss Community

AS 7 Deployment APIs

reply from Jesper Pedersen in JBoss AS7 Development - View the full discussion
StandaloneDeploymentManager deploymentManager = magicallyGetDeploymentManager();
 
Repository ironJacamarRepo = new MavenRepository();
ironJacamarRepo.addServer("https://repository.jboss.org/nexus/content/groups/public");
ironJacamarRepo.setGroupId("org.jboss.ironjacamar");
 
 
// Choose Maven artifact; others include FileArtifact, URLArtifact, IvyArtifact
 
 
 
 
 
Artifact deployment = new MavenArtifact("jdbc-local", "1.0.0.Beta2", ironJacamarRepo);
 
 
DeploymentPlan plan = deploymentManager.newDeploymentPlan()
 
                                       .withGlobalRollback()
 
                                       .add(deployment).andDeploy();
 

 

Something like that is quite useful.

 

Maybe we could even expose the functionality in the domain.xml file:

 

<deployment name="jdbc-local" uid="xxx" type="maven">
  <server>
https://repository.jboss.org/nexus/content/groups/public</server>
  <group-id>org.jboss.ironjacamar</group-id>
  <version>1.0.0.Beta2</version>
</deployment>





Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community