eclipse maven 2 plugin
Hi i'm using in eclipse the plugin to let it work with maven 2 and i'm having some problems with it. (Bare in mind that everything works fine when i run it from the command line.) First issue - As it currently doesn't read the settings.xml (or has this bin fixed and am i doing something wrong??), i wonder how i can specify how to logon my tomcat i currently have this inside my POM: plugin groupIdorg.codehaus.mojo/groupId artifactIdtomcat-maven-plugin/artifactId version1.0-SNAPSHOT/version configuration warFile /target/dev/${artifactId}-${version}-dev.war /warFile servermyserver/server /configuration /plugin as he doesn't read the settings.xml, this obviously doesnt work :) any suggestions? second issue --- I'm using multiple profiles (actually four called: dev, test, prod and qa). How do I run a different profile in Eclipse than the default one? (dev is the active by default one) I've tried a lot of things: i right-click on my pom and choose the run as Maven build... option. Then you get a screen to specify your goal and arguments. i've tried to fill in the following thing in the argument section argumentName argumentValue P test p test -P test -p test profile.name test (then he just replaced profile.name with test in my pom, but doesn't execute the test profile). In the first four cases, he just executes the dev-profile (the active by default one) anybody that knows how to help?? thx! -- View this message in context: http://www.nabble.com/eclipse-maven-2-plugin-tf2083850.html#a5741589 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: eclipse maven 2 plugin
woeps, just noticed that this has it's own forum...anyway to replace this message to the Maven Eclipse - User forum ? sorry for the inconvenience -- View this message in context: http://www.nabble.com/eclipse-maven-2-plugin-tf2083850.html#a5741620 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] DBunit test work in eclipse not with maven
Hi i have a project with some Junit tests, when i run these in eclipse (clicking on them -- run as -- Junittest) thing work fine. No failed tests. When i run mvn test, all my DBunit tests fail (the junit tests that are not dbunit test work fine) i see the following error in my log: --- Test set: be.delaware.samples.jpetstore.source.dao.ibatis.SqlMapAccountDaoTest --- Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.1 sec FAILURE! testGetAccountString(be.delaware.samples.jpetstore.source.dao.ibatis.SqlMapAccountDaoTest) Time elapsed: 0.01 sec ERROR! org.dbunit.dataset.DataSetException: java.net.MalformedURLException at org.dbunit.dataset.xml.FlatXmlProducer.produce(FlatXmlProducer.java:169) at org.dbunit.dataset.CachedDataSet.init(CachedDataSet.java:71) at org.dbunit.dataset.xml.FlatXmlDataSet.init(FlatXmlDataSet.java:200) at org.dbunit.dataset.xml.FlatXmlDataSet.init(FlatXmlDataSet.java:187) at be.delaware.samples.jpetstore.source.dao.ibatis.SqlMapAccountDaoTest.getDataSet(SqlMapAccountDaoTest.java:45) at org.dbunit.DatabaseTestCase.executeOperation(DatabaseTestCase.java:87) at org.dbunit.DatabaseTestCase.setUp(DatabaseTestCase.java:104) at be.delaware.samples.jpetstore.source.dao.ibatis.SqlMapAccountDaoTest.setUp(SqlMapAccountDaoTest.java:24) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122) at org.apache.maven.surefire.Surefire.run(Surefire.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747) java.net.MalformedURLException at java.net.URL.init(Unknown Source) at java.net.URL.init(Unknown Source) at java.net.URL.init(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:796) at org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(XMLEntityManager.java:741) at org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(XMLDocumentScannerImpl.java:260) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:498) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169) at org.dbunit.dataset.xml.FlatXmlProducer.produce(FlatXmlProducer.java:145) at org.dbunit.dataset.CachedDataSet.init(CachedDataSet.java:71) at org.dbunit.dataset.xml.FlatXmlDataSet.init(FlatXmlDataSet.java:200) at org.dbunit.dataset.xml.FlatXmlDataSet.init(FlatXmlDataSet.java:187) at be.delaware.samples.jpetstore.source.dao.ibatis.SqlMapAccountDaoTest.getDataSet(SqlMapAccountDaoTest.java:45) at org.dbunit.DatabaseTestCase.executeOperation(DatabaseTestCase.java:87) at org.dbunit.DatabaseTestCase.setUp(DatabaseTestCase.java:104) at be.delaware.samples.jpetstore.source.dao.ibatis.SqlMapAccountDaoTest.setUp(SqlMapAccountDaoTest.java:24) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208)
Re: [m2] DBunit test work in eclipse not with maven
i applied the structure you suggested to my testresources and that worked excellent ! thx a million! -- View this message in context: http://www.nabble.com/-m2--DBunit-test-work-in-eclipse-not-with-maven-tf2050767.html#a5650018 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: test-classes in War
I really should get it done in one project, because i work with profiles and in one profile i want to include the test-classes in the war and in the other one i just want to execute them. thx for the help anyway :) http://www.nabble.com/user-files/185/pom.xml pom.xml -- View this message in context: http://www.nabble.com/test-classes-in-War-tf2028156.html#a5613042 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unable to deploy to tomcat
i'm deploying to tomcat using the tomcat-maven-plugin from codehaus plugin groupIdorg.codehaus.mojo/groupId artifactIdtomcat-maven-plugin/artifactId version1.0-SNAPSHOT/version configuration warFile /target/dev/${artifactId}-${version}-dev.war /warFile /configuration /plugin (you can just put it between the build...plugins.../plugins.../build tags) Don't forget to also put the following in your pum otherwise he won't find this plugin. repositories repository releases enabledfalse/enabled /releases snapshots / idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url /repository /repositories pluginRepositories pluginRepository releases enabledfalse/enabled /releases snapshots / idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url /pluginRepository /pluginRepositories hope this helps! -- View this message in context: http://www.nabble.com/unable-to-deploy-to-tomcat-tf2039596.html#a5613246 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: test-classes in War
I think i'm doing something wrong. I put the thing for the jar-plugin in my pom.xml (the one that builds the war). And i do get a test-jar build. But building this jar is the last thing maven does. So when i put the dependency in my war-plugin like this: plugin artifactIdmaven-war-plugin/artifactId configuration excludes**/_svn/**/excludes archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration dependencies dependency groupIdbe.delaware.jpetstore.samples/groupId artifactIdjpetstore/artifactId version0.0.1/version typetest-jar/type /dependency /dependencies /plugin But he keeps saying he's missing an artifact for the war-plugin (what would be logical because he tries to make the war before the test-jar is even build). any ideas? (p.s. i can't put my tests in the main source tree, because they want me to follow the maven default directory structure). thx! -- View this message in context: http://www.nabble.com/test-classes-in-War-tf2028156.html#a5590289 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
test-classes in War
Hi, is there a way to include the test classes in the war? thx -- View this message in context: http://www.nabble.com/test-classes-in-War-tf2028156.html#a5577745 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]