Questions tagged [maven-cargo]

A Maven plugin that allows you to interact (start, deploy, stop, ...) with common J2EE servers.

Cargos

Cargo is a thin wrapper that allows you to manipulate Java EE containers in a standard way.

Official site : http://cargo.codehaus.org/Home

140 questions
0
votes
1 answer

Can I host a container zip on a nexus server for Cargo?

We are successfully using the cargo-maven2-plugin with both Jetty and Tomcat containers. Unfortunately our external internet connection is unstable, so we have failing builds because cargo cannot access the external url to obtain the container…
Forge_7
  • 1,839
  • 2
  • 20
  • 19
0
votes
1 answer

Use Maven Cargo to install Wildfly with Keycloak

I'm trying to use Maven Cargo to produce a Wildfly container and get Keycloak running on it. I've been at this for a while now and the way I see it there are two ways to go about it. I could either use an artifact installer for Wildfly and then…
Alex N.
  • 654
  • 8
  • 21
0
votes
1 answer

Is there a way to deploy using Cargo to a JBOSS server, while serving the release from Nexus?

I understand how to use Cargo with Maven to deploy to a remote JBOSS server, however this assumes that I'm actively building. In my specific case, I've already built the application, and have pushed it to a Nexus repository. Is there a way to…
Chris King
  • 63
  • 7
0
votes
1 answer

How do I know what are different goals available for plug-in in maven?

I recently started using maven. so this question might sound basic. This question came up when I was browsing through some code using cargo plug-in. In the following snippet of maven plugin in pom.xml, that i extracted from here, my understanding…
brain storm
  • 30,124
  • 69
  • 225
  • 393
0
votes
1 answer

Spring: Can not find applicationContext even though it's present in war file

My test looks like public class ITCache extends AbstractIntegrationTest { @Test public void readCache() { ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml"); …
daydreamer
  • 87,243
  • 191
  • 450
  • 722
0
votes
1 answer

Maven Cargo: Integration Test runs before cargo deploys war

The integration pom.xml looks like org.apache.maven.plugins maven-failsafe-plugin 2.12
0
votes
1 answer

Spring Jersey: How to get rid of web.xml?

I am creating my application as (link) public class InventoryApplication extends ResourceConfig { public InventoryApplication() { packages("com.org.my_services.inventory.services"); } } I have blank web.xml that I want to get rid…
daydreamer
  • 87,243
  • 191
  • 450
  • 722
0
votes
2 answers

Cargo start up error

I am running 'mvn clean install -Dmaven.test.skip=true' command for a web application. but it gives following error. I set the catalina home as an environment variable. i am using maven 3.1.1 version. Please help me FATAL ERROR in native method:…
user2622132
  • 49
  • 1
  • 3
  • 11
0
votes
1 answer

Using Cargo how to make Glassfish create tables without modifying the original EAR

How do you make Cargo maven plugin create tables on an embedded database using the Glassfish container. without modifying the original EAR? If it was using asadmin, the --createtables=true can be added to create the tables on deployment. At the…
Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265
0
votes
1 answer

Add test classpath to Jetty run by Cargo

I would like to run Jetty by using Cargo but I would like to add test resources to Jetty classpath. Here is my Maven configuration : org.codehaus.cargo
0
votes
1 answer

Configuration class not found for WebLogic local standalone with cargo maven plugin

I recently discovered Cargo and am really excited about its potential for allowing developers to consistently and automatically test web artifacts using maven -- but I am having trouble getting it configured correctly. For better or worse, we are a…
vacao
  • 153
  • 2
  • 11
0
votes
1 answer

Cargo unable to set the system properties values during bean injection

What I am trying to do? - For testing, I want to set serverKey and validity for my application and want cargo to inject into TokenUtils, so these values are available when the application is loaded What I have tried? I am using JBoss as Container…
daydreamer
  • 87,243
  • 191
  • 450
  • 722
0
votes
1 answer

What's the recommended way of updating maven repository metadata

I'll like to know, what's the recommended way of updating maven repository metadata? The scenario I'm working with is such that the content of maven-cargo plugin metadata is stale and does not reflect an updated repository metadata, hence, my…
drecute
  • 748
  • 4
  • 11
  • 29
0
votes
1 answer

Start cargo with already deployed WAR

I'm working with a plugin mechanism of a web application which is deployed locally with cargo. So I mostly do changes in the plugin and not in the application (the WAR) itself. But when starting cargo it deploys the WAR file each time even there…
JimBob
  • 156
  • 1
  • 15
0
votes
1 answer

Anyone know how to customize the servlet port for an embedded JBoss container using Maven Cargo?

I"m using Maven 3.0.3 with the Cargo 1.3.3 plugin. I'm trying to configure an embedded JBoss 7.1 container. I would like to customize the port on which JBoss listens for requests, normally 8080. However, I can't seem to customize it, using the…
Dave
  • 15,639
  • 133
  • 442
  • 830
1 2 3
9
10