maven-2

Using Maven, how can I assemble several modules into one artifact?

We have a mother-ship project with several modules: foo + foo-core + foo-resource + foo-util + foo-whatever I want to allow developers to include the core, resource, and util modules as dependencies (excluding the -whatever module). I know that I can specify that they include each dependency, but it would be nice to allow for them to...

invoke maven pluginManagment objects by reference

I have not found a way to do this, but it seems like a feature that should exist. Is it possible to invoke a maven-2 plugin by inherited reference? For example I would like to be able to do something like the following (yes I know you can't do this): <pluginManagment> <plugin id="exec-inno-setup"> <artifactId>maven-exec-plugin... <e...

Missing maven dependency using nexus setup

I am trying to build a maven project to test out some testing software - Arquillian. I setup nexus and added the jboss repositories to the bottom of the public group. When i run mvn test i get this error: Missing: ---------- 1) com.sun.istack:istack-commons-runtime:jar:1.1-SNAPSHOT Try downloading the file manually from the projec...

Error when i deploy war (TomCat)

hello, when i deploy my war into TomCat i have this error: 14 sept. 2010 11:48:07 org.apache.catalina.core.StandardContext filterStart GRAVE: Exception au démarrage du filtre struts2 Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/...

How to pass systemProperties when invoking exec:java plugin in maven?

I want to use the exec:java plugin to invoke the main class from command line. I can pass arguments from the command line using -Dexec.args="arg0 arg1 arg2", I don't know how to pass system properties. I tried '-Dexec.systemProperties="key=value"` but with no effect. pom.xml looks like this: <plugin> <groupId>org.codehaus.mojo<...

Maven MOJO transitive dependency resolution ordering from the bottom of the graph

I'm resolving transitive dependencies in my MOJO and wish to have them returned in order from the bottom of the dependency tree up. Is this possible using Maven2? Here's my code so far: Set<?> dependencyArtifacts = project.createArtifacts(artifactFactory, null, null); ArtifactResolutionResult result = resolver.resolveTransitively( d...

Include file from another subversion repository in my maven assembly

I am using maven-assembly-plugin to construct an assembly. I want to include in the assembly a file from another Subversion repository. How? Is there another plugin that will do a subversion export? ...

What should I included (using maven) to have use an embedded sesame repository in my Java application

I would like to use an embedded openRDF sesame repository in my Java application. I can not find information what is a minimum set of libraries that I need to include -- place in my pom.xml -- in my Java application to have it running. Can anybody give me a hint or a link to a website that would help me? ...

maven makes war with two versions of the same jar

Hi. Maven puts both axis-1.3.jar and axis-1.4.jar to WEB-INF/lib of my war. Can someone explain how to tell it to use only axis-1.4.jar? <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&...

Generate Flex project files using Maven

I've got a Java/Flex project that I'm building using Maven. After doing some research I'm using the Flexmojos project (http://flexmojos.sonatype.org/) for the Flex part, and almost everything seems to work fine so far (after a bit of struggling). I'm using version 4.0-alpha-5 (4.0-SNAPSHOT didn't seem to work for me). The Flex projects ...

How to reference a jar (containing only stubs) created with rmic:package maven goal from a POM?

Hi! I have a RMI app and the Stubs are generated with maven (rmic:rmic). Then I use the rmic:package goal and get a nice little jar with only the stubs. Now the bis question is: How can I reference this jar from the poms of other projects? I cant give it an ArtifactId (or do I?!) and when I use the classifier, it downloads all depend...

I want to deploy a jar AND it's dependencies to a remote repository.

Basically, I have a project and a Continuous Integration solution which I have no admin access to, that can't reach out of our network. Consequently, I want to deploy all of the jars for the project to our central maven repository which the CI solution can reach. They are in my local repo but it's a pretty complicated project. Can't I ju...

maven assembly ignores finalName for dependent artifacts

I have a hierarchical maven project, from which I am trying to build a native installer for several of the sub-modules. I am using my product name as a prefix: <finalName>xyz-${artifactId}</finalName> in the parent POM so that all my artifact jars have a standard naming convention. xyz-parent +-- util +--- target/xyz-util.jar +...

Is there a quick way to manually upload a bunch of artifacts jars with poms to archiva?

The web UI is clunky, and since archiva is on the internal network, adding new updates and things to it is a painstaking process. Does there exist a script or something that'll do the job of syncing up archiva to a local maven repo? ...

Tomcat 7 - Maven Plugin?

Hi all, I just wanted to double-check, has anyone found or is working on a Tomcat 7 plugin? If not, is anyone interested in helping me get it up and running? I want another quick alternative to Glassfish, JBoss AS 6.0 is a bit heavy still for quick mockups. Walter ...

Maven Pom files organisation

I have two independent gwt based projects using pom aggregation , so four projects(or modules) in total. Tree looks like this . Reactor1(just pom.xml) |-- war1 (gwt related stuff) `-- jar1 (Spring , hibernate etc) and an other project but structure is exactly the same Reactor2(just pom.xml) |-- war2 (gwt related stuff) `-- ...

Maven system property priority

I have following pom.xml <project> <properties> <buildNumber>dev</buildNumber> </properties> <build> <finalName>${project.artifactId}-${project.version}-${buildNumber}</finalName> </build> </project> This works fine on development machine. If I run mvn package I've got project-1.1-dev.war artifact. If I run mvn package...

deploy and undeploy multiple artefacts to JBoss using Maven

I intended to use JBoss-Maven-Plugin for hotdeployment of jars to JBoss. I have three projects A, B, C that depend on each other so if I want to redeploy A I first have to undeploy C, then B, then redeploy A, then B, then C. Now I'm having a hard time finding a way undeploying the artifacts and then deploying them in reverse order. Might...

Maven POM dependencies to ivy.xml file

Is there a maven plugin which i can use to convert the maven pom dependencies including transitive dependencies to an ivy.xml file? ...

Maven dependency from SVN repository

Using maven 2, is there any way to list a dependency to another maven project which is on a different SVN server but is not on a maven repository? Ideally, it should be possible to compile and run the main project without having to manually checkout and build the dependency. ...