maven-2

Maven doesn't compile target/hibernate3/generated-sources

Can someone tell me how to configure maven for it also to compile sources from the target/hibernate3/generated-sources directory? I have already read this and other posts but they don't seem to solve my problem (which indeed seems trivial). I have used the bottom-up approach hibernate configuration for cfg.xml, hbm.xml and POJO generati...

Maven. What to do with "homeless" jars?

I have some proprietary.jar that I need to include in my project, but I don't wish to install it to the local repository. What I did initially was to put the jar into version control in my project's lib/ folder, and then specify the Maven dependency as: <!-- LOCAL DEPENDENCY --> <dependency> <groupId>topsecret</groupId> <artifa...

Maven workspace resolution horked

I'm using m2eclipse to manage maven projects. Somehow I did a bad thing, and now the system is behaving as if workspace resolution is disabled. I have several projects that depend on a main project. This project has a version of 4.0-SNAPSHOT, and all the dependent projects reference it in the dependencies section of their poms. Everythi...

Maven site deploy authentication error with scp

I get Auth fail error when running mvn -X site:deploy. org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: Auth fail It seems that the correct private key is used and I can scp files normally to the project site directory using scp on Ubuntu. What can be causing this? ...

m2eclipse: Eclipse is running in a JRE, but a JDK is required

Hello, I have a problem with m2eclipse (0.10.0) together with eclipse galileo (Build id: 20090920-1017). I always get the error message:"Eclipse is running in a JRE, but a JDK is required". I have tried several things, but nothing works. The error message is still there. Here are the things I have tried: In Window>Preferences>Java>Ins...

Issue on maven 2.2.1

I wrote a small maven plugin and everything seems to work well with prior version of maven (2.0.9) but my build fails on version 2.2.1 The stack trace does not show anything from my end of the code and was wondering if anyone has encountered this issue. .... .... [ERROR] FATAL ERROR [INFO] ---------------------------------------------...

How to output two ddl files at the same time with using maven hbm2ddl plugin

Our application needs to use two different kinds of databases.One is oracle, the other is mysql and we want to use maven plugin hbm2ddl to generate the ddl file, and want to output the two ddl files at the same time, I don't know how to set the configuration in pom.xml. I tried to use this plugin twice, but it always generated one ddl fi...

build version number for web-applications [war]?

How do you keep your build version number for a war file ? in ant, in maven? is there a way to simplify things? also, how do you keep your change log? [ie so that version number could tell how newer version changed since the last build] ? ...

make maven's surefire show stacktrace in console

Id like to see stacktrace of unit tests in console, does surefire support this? ...

Setting up Maven for a team

I have used Maven extensively for my personal projects, but now I have to set it up for a small team of 5-7 developers. My main question is, what's the recommended approach for managing dependencies to commercial libraries that are not available in the Maven repos? How can I manage the dependency of these commercial libraries on the ope...

Debugging in Maven?

Is it possible to launch a debugger such as jdb from maven? I have a pom.xml file that compiles the project successfully. However, the program hangs somewhere and I would really like to launch jdb or an equivalent debugger to see what's happening. I compile using mvn compile and launch using: mvn exec:java -Dexec.mainClass="com.mycomp...

How do I configure the hbm2java maven2 plugin to generate POJOs for all mapping files

Hi. I am trying to migrate my ant build to maven2. in my build.xml I invoke the hbm2java in the following way: <hibernatetool destdir="/src/generated/"> <configuration configurationfile="${env.ITP_HOME}/core/xml/hibernate/hibernate.cfg.xml"> <fileset dir="/xml/hibernate"> <include name="*.hbm.xml"/> ...

Sample settings.xml for maven

Can anyone tell me, how to configure settings.xml in Maven? Also Please share me sample settings.xml ...

slf4j-log4j12 not packaged by maven with "runtime" scope

I have a project managed by maven with slf4j-api-1.5.8 and log4j-1.2.14 dependencies. In runtime , slf4j needs slf4j-log4j12-1.5.8.jar to "bridge" output to log4j. So in pom.xml , I add this dependency : <dependencyManagement> <dependencies> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf...

Maven: use dependencies from repository when running command line app ?

Hi, I've used Maven to build my command line application. Now I'm going to distribute it as a jar file, and I need to handle the app's dependencies. I don't want to include all dependencies in the jar file as described here. The environment where my app will be run has Maven. I'd like Maven to run my jar looking at file META-INF/group...

Missing artifact error in Maven

I get a missing artifact error during Maven build because one of the dependencies declares it's parent artifact using a property for the version. Now the property itself is declared in the parent pom and my project's build fails giving this error: [ERROR] Failed to execute goal on project abc: Unable to get dependency information for xy...

Deploy maven generated site on Google Code svn?

Using a google code svn as a basic maven repository is easy. However, using mvn site:deploy efficiently on google code seems hard. So far, I found only these solutions: Deploy to a local file:/// and use a PERL script to delete the old and copy the new. Source: http://www.mail-archive.com/[email protected]/msg107719.html Use wag...

exclude resources from android:generate-sources

Could someone give me an idea about how to exclude using maven, some resources. I have a lot of languages in my project and I want to make build only for 3 languages for example. I have create the pom file and when I make the apk, all resources are copy by default(resources:resources,"Copying 122 resources"). Can I make in any way to cre...

Help me understand making maven project w/ non-maven jar dependencies usable by others

Hi, I'm in the process of learning maven (and java packaging & distribution) with a new oss project I'm making as practice. Here's my situation, all java of course: My main project is ProjectA, maven-based in a github repository. I have also created one utility project, maven-based, in github: ProjectB. ProjectA depends on a project I...

Get full name of an artifact in Maven

I need to know the complete filename of a specific artifact in Maven. I looked at versions-maven-plugin but it seems to change the pom itself. Is there another way to reach my goal? I want to store the complete artifact name in a property so I can pick it up in Java code. ...