开发者

Using Maven Cargo artifactInstaller for GlassFish 3.x

开发者 https://www.devze.com 2023-04-11 10:50 出处:网络
Is there a way to use Cargo\'s artifactInstaller element to install a GlassFish container during maven-cargo-plugin\'s run goal?

Is there a way to use Cargo's artifactInstaller element to install a GlassFish container during maven-cargo-plugin's run goal?

More specifically, is there a ZIP artifact available in a Maven repository, which contains the required GlassFish files as is the case for Jett开发者_开发知识库y, for which we have the org.eclipse.jetty:jetty-distribution artifact?


Yes sir. In fact... no, there is none available (afaik).

But you can easily install one locally (or deploy it to your own repository using the following command :

$ mvn install:install-file -Dfile=glassfish3.1.1.zip -DgroupId=org.glassfish -DartifactId=glassfish-installer -Dversion=3.1.1 -Dpackaging=zip

Then you'll need to declare your artifact installer like this :

<artifactInstaller>
     <groupId>org.glassfish</groupId>
     <artifactId>glassfish-installer</artifactId>
     <version>3.1.1</version>
</artifactInstaller>

It's a bit late compare to your post... but hope this helps ;)

Cheers, Pouce.


There is also another solution:

If you need the web distribution, you can use the following:

<groupId>org.glassfish.distributions</groupId>
<artifactId>web</artifactId>
<version>3.1.1</version>

Or, if you need another distribution, just browse the list of glassfish distributions to find the one suitable for your needs.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号