Exclude properties in certain situations

2009-02-20 Thread Mathias P.W Nilsson
Hi, I'm using Spring, Eclipse and maven2 as build tool. In my development environment I use a Spring property overrider to set certain properties for my computer whereas my co-workers use their. The problem is when we do mvn clean:clean install. The my.properties is included and will of course

Dependcy to maven build

2007-08-19 Thread Mathias P.W Nilsson
How can I make a dependecy to my own jar file in another maven project? Both projects are created using maven but I need a reference to my api jar in the other maven project. -- View this message in context: http://www.nabble.com/Dependcy-to-maven-build-tf4294023s177.html#a12223648 Sent from

Re: hibernate3-maven-plugin not running

2007-08-17 Thread Mathias P.W Nilsson
Thank you all! It's working now! :) -- View this message in context: http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12204851 Sent from the Maven - Users mailing list archive at Nabble.com. - To

Hibernate and resources

2007-08-16 Thread Mathias P.W Nilsson
Ahhh I'm tearing hair out. I've set up maven, mysql, c3p0 and hibernate. Actually I want to use spring but I don't know how. Anyway when I test the application the testcase can't find hibernate.cfg.xml? I've read that all files,images should be in the src/main/java/resources. But for me to

RE: Remote respository

2007-08-16 Thread Mathias P.W Nilsson
Thank you all! But if maven should upload to respository I need login because the jars is just for internal projects not for external. And I need to reach the remote respository from home. -- View this message in context: http://www.nabble.com/Remote-respository-tf4273892s177.html#a12183034

Re: Hibernate and resources

2007-08-16 Thread Mathias P.W Nilsson
Yes! I did that and it worked! Thanks :) -- View this message in context: http://www.nabble.com/Hibernate-and-resources-tf4280221s177.html#a12183535 Sent from the Maven - Users mailing list archive at Nabble.com. - To

hibernate3-maven-plugin not running

2007-08-16 Thread Mathias P.W Nilsson
I try to get a db schema out of maven. Here is my configuration build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version2.0-alpha-2/version

Re: hibernate3-maven-plugin not running

2007-08-16 Thread Mathias P.W Nilsson
That didn't work. I sat an execution and a goal but it didn't work. -- View this message in context: http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12185558 Sent from the Maven - Users mailing list archive at Nabble.com.

Re: hibernate3-maven-plugin not running

2007-08-16 Thread Mathias P.W Nilsson
I got Failed to configure plugin parameters for: org.codehaus.mojo:hibernate3-maven-plugin:2.0-alpha-2 here are the pom.xml build plugins plugin groupIdorg.codehaus.mojo/groupId

annotations are not supported in -source 1.3

2007-08-16 Thread Mathias P.W Nilsson
I get this error message when I run mvn compile annotations are not supported in -source 1.3 (try -source 1.5 to enable annotations) How is that? When I check java -version I get java version 1.5.0_07 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164) Java HotSpot(TM) Client

Re: hibernate3-maven-plugin not running

2007-08-16 Thread Mathias P.W Nilsson
Thanks for you pation but it still doesn't work I get this for all my classes. I'm using annotations. Worked perfectly when I was using ant. org.hibernate.MappingException: Unable to load class declared as mapping class=se.digitalsupport.ftc.dto.Customer/ in the configuration: at

Re: annotations are not supported in -source 1.3

2007-08-16 Thread Mathias P.W Nilsson
Yes thanks I read it in a thread on this forum. I do't get this maven thing. My respository is full of hibernate all all that need to be there. When I compile package javax.persistence does not exist and every other package as well I see the javax.presistence in my M2_REPO variable in

Re: annotations are not supported in -source 1.3

2007-08-16 Thread Mathias P.W Nilsson
But I have? I've posted my pom and hibernate is in the dependency! -- View this message in context: http://www.nabble.com/annotations-are-not-supported-in--source-1.3-tf4281106s177.html#a12187764 Sent from the Maven - Users mailing list archive at Nabble.com.

Can't compile

2007-08-16 Thread Mathias P.W Nilsson
Ok this is very strange. I can't use mvn compile. I've tried it all. Delete all files in respository and try again. I then tried the mvn -e compile:compile and got the following error The plugin 'org.apache.maven.plugins:maven-compile-plugin' does not exist or no valid version could be found

Re: Can't compile

2007-08-16 Thread Mathias P.W Nilsson
getting exactly the same error.. I going mad here. Can't even compile. /Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/User.java:[11,25] package javax.persistence does not exist

Re: Can't compile

2007-08-16 Thread Mathias P.W Nilsson
Thanks! You a lifesaver. By supplying provided instead of runtime it worked. Thanks again! :clap: -- View this message in context: http://www.nabble.com/Can%27t-compile-tf4281613s177.html#a12188842 Sent from the Maven - Users mailing list archive at Nabble.com.

Remote respository

2007-08-15 Thread Mathias P.W Nilsson
How can I make my own remote respository that my team can use? I mean so that when I add a dependeny to my application the jar files are downloaded from a remote server -- View this message in context: http://www.nabble.com/Remote-respository-tf4273892s177.html#a12164430 Sent from the Maven -

Re: Remote respository

2007-08-15 Thread Mathias P.W Nilsson
I think I better explain this a little better :wistle: When I have created my project with maven and I want some other programmers to be able to use my project as a dependency, how can I accomplish this? Local harddrive doesn't work. I probably need a server of some sort that is exposed to the

SVN,Eclipse and Maven

2007-08-14 Thread Mathias P.W Nilsson
Hi! I'm totally new to Maven so please bare with me. I have set up an SVN server that requires login. Many developers share, commits and updates to the SVN server. Many of our applications are libs ( jar files ) wich would be included into our other projects. My question is. How do I create jar

Re: SVN,Eclipse and Maven

2007-08-14 Thread Mathias P.W Nilsson
Ok I found a link on apache maven. I have now changed my POM.xml to include distributionManagement and this in the settings.xml server idtest/id usernametest/username passwordtest/password /server I get the response that Authentication failed. I found this rather odd because I