maven-2

Publishing artifacts with sources on archiva

At work I'm dipping my toes in managing project dependencies with maven. We use Apache Archiva (1.2.1) as a local repository and proxy. I'm adding artifact for open source project, that is not published on any public repository. I've learned that to publish the sources I should use the Classifier field on Upload artifact page. The source...

How to make eclipse aware of OSGI bundles within a maven repository (local &| remote)

I have a project which is build through maven. Each module is built as an osgi bundle. Within Eclipse the modules have also the plugin nature. Some modules require external dependencies (log4j, apache commons, ...), which are also available as plugins from a maven repository (for instance the spring enterprise repository, which is also...

Maven: Java classes don't compile after Ant task

My project generates source code using the Rats! parser generator. Rats! doesn't have a Maven plugin that I'm aware of, so I'm trying to build the parser using an Ant Java task, like so: <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>generate-sources</phase> <configuration...

maven-assembly-plugin

hi, I'm trying to add a classpath to the jar generated by the maven-assembly-plugin. The assembly bulids, except the manifest has no classpath. Below is my configuration. Any help would be appreciated. Thanks! <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <id>make-assembly</id> <ph...

Find jdbc driver in Maven repository

Hi, I want to add the oracle jdbc driver to my project as dependency (runtime scope) - ojdbc14. In MVNrepository site the dependency to put in the POM is: <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc14</artifactId> <version>10.2.0.3.0</version> </dependency> of course this does't work as it is not in the c...

Why do so few people use Maven? Are there alternative tools?

I am new to Java, and when I started my development, my friends recommended Maven for project management. I almost immediately realized that it is an indispensable tool, and at that time I was thinking that all programmers use it. But when I see statistics on the NetBeans site, I was in shock: 67% of developers are not using Maven. Why? ...

How do you use the maven-simian-plugin in Maven2?

I'm looking for a Maven2 reporting plugin for Simian and the closest thing to such a reporting I found is this. The problem is, the documentation for it appears to be for Maven 1 instead. Why is a Maven 1 plugin stored in a Maven 2 repository? I suppose that means I can use it... but how to use? The site mentions reporting but if I don't...

Maven2 how to run some goal before plugin?

I have maven-plagin and need to run goal, that should automatically run before plugin. It possible? ...

Maven Plugin to automatically generate setters/getters?

Is there a Maven Plugin that will automatically generate setters and getters with the corresponding JavaDocs? I am aware that Eclipse/Netbeans will do this when you tell it to; however, it would be nice for the source to simply contain the skeleton and have Maven or another tool generate the repetitive stuff. I would want to modify th...

maven archetype j2ee-simple generates a failing project

I created a j2ee-simple project using the maven template with following command-line mvn archetype:create -DgroupId=com.hardik -DartifactId=ActionBazaar -DarchetypeArtifactId=maven-archetype-j2ee-simple When I try to run the install goal within the created project folder I get an error about not existent model file in the site modu...

checking for maven snapshot dependency changes on continuous integration server

There is a cruisecontrol plugin that checks for changes to snapshot dependencies, triggering a build if required. This involves using the Maven embedder to download the dependencies, then checking the timestamps of the snapshot files in the local repository. This works ok, but involves downloading all the parents and dependencies to chec...

A cycle was detected in the build path of project xxx - Build Path Problem

I'm in the process of converting my projects to OSGI bundles using maven and eclipse. Maven builds the stuff just fine, only I get the above error now within Eclipse. How can I find out which project causes this? Is there a special view or something? How can this happen, I would expect that maven can detect cyclic dependencies as well? ...

maven-jar-plugin and transitive dependencies

I'm using both the assembly and jar plugins to deploy my application. I'm also using the jar plugin to help me generate the classpath in the manifest file using <addClasspath>true</addClasspath> While that seems to work, the problem comes when I try executing the jar (it has a proper main class specified) - it will fail to locate a li...

maven javaee application client plugin

I am pretty new to maven. Is there any plugin or packaging type suitable for building application client jar file ? I want to add the application-client.xml file to the META-INF folder inside the jar. The normal jar packaging doesn't include the file. ...

Maven Run Project

Is there a Maven "phase" or "goal" to simply execute the main method of a Java class? I have a project that I'd like to test manually by simply doing something like "mvn run". ...

Disable download for a single dependency

I am downright annoyed because the Quartz release I'm importing does not have a proper POM file deployed (maven repo). Therefore maven dutifully tries to download it on every build. Downloading: http://repo1.maven.org/maven2/opensymphony/quartz/1.6.3/quartz-1.6.3.pom I'd like to skip this step but without going completely offline sin...

What is the correct way to "pipe" Maven's output in Python to the screen when used in a Python shell script?

My Python utility script contains UNIX system calls such as status, output = commands.getstatusoutput("ls -ltr") print "Output: ", output print "Status: ", status Which work fine and print the output to the console but as soon as I run Maven from the same script, status, output = commands.getstatusoutput("mvn clean install -s./../.....

Is there a Scala unit test tool that integrates well with Maven?

My company is beginning to write some code using Scala. I've been moved onto this project, and am a big fan of TDD, so I would like to get a unit-testing framework in place. However, the build system we're using for this project is Maven, and that's not going to change, for a variety of reasons. I've looked at both ScalaTest and Scala...

Maven Eclipse unit test configuration

I use Eclipse and for some of my unit tests, I need to set some JVM args for the test to work, -Djava.library.path in particular. I set it in my POM file as follows: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>-Djava.library.path=target/dll</argLi...

Removing the About link from maven site

I'm using mvn site to generate my site's documentation. For the most part, I'm satisfied with the default site, but I'd like to remove the "About" link from the left hand menu bar and just have the default page be the "Project Information" page. Is there an easy way to do this? Thanks, Jeff ...