maven

Using Maven 1.x without extra plugins, how does someone build an executable jar?

Using Maven 1.x with just the bundled/standard plugins, what configuration is necessary to build an executable Jar? Answers should cover: including dependencies in target Jar proper classpath configuration to make dependency Jars accessible ...

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 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...

Running JS minification as a maven goal?

I'm trying to use YUI compressor in a maven goal, but I'm pretty new to the inner workings of maven. I see that I can copy all js to a new directory with the following: <copy todir="blah"> <fileset> <!-- A bunch of file extension types --> </fileset> </copy> Now, for each css and js file, I want to run the run the yui compres...

deleting repositories in Archiva

I deleted a repository from archiva but I only deleted the configuration and not the contents. When I'm ready to delete the contents, what's the best way to do so? ...

What are solid NMaven or build servers for .NET alternatives?

Maven had a long history and is well supported in the Java world. NMaven has received a less successful start and has never become as popular in the C#/.NET world as its larger cousin was in the Java world. The project seems close to dead(ish), but maybe I'm wrong. Are there alternatives that, preferably using NAnt, are commonly used in...

Maven Archetype Question

I'm trying to create an archtype for a simple project, this project contains some ssl certs that i'd like to includes as resources in the archtype so when the project gets created those certs will be part of the project. My problem is that maven is trying to do a property replacement on those certs when creating a project with the archet...

Maven: How to get all transitive dependencies programatically in a MOJO

Possible Duplicate: How to get access to Mavens dependency hierarchy within a plugin. The dependency:tree plugin:goal has an option 'verbose' which displays all conflicts & duplicates in the dependency tree. I am trying to reuse that information in my own mojo to generate reports, however - I can't seem to figure out exactly how...

Could Free Pascal benefit of something like Apache Maven?

Apache Maven is a very popular build and dependency management tool in the Java open source ecosphere. I did some tests to find out if it can handle compiled Free Pascal / Delphi units and found it easy to implement. So it would be possible to release open source libraries precompiled for Free Pascal (or Delphi) in a public Maven repo...

building cocoa project with maven

i have a cocoa project and i'd like to build it with maven. is there any maven plugin for building objective-c code? ...

Debug Maven project in Eclipse with third party sources

I am currently developing a maven project in eclipse. The m2eclipse plugin works beautifully. It even works out of the box with debugging. But when I am debugging open source third party libarries. It seems maven could automatically pull the source code down, but the eclipse debugger cannot resolve the currently execution point to the ...

upload jar to respository

I have a jar files that cannot be found on maven2 repository. i interested to add the jar so i can just include extra tag in my pom.xml file and other developer can use the jar. what is the steps needed to upload the jar to http webserver webfolder? what file should i uploaded beside custom.jar ? what other files need to exist on the w...

Warning : No pom file was found, assuming default settings!

Hi, I installed Maven 1, following the doc here http://maven.apache.org/maven-1.x/start/install.html Installation was successful, then I typed in "maven site" as shown in the doc here maven.apache.org/maven-1.x/start/quick-start.html I get the error "Warning : No pom file was found, assuming default settings!" From what I understand...

JavaFX with Maven

Hi, I recently started a JavaFX project, and I'd like to use Maven as my compiler/deployment tool. Is there a good tutorial or plugin to integrate JavaFX and Maven? ...

GlassFish v3 and glassfish-maven-plugin (Mac)

I'm trying to use the glassfish-maven-plugin (https://maven-glassfish-plugin.dev.java.net/) with GlassFish v3 (I'm on a Mac and using Eclipse) and I can't seem to get my web app to deploy. I keep running into: The Master Password is required to start the domain. No console, no prompting possible. You should either create the domain...

Best Practices for Code Formatting on Large Projects

I maintain the build for a large J2EE/Maven/Hudson/Perforce project with about 20 developers spread across the world. The solution in-place for code formatting is to format the codebase using jalopy when the developer runs the build, thereby ensuring any code which has not been formatted gets formatted prior to check-in. There main pro...

Maven Eclipse Plugin - " ... cannot be resolved"

I am using Eclipse 3.5, Maven 2.0.9 for my multi module Java project in one single workspace. My plugin declaration is below: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.7</version> <configuration> <ajdtVersion>2.0</ajdtVersio...

Retrieve property from classpath inside POM

For my current project I want to integrate a maven plug-in for database migrations. For this plug-in to work, however, I have to obtain the database settings inside my POM. My database settings are currently placed inside a hibernate.properties file, positioned in a directory that is marked as maven resource. For a variety of reasons I d...

eclipse on maven project warning 'DTD or XML schema'

Description Resource Path Location Type No grammar constraints (DTD or XML schema) detected for the document. TEST-net.kindleit.gae.example.server.MessageRepositoryTest.xml /projecttest-gae-example/target/surefire-reports line 1 XML Problem No grammar constraints (DTD or XML schema) detected for the document. appengine-web.xml ...

Warning on using project.parent.version as the version of a module in Maven 3

In maven multi-module projects where I want each of the modules to always keep the same version as the parent, I've typically done something like the following in the module's pom.xml: <parent> <groupId>com.groupId</groupId> <artifactId>parentArtifactId</artifactId> <version>1.1-SNAPSHOT</version> </parent> <groupId>c...