mvn2 url resolution for SNAPSHOT sources wrong
hello there, i have a problem with downloading the sources from a snapshot repository. when i call mvn dependency:sources (or mvn eclipse:eclipse -DdownloadSources=true) the compiled jar is downloaded correctly, but the sources jar is searched for in a wrong directory download for the compiled jar is correct - http://snapshots.jboss.org/maven2/org/drools/solver/drools-solver-core/5.0.0.SNAPSHOT/drools-solver-core-5.0.0.20081009.190700-124.jar wrong, the timestamp is part of the path - http://snapshots.jboss.org/maven2/org/drools/solver/drools-solver-core/5.0.0.20081009.190700-124/drools-solver-core-5.0.0.20081009.190700-124-sources.jar the sources are there, i can browse and download them manually: http://snapshots.jboss.org/maven2/org/drools/solver/drools-solver-core/5.0.0.SNAPSHOT/ and the snapshot release of a different project (jboss-seam-pdf) from the same repository is retrieved correctly: Downloading: http://snapshots.jboss.org/maven2/org/jboss/seam/jboss-seam-pdf/2.1.0-SNAPSHOT/jboss-seam-pdf-2.1.0-20081010.041610-288-sources.jar Downloading: http://snapshots.jboss.org/maven2/org/jboss/seam/jboss-seam-pdf/2.1.0-SNAPSHOT/jboss-seam-pdf-2.1.0-20081010.041610-288.jar i asked the owners of the faulty repository, and they don't seem to have the same problem. http://www.nabble.com/drools-5.0.0-SNAPSHOT-Maven-repository-broken--ts19881450.html and comparing the poms of the working jboss-seam-pdf and the drools-solver repository i can not find any difference. (but i am a mvn newbie) my system is: Maven version: 2.0.8 Java version: 1.6.0_06 OS name: linux version: 2.6.24-19-generic arch: amd64 Family: unix below is a simple pom.xml, that creates the error for me (on two different computers in different networks): --- ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion artifactIdtestMavenDownloadSources/artifactId groupIdtest/groupId version0.1-SNAPSHOT/version nametestMavenDownload/name build finalNametestMavenDownload/finalName pluginManagement plugins !-- IDE -- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version2.4/version configuration downloadSourcestrue/downloadSources downloadJavadocstrue/downloadJavadocs /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId /plugin /plugins /pluginManagement /build repositories repository idsnapshots.jboss.org/id urlhttp://snapshots.jboss.org/maven2/url /repository repository idrepository.jboss.org/id urlhttp://repository.jboss.org/maven2/url /repository /repositories dependencies dependency !-- snapshot dependecy that downloads the sources -- groupIdorg.jboss.seam/groupId artifactIdjboss-seam-pdf/artifactId version2.1.0-SNAPSHOT/version /dependency dependency !-- snapshot dependency that does not download the sources -- groupIdorg.drools.solver/groupId artifactIddrools-solver-core/artifactId version5.0.0.SNAPSHOT/version /dependency /dependencies /project --- thank you, tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn2 url resolution for SNAPSHOT sources wrong
'.' is not a valid separator for snapshots - it needs to be -SNAPSHOT. Drools will need to redeploy it as 5.0.0-SNAPSHOT for it to work. - Brett On 13/10/2008, at 8:05 PM, tim tim wrote: hello there, i have a problem with downloading the sources from a snapshot repository. when i call mvn dependency:sources (or mvn eclipse:eclipse -DdownloadSources=true) the compiled jar is downloaded correctly, but the sources jar is searched for in a wrong directory download for the compiled jar is correct - http://snapshots.jboss.org/maven2/org/drools/solver/drools-solver-core/5.0.0.SNAPSHOT/drools-solver-core-5.0.0.20081009.190700-124.jar wrong, the timestamp is part of the path - http://snapshots.jboss.org/maven2/org/drools/solver/drools-solver-core/5.0.0.20081009.190700-124/drools-solver-core-5.0.0.20081009.190700-124-sources.jar the sources are there, i can browse and download them manually: http://snapshots.jboss.org/maven2/org/drools/solver/drools-solver-core/5.0.0.SNAPSHOT/ and the snapshot release of a different project (jboss-seam-pdf) from the same repository is retrieved correctly: Downloading: http://snapshots.jboss.org/maven2/org/jboss/seam/jboss-seam-pdf/2.1.0-SNAPSHOT/jboss-seam-pdf-2.1.0-20081010.041610-288-sources.jar Downloading: http://snapshots.jboss.org/maven2/org/jboss/seam/jboss-seam-pdf/2.1.0-SNAPSHOT/jboss-seam-pdf-2.1.0-20081010.041610-288.jar i asked the owners of the faulty repository, and they don't seem to have the same problem. http://www.nabble.com/drools-5.0.0-SNAPSHOT-Maven-repository-broken--ts19881450.html and comparing the poms of the working jboss-seam-pdf and the drools-solver repository i can not find any difference. (but i am a mvn newbie) my system is: Maven version: 2.0.8 Java version: 1.6.0_06 OS name: linux version: 2.6.24-19-generic arch: amd64 Family: unix below is a simple pom.xml, that creates the error for me (on two different computers in different networks): --- ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion artifactIdtestMavenDownloadSources/artifactId groupIdtest/groupId version0.1-SNAPSHOT/version nametestMavenDownload/name build finalNametestMavenDownload/finalName pluginManagement plugins !-- IDE -- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version2.4/version configuration downloadSourcestrue/downloadSources downloadJavadocstrue/downloadJavadocs /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId /plugin /plugins /pluginManagement /build repositories repository idsnapshots.jboss.org/id urlhttp://snapshots.jboss.org/maven2/url /repository repository idrepository.jboss.org/id urlhttp://repository.jboss.org/maven2/url /repository /repositories dependencies dependency !-- snapshot dependecy that downloads the sources -- groupIdorg.jboss.seam/groupId artifactIdjboss-seam-pdf/artifactId version2.1.0-SNAPSHOT/version /dependency dependency !-- snapshot dependency that does not download the sources -- groupIdorg.drools.solver/groupId artifactIddrools-solver-core/artifactId version5.0.0.SNAPSHOT/version /dependency /dependencies /project --- thank you, tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To
Mvn2/Selenium/CArgo/JUnit problem
hi all, i am running my UAT tests in mvn2 using Cargo and selenium . Due to problems using cargo plugin (when it started it was not able to find some jars for my webapp), i have written a base test which starts cargo and selenium. Problem i have now is that cargo starts/stops at every setUP and tearDown. Even though tests are ran automatically, i am trying to use a mechanism so tha cargo is started only once and it is stopped only once during hwole lifecycle of my tests. Wiuth JUnit3, i am unable to find a method that gets called only once (sort of SetUpFixture) for the whole junit session... anyone could give help hee? here' smy AbstractSeleniumTest for reference public abstract class AbstractSeleniumTest extends SeleneseTestCase { protected DefaultSelenium selenium; private Logger log = Logger.getLogger(this.getClass()); private InstalledLocalContainer container; public void setUp() throws Exception { System.err.println(--SettingUp Fixture); startCargo(); selenium = createSeleniumClient(http://localhost:8080/;); selenium.start(); } public void tearDown() throws Exception { stopCargo(); selenium.stop(); } protected DefaultSelenium createSeleniumClient(String url) throws Exception { return new DefaultSelenium(localhost, , *firefox, url); } private void startCargo() throws Exception { // (1) Optional step to install the container from a URL pointing to its distribution System.err.println(--- Starting cargo.. ..); Installer installer = new ZipURLInstaller( new URL( http://www.apache.org/dist/tomcat/tomcat-5/v5.5.25/bin/apache-tomcat-5.5.25.zip )); installer.install(); // (2) Create the Cargo Container instance wrapping our physical container LocalConfiguration configuration = (LocalConfiguration) new DefaultConfigurationFactory().createConfiguration( tomcat5x, ContainerType.INSTALLED, ConfigurationType.STANDALONE); container = (InstalledLocalContainer) new DefaultContainerFactory().createContainer( tomcat5x, ContainerType.INSTALLED, configuration); container.setHome(installer.getHome()); // (3) Statically deploy some WAR (optional) configuration.addDeployable(new WAR(target/BudgetWeb.war)); // (4) Start the container container.start(); } private void stopCargo() throws Exception { container.stop(); } thanks and regards Marco
Re: Mvn2/Selenium/CArgo/JUnit problem
An interesting approach. In my container-based integration testing, I've either configured all in the pom and used the maven cargo plugin to start up the container in pre-integration-test phase, then stop it in post-integration-test, or when I've wanted to do everything in-process and in-code, I've created a JUnit base test class and held a Jetty instance in a static property (so it survives through repeated setUp/tearDowns). I don't see what using Cargo buys you if you are setting up everything in code. Kalle On Sat, Apr 26, 2008 at 10:22 AM, Marco Mistroni [EMAIL PROTECTED] wrote: hi all, i am running my UAT tests in mvn2 using Cargo and selenium . Due to problems using cargo plugin (when it started it was not able to find some jars for my webapp), i have written a base test which starts cargo and selenium. Problem i have now is that cargo starts/stops at every setUP and tearDown. Even though tests are ran automatically, i am trying to use a mechanism so tha cargo is started only once and it is stopped only once during hwole lifecycle of my tests. Wiuth JUnit3, i am unable to find a method that gets called only once (sort of SetUpFixture) for the whole junit session... anyone could give help hee? here' smy AbstractSeleniumTest for reference public abstract class AbstractSeleniumTest extends SeleneseTestCase { protected DefaultSelenium selenium; private Logger log = Logger.getLogger(this.getClass()); private InstalledLocalContainer container; public void setUp() throws Exception { System.err.println(--SettingUp Fixture); startCargo(); selenium = createSeleniumClient(http://localhost:8080/;); selenium.start(); } public void tearDown() throws Exception { stopCargo(); selenium.stop(); } protected DefaultSelenium createSeleniumClient(String url) throws Exception { return new DefaultSelenium(localhost, , *firefox, url); } private void startCargo() throws Exception { // (1) Optional step to install the container from a URL pointing to its distribution System.err.println(--- Starting cargo.. ..); Installer installer = new ZipURLInstaller( new URL( http://www.apache.org/dist/tomcat/tomcat-5/v5.5.25/bin/apache-tomcat-5.5.25.zip )); installer.install(); // (2) Create the Cargo Container instance wrapping our physical container LocalConfiguration configuration = (LocalConfiguration) new DefaultConfigurationFactory().createConfiguration( tomcat5x, ContainerType.INSTALLED, ConfigurationType.STANDALONE); container = (InstalledLocalContainer) new DefaultContainerFactory().createContainer( tomcat5x, ContainerType.INSTALLED, configuration); container.setHome(installer.getHome()); // (3) Statically deploy some WAR (optional) configuration.addDeployable(new WAR(target/BudgetWeb.war)); // (4) Start the container container.start(); } private void stopCargo() throws Exception { container.stop(); } thanks and regards Marco
Re: Mvn2/Selenium/CArgo/JUnit problem
Kalle, i have started up cargo in my own test coz when i deployed my .war using jetty, it was always complaining on missing jar files (all related to my war application) i did a research and found that there was a bug in jetty 'embedded container' as it was not able to load certain classes from classpath this happened when i started to use selenium tests about 5 months ago i'll appreciate if you can share ur pom.xml, as my original idea was to use jetty too thanks and regards marco On Sat, Apr 26, 2008 at 8:43 PM, Kalle Korhonen [EMAIL PROTECTED] wrote: An interesting approach. In my container-based integration testing, I've either configured all in the pom and used the maven cargo plugin to start up the container in pre-integration-test phase, then stop it in post-integration-test, or when I've wanted to do everything in-process and in-code, I've created a JUnit base test class and held a Jetty instance in a static property (so it survives through repeated setUp/tearDowns). I don't see what using Cargo buys you if you are setting up everything in code. Kalle On Sat, Apr 26, 2008 at 10:22 AM, Marco Mistroni [EMAIL PROTECTED] wrote: hi all, i am running my UAT tests in mvn2 using Cargo and selenium . Due to problems using cargo plugin (when it started it was not able to find some jars for my webapp), i have written a base test which starts cargo and selenium. Problem i have now is that cargo starts/stops at every setUP and tearDown. Even though tests are ran automatically, i am trying to use a mechanism so tha cargo is started only once and it is stopped only once during hwole lifecycle of my tests. Wiuth JUnit3, i am unable to find a method that gets called only once (sort of SetUpFixture) for the whole junit session... anyone could give help hee? here' smy AbstractSeleniumTest for reference public abstract class AbstractSeleniumTest extends SeleneseTestCase { protected DefaultSelenium selenium; private Logger log = Logger.getLogger(this.getClass()); private InstalledLocalContainer container; public void setUp() throws Exception { System.err.println(--SettingUp Fixture); startCargo(); selenium = createSeleniumClient(http://localhost:8080/;); selenium.start(); } public void tearDown() throws Exception { stopCargo(); selenium.stop(); } protected DefaultSelenium createSeleniumClient(String url) throws Exception { return new DefaultSelenium(localhost, , *firefox, url); } private void startCargo() throws Exception { // (1) Optional step to install the container from a URL pointing to its distribution System.err.println(--- Starting cargo.. ..); Installer installer = new ZipURLInstaller( new URL( http://www.apache.org/dist/tomcat/tomcat-5/v5.5.25/bin/apache-tomcat-5.5.25.zip )); installer.install(); // (2) Create the Cargo Container instance wrapping our physical container LocalConfiguration configuration = (LocalConfiguration) new DefaultConfigurationFactory().createConfiguration( tomcat5x, ContainerType.INSTALLED, ConfigurationType.STANDALONE); container = (InstalledLocalContainer) new DefaultContainerFactory().createContainer( tomcat5x, ContainerType.INSTALLED, configuration); container.setHome(installer.getHome()); // (3) Statically deploy some WAR (optional) configuration.addDeployable(new WAR(target/BudgetWeb.war)); // (4) Start the container container.start(); } private void stopCargo() throws Exception { container.stop(); } thanks and regards Marco
Re: Mvn2/Selenium/CArgo/JUnit problem
Pom-based is pretty simple and we are using Tomcat in that case: http://svn.trails.codehaus.org/browse/~raw,r=844/trails/trunk/trails/examples/simple/pom.xml. Setting up the container in abstract base test class doesn't have much to do with Maven, but the advantage is that you can run everything in-process and from your IDE. Kalle On Sat, Apr 26, 2008 at 1:33 PM, Marco Mistroni [EMAIL PROTECTED] wrote: Kalle, i have started up cargo in my own test coz when i deployed my .war using jetty, it was always complaining on missing jar files (all related to my war application) i did a research and found that there was a bug in jetty 'embedded container' as it was not able to load certain classes from classpath this happened when i started to use selenium tests about 5 months ago i'll appreciate if you can share ur pom.xml, as my original idea was to use jetty too thanks and regards marco On Sat, Apr 26, 2008 at 8:43 PM, Kalle Korhonen [EMAIL PROTECTED] wrote: An interesting approach. In my container-based integration testing, I've either configured all in the pom and used the maven cargo plugin to start up the container in pre-integration-test phase, then stop it in post-integration-test, or when I've wanted to do everything in-process and in-code, I've created a JUnit base test class and held a Jetty instance in a static property (so it survives through repeated setUp/tearDowns). I don't see what using Cargo buys you if you are setting up everything in code. Kalle On Sat, Apr 26, 2008 at 10:22 AM, Marco Mistroni [EMAIL PROTECTED] wrote: hi all, i am running my UAT tests in mvn2 using Cargo and selenium . Due to problems using cargo plugin (when it started it was not able to find some jars for my webapp), i have written a base test which starts cargo and selenium. Problem i have now is that cargo starts/stops at every setUP and tearDown. Even though tests are ran automatically, i am trying to use a mechanism so tha cargo is started only once and it is stopped only once during hwole lifecycle of my tests. Wiuth JUnit3, i am unable to find a method that gets called only once (sort of SetUpFixture) for the whole junit session... anyone could give help hee? here' smy AbstractSeleniumTest for reference public abstract class AbstractSeleniumTest extends SeleneseTestCase { protected DefaultSelenium selenium; private Logger log = Logger.getLogger(this.getClass()); private InstalledLocalContainer container; public void setUp() throws Exception { System.err.println(--SettingUp Fixture); startCargo(); selenium = createSeleniumClient(http://localhost:8080/;); selenium.start(); } public void tearDown() throws Exception { stopCargo(); selenium.stop(); } protected DefaultSelenium createSeleniumClient(String url) throws Exception { return new DefaultSelenium(localhost, , *firefox, url); } private void startCargo() throws Exception { // (1) Optional step to install the container from a URL pointing to its distribution System.err.println(--- Starting cargo.. ..); Installer installer = new ZipURLInstaller( new URL( http://www.apache.org/dist/tomcat/tomcat-5/v5.5.25/bin/apache-tomcat-5.5.25.zip )); installer.install(); // (2) Create the Cargo Container instance wrapping our physical container LocalConfiguration configuration = (LocalConfiguration) new DefaultConfigurationFactory().createConfiguration( tomcat5x, ContainerType.INSTALLED, ConfigurationType.STANDALONE); container = (InstalledLocalContainer) new DefaultContainerFactory().createContainer( tomcat5x, ContainerType.INSTALLED, configuration); container.setHome(installer.getHome()); // (3) Statically deploy some WAR (optional) configuration.addDeployable(new WAR(target/BudgetWeb.war)); // (4) Start the container container.start(); } private void stopCargo() throws Exception { container.stop(); } thanks and regards Marco
Re: Mvn2/Selenium/CArgo/JUnit problem
lump all you test cases into one test suit, and then have your test suite's setup/teardown to start/stop tomcat respectively. I think the Struts 2 integration test does this. check it out. -D On Sat, Apr 26, 2008 at 10:22 AM, Marco Mistroni [EMAIL PROTECTED] wrote: hi all, i am running my UAT tests in mvn2 using Cargo and selenium . Due to problems using cargo plugin (when it started it was not able to find some jars for my webapp), i have written a base test which starts cargo and selenium. Problem i have now is that cargo starts/stops at every setUP and tearDown. Even though tests are ran automatically, i am trying to use a mechanism so tha cargo is started only once and it is stopped only once during hwole lifecycle of my tests. Wiuth JUnit3, i am unable to find a method that gets called only once (sort of SetUpFixture) for the whole junit session... anyone could give help hee? here' smy AbstractSeleniumTest for reference public abstract class AbstractSeleniumTest extends SeleneseTestCase { protected DefaultSelenium selenium; private Logger log = Logger.getLogger(this.getClass()); private InstalledLocalContainer container; public void setUp() throws Exception { System.err.println(--SettingUp Fixture); startCargo(); selenium = createSeleniumClient(http://localhost:8080/;); selenium.start(); } public void tearDown() throws Exception { stopCargo(); selenium.stop(); } protected DefaultSelenium createSeleniumClient(String url) throws Exception { return new DefaultSelenium(localhost, , *firefox, url); } private void startCargo() throws Exception { // (1) Optional step to install the container from a URL pointing to its distribution System.err.println(--- Starting cargo.. ..); Installer installer = new ZipURLInstaller( new URL( http://www.apache.org/dist/tomcat/tomcat-5/v5.5.25/bin/apache-tomcat-5.5.25.zip )); installer.install(); // (2) Create the Cargo Container instance wrapping our physical container LocalConfiguration configuration = (LocalConfiguration) new DefaultConfigurationFactory().createConfiguration( tomcat5x, ContainerType.INSTALLED, ConfigurationType.STANDALONE); container = (InstalledLocalContainer) new DefaultContainerFactory().createContainer( tomcat5x, ContainerType.INSTALLED, configuration); container.setHome(installer.getHome()); // (3) Statically deploy some WAR (optional) configuration.addDeployable(new WAR(target/BudgetWeb.war)); // (4) Start the container container.start(); } private void stopCargo() throws Exception { container.stop(); } thanks and regards Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mvn2/Selenium/CArgo/JUnit problem
On Sun, Apr 27, 2008 at 1:22 AM, Marco Mistroni [EMAIL PROTECTED] wrote: Problem i have now is that cargo starts/stops at every setUP and tearDown. Even though tests are ran automatically, i am trying to use a mechanism so tha cargo is started only once and it is stopped only once during hwole lifecycle of my tests. There is a JUnit TestSetup class in the Shale test framework that will help with this (and I'm sure it's described on the Cargo website...) http://shale.apache.org/shale-test/apidocs/org/apache/shale/test/cargo/CargoTestSetup.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Email junit results in mvn2?
Hi all, I've been working on moving from maven1 to mvn2 and it seems like there isn't any standard plugin that will send email as part of a build process (specifically, the results of junit tests). I realize there are plenty of full CI servers (cruise control etc) that do all that sort of stuff for you if you hand over the entire build process, but my objective is simply to add email capability to our existing process. Maven1 had maven-junit-report-plugin:mail-test-report and I'd be shocked to find that there isn't some equivalent in mvn2; Google came up dry though. Any suggestions? Cheers and thanks, Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Email junit results in mvn2?
Patrick, I don't think there is currently anything like that but writing your own Maven mojo might be a good way to start. James On Thu, 2008-04-17 at 15:08 -0700, Patrick Thomas wrote: Hi all, I've been working on moving from maven1 to mvn2 and it seems like there isn't any standard plugin that will send email as part of a build process (specifically, the results of junit tests). I realize there are plenty of full CI servers (cruise control etc) that do all that sort of stuff for you if you hand over the entire build process, but my objective is simply to add email capability to our existing process. Maven1 had maven-junit-report-plugin:mail-test-report and I'd be shocked to find that there isn't some equivalent in mvn2; Google came up dry though. Any suggestions? Cheers and thanks, Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Email junit results in mvn2?
A separate plugin would be handy, especially if the file sent was configurable, it could be used to send out many reports like pmd, checkstyle and junit. -Original Message- From: James William Dumay [mailto:[EMAIL PROTECTED] Sent: Thursday, April 17, 2008 7:26 PM To: Maven Users List Subject: Re: Email junit results in mvn2? Patrick, I don't think there is currently anything like that but writing your own Maven mojo might be a good way to start. James On Thu, 2008-04-17 at 15:08 -0700, Patrick Thomas wrote: Hi all, I've been working on moving from maven1 to mvn2 and it seems like there isn't any standard plugin that will send email as part of a build process (specifically, the results of junit tests). I realize there are plenty of full CI servers (cruise control etc) that do all that sort of stuff for you if you hand over the entire build process, but my objective is simply to add email capability to our existing process. Maven1 had maven-junit-report-plugin:mail-test-report and I'd be shocked to find that there isn't some equivalent in mvn2; Google came up dry though. Any suggestions? Cheers and thanks, Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Email junit results in mvn2?
Yes, I agree - this seems to be a fairly frequent request. - Brett On 18/04/2008, Brian E. Fox [EMAIL PROTECTED] wrote: A separate plugin would be handy, especially if the file sent was configurable, it could be used to send out many reports like pmd, checkstyle and junit. -Original Message- From: James William Dumay [mailto:[EMAIL PROTECTED] Sent: Thursday, April 17, 2008 7:26 PM To: Maven Users List Subject: Re: Email junit results in mvn2? Patrick, I don't think there is currently anything like that but writing your own Maven mojo might be a good way to start. James On Thu, 2008-04-17 at 15:08 -0700, Patrick Thomas wrote: Hi all, I've been working on moving from maven1 to mvn2 and it seems like there isn't any standard plugin that will send email as part of a build process (specifically, the results of junit tests). I realize there are plenty of full CI servers (cruise control etc) that do all that sort of stuff for you if you hand over the entire build process, but my objective is simply to add email capability to our existing process. Maven1 had maven-junit-report-plugin:mail-test-report and I'd be shocked to find that there isn't some equivalent in mvn2; Google came up dry though. Any suggestions? Cheers and thanks, Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Brett Porter Blog: http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mvn2
Ok, I understand now your point of view. It's link to the important reproducibility topic. One (common ?) way is to just use release version. Your proposition is more radical. So you have to don't use any snapshot pluginRepositroies and repositories (not just apache.snapshots). Rémy
Re: Mvn2
Hi Olivier, I wonder why ? Rémy
Re: Mvn2
Ok you can do it in order to test some new features in a plugin. But IMHO, you must lock the version in the others plugins. Because your build can not reproductable then you can have some issues in some plugins due to the current developement. Personnality, I have this repo only in a dedicated profile in my settings to not use it by default. -- Olivier 2007/11/14, Rémy Sanlaville [EMAIL PROTECTED]: Hi Olivier, I wonder why ? Rémy
Mvn2
hi all, anyone could tell me why suddenly i am getting this exception? my settings.xml is at the bottom of hte msg... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Couldn't find a version in [1.0-alpha-7, 1.0-alpha-8, 1.0-alpha-9] to match rang e [1.0-alpha-10-SNAPSHOT,1.0-alpha-10-SNAPSHOT] org.codehaus.plexus:plexus-archiver:jar:null from the specified remote repositories: central (http://repo1.maven.org/maven2), codehaus-plugins (http://dist.codehaus.org/), codehausSnapshots (http://snapshots.maven.codehaus.org/maven2), codehaus.snapshots (http://snapshots.repository.codehaus.org), Codehaus (http://repository.codehaus.org/), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository/) [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Couldn't find a version in [1.0-alpha-7, 1.0-alpha-8, 1.0-alpha-9] to match range [1.0-alpha-10-SNAPSHOT ,1.0-alpha-10-SNAPSHOT] org.codehaus.plexus:plexus-archiver:jar:null from the specified remote repositories: central (http://repo1.maven.org/maven2), codehaus-plugins (http://dist.codehaus.org/), codehausSnapshots (http://snapshots.maven.codehaus.org/maven2), codehaus.snapshots (http://snapshots.repository.codehaus.org), Codehaus (http://repository.codehaus.org/), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository/) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.artifact.versioning.OverConstrainedVersionException: Couldn't find a version in [1.0-alpha-7, 1.0-alpha-8, 1.0-alpha-9] to match ran ge [1.0-alpha-10-SNAPSHOT,1.0-alpha-10-SNAPSHOT] org.codehaus.plexus:plexus-archiver:jar:null from the specified remote repositories: central (http://repo1.maven.org/maven2), codehaus-plugins (http://dist.codehaus.org/), codehausSnapshots (http://snapshots.maven.codehaus.org/maven2), codehaus.snapshots (http://snapshots.repository.codehaus.org), Codehaus (http://repository.codehaus.org/), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository/) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(D efaultArtifactCollector.java:291) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(D efaultArtifactCollector.java:367) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(D efaultArtifactCollector.java:74) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra nsitively(DefaultArtifactResolver.java:284) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra nsitively(DefaultArtifactResolver.java:272) at org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsC omplete(DefaultPluginManager.java:654) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul tPluginManager.java:557) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:421) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:539) ... 16 more [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Tue Nov 13 16:09:03 GMT 2007
Re: Mvn2
Hi, Don't use apache.snapshots pluginRepository. -- Olivier 2007/11/13, Marco Mistroni [EMAIL PROTECTED]: hi all, anyone could tell me why suddenly i am getting this exception? my settings.xml is at the bottom of hte msg... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Couldn't find a version in [1.0-alpha-7, 1.0-alpha-8, 1.0-alpha-9] to match rang e [1.0-alpha-10-SNAPSHOT,1.0-alpha-10-SNAPSHOT] org.codehaus.plexus:plexus-archiver:jar:null from the specified remote repositories: central (http://repo1.maven.org/maven2), codehaus-plugins (http://dist.codehaus.org/), codehausSnapshots (http://snapshots.maven.codehaus.org/maven2), codehaus.snapshots (http://snapshots.repository.codehaus.org), Codehaus (http://repository.codehaus.org/), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository/) [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Couldn't find a version in [1.0-alpha-7, 1.0-alpha-8, 1.0-alpha-9] to match range [1.0-alpha-10-SNAPSHOT ,1.0-alpha-10-SNAPSHOT] org.codehaus.plexus:plexus-archiver:jar:null from the specified remote repositories: central (http://repo1.maven.org/maven2), codehaus-plugins (http://dist.codehaus.org/), codehausSnapshots (http://snapshots.maven.codehaus.org/maven2), codehaus.snapshots (http://snapshots.repository.codehaus.org), Codehaus (http://repository.codehaus.org/), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository/) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (Defau ltLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLi fecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode( Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.artifact.versioning.OverConstrainedVersionException: Couldn't find a version in [1.0-alpha-7, 1.0-alpha-8, 1.0-alpha-9] to match ran ge [1.0-alpha-10-SNAPSHOT,1.0-alpha-10-SNAPSHOT] org.codehaus.plexus:plexus-archiver:jar:null from the specified remote repositories: central (http://repo1.maven.org/maven2), codehaus-plugins (http://dist.codehaus.org/), codehausSnapshots (http://snapshots.maven.codehaus.org/maven2), codehaus.snapshots (http://snapshots.repository.codehaus.org), Codehaus (http://repository.codehaus.org/), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository/) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(D efaultArtifactCollector.java:291) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(D efaultArtifactCollector.java:367) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(D efaultArtifactCollector.java:74) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra nsitively(DefaultArtifactResolver.java:284) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra nsitively(DefaultArtifactResolver.java:272) at org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsC omplete(DefaultPluginManager.java:654) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo (Defaul tPluginManager.java:557) at org.apache.maven.plugin.DefaultPluginManager.executeMojo (DefaultPlugi nManager.java:421) at
compilation error when building jaxb using mvn2
hi, when i am building my jaxb using maven 2 in linux its working fine.but when i do this on windows it gives following error --. if any one has solution then please reply me. --- [INFO] Compiling file:/D:/Maven2POCPlatformService/zensoa-platformservice-jaxb/s rc/main/resources/schema/Common/CommonBasicElements_1_0.xsd [INFO] [ERROR] FATAL ERROR [INFO] [INFO] com/sun/istack/SAXParseException2 [INFO] [INFO] Trace java.lang.NoClassDefFoundError: com/sun/istack/SAXParseException2 at com.sun.tools.xjc.XJC2Task._doXJC(XJC2Task.java:448) at com.sun.tools.xjc.XJC2Task.doXJC(XJC2Task.java:397) at com.sun.tools.xjc.XJC2Task.execute(XJC2Task.java:332) at com.sun.tools.xjc.maven2.XJCMojo.execute(XJCMojo.java:304) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [INFO] Total time: 12 seconds [INFO] Finished at: Wed Nov 14 12:40:37 GMT+05:30 2007 [INFO] Final Memory: 5M/10M [INFO] -- View this message in context: http://www.nabble.com/compilation-error-when-building-jaxb-using-mvn2-tf4802798s177.html#a13741340 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: compilation error when building jaxb using mvn2
Search for ajar which has this class SAXParseException2 and add it to plugin dependency. Rem full name com/sun/istack/SAXParseException2 Nishant Sonar, -Original Message- From: chandan choudhary [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 14, 2007 1:04 PM To: users@maven.apache.org Subject: compilation error when building jaxb using mvn2 hi, when i am building my jaxb using maven 2 in linux its working fine.but when i do this on windows it gives following error --. if any one has solution then please reply me. --- [INFO] Compiling file:/D:/Maven2POCPlatformService/zensoa-platformservice-jaxb/s rc/main/resources/schema/Common/CommonBasicElements_1_0.xsd [INFO] [ERROR] FATAL ERROR [INFO] [INFO] com/sun/istack/SAXParseException2 [INFO] [INFO] Trace java.lang.NoClassDefFoundError: com/sun/istack/SAXParseException2 at com.sun.tools.xjc.XJC2Task._doXJC(XJC2Task.java:448) at com.sun.tools.xjc.XJC2Task.doXJC(XJC2Task.java:397) at com.sun.tools.xjc.XJC2Task.execute(XJC2Task.java:332) at com.sun.tools.xjc.maven2.XJCMojo.execute(XJCMojo.java:304) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [INFO] Total time: 12 seconds [INFO] Finished at: Wed Nov 14 12:40:37 GMT+05:30 2007 [INFO] Final Memory: 5M/10M [INFO] -- View this message in context: http://www.nabble.com/compilation-error-when-building-jaxb-using-mvn2-tf 4802798s177.html#a13741340 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn2 structure design for a software product
Hi, I have a general design question on mvn2's project (directory) structure. I'm starting on a project which involves creating a software product to be used by a few clients, with each client having particular customizations on top of the product. I'm thinking of a structure design where I separate the generic/reusable product in its own project, and any client-specific customizations in their own root-level projects... something like this: -- product (uses mvn2 subprojects) pom.xml product-core pom.xml product-service pom.xml ... client1 (which has classes that depend on the product project) pom.xml product-core pom.xml ... client2 (which has classes that depend on the product project) ... clientN. ... --- I know I can set this structure up physically. Not sure how mvn2 will work with this. Basically if I'm building/deploying this product to client 1, I would like to just do invoke the mvn command, with maybe a profile attribute or similar specifying that its for client1, that will build the product project and then just the client1 project. If there is another better option that will facilitate this product/customization package scenario, I would appreciate any suggestions. Thanks in advance! -los -- View this message in context: http://www.nabble.com/mvn2-structure-design-for-a-software-product-tf4474879s177.html#a12758764 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem when generating one-to-many associations wiht xd2 mvn2 plugin
hi all, i am using xd2 mvn2 plugin to generate xdoclet files... but it looks like it is falling short when i am using associations.. here is the class that is failing... code: package com.mm.backend.model; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; /** * @hibernate.class table=ENTRYTYPES * @hibernate.discriminator column=discriminator * */ public class AbstractEntryType { protected String description; protected Long id; protected String discriminator; protected Integer version; protected List entries = new ArrayList(); /** * @hibernate.property * @return entry type description */ public String getDescription() { // TODO Auto-generated method stub return description; } /** * @hibernate.property column=discriminator * insert=false * update=false */ public String getDiscriminator() { return discriminator; } /** * @hibernate.id column=id * generator-class=increment * unsaved-value=-1 */ public Long getId() { // TODO Auto-generated method stub return id; } /** * @hibernate.version * unsaved-value=null * @return */ public Integer getVersion() { return version; } public void setDescription(String description) { // TODO Auto-generated method stub this.description = description; } public void setDiscriminator(String discriminator) { this.discriminator = discriminator; } public void setId(Long id) { this.id = id; } public void setVersion(Integer version) { this.version = version; } /** * @hibernate.list cascade=save-update * @hibernate.collection-one-to-many class= com.mm.backend.model.AbstractBudgetEntry * @hibernate.collection-key column=FK_ENTRY_ID * @return */ public List getEntries() { return entries; } public void setEntries(List entries) { this.entries = entries; } /** common methods ***/ public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof AbstractEntryType)) return false; final AbstractEntryType item = (AbstractEntryType) o; if (! (id == item.getId()) ) return false; return true; } public int hashCode() { int result; result = 29 * description.hashCode() + id.intValue() + version.hashCode(); return result; } public String toString() { return id (' + getId() + '), + Desc: ' + getDescription(); } public int compareTo(Object o) { if (o instanceof AbstractEntryType) { // Don't compare Date objects! Use the time in milliseconds! return String.valueOf(id).compareTo( String.valueOf( ((AbstractEntryType)o).getId())); } return 0; } } and here's the hbm.xml file that gets generated hibernate-mapping − class table=ENTRYTYPES name=com.mm.backend.model.AbstractEntryType − id unsaved-value=-1 name=id column=id generator class=increment/ /id discriminator column=discriminator/ version unsaved-value=null name=version/ property name=description/ property name=discriminator column=discriminator update=false insert=false/ − list cascade=save-update name=entries key/ /list subclass name=com.mm.backend.model.ExpenseType discriminator-value=Expense/ subclass name=com.mm.backend.model.SavingsType discriminator-value=Savings/ /class /hibernate-mapping somehow the key is not getting populated... so in the output i got this : [INFO] XDoclet plugin failed: Line: 15 Column: 12 Message: The content of element type list is incomplete, it must match (me ta*,subselect?,cache?,synchronize*,comment?,key,(index|list-index),(element|one- to-many|many-to-many|composite-element|many-to-any),loader?,sql-insert?,sql-upda te?,sql-delete?,sql-delete-all?,filter*). [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: XDoclet plugin failed: Line: 15 Column: 12 Message: The content of element type list is incomplete, it must match (me ta*,subselect?,cache?,synchronize*,comment?,key,(index|list-index),(element|one- to-many|many-to-many|composite-element|many-to-any),loader?,sql-insert?,sql-upda te?,sql-delete?,sql-delete-all?,filter*). at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle( DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
Re: problems with mvn2, Spring and Hibernate... anyone could help?
Hello Marco I had a problem like that too, overloaded the class to, but didn't like the result of it. At then I came up with the following: * For each project have a hibernate.cfg.xml file that holds reference to your hibernate classes. * in your Sring config file have the following: bean id=sessionFactory class= org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=configLocation value=classpath:hibernate.cfg.xml/ property name=configLocations value=classpath*:hibernate.cfg.xml/ That would work with your local classpath as well with your jars, including test phases Regards Johann Reyes On 7/6/07, Marco Mistroni [EMAIL PROTECTED] wrote: Hi Trevor, thanks... that would work unfortunately my app is splitted in two jars, one for backend and another for webapp. everythign works fine at the junit level for the backend, but once code runs in app server , where the webapp jar is calling the backend jar for interactign with db.. code fails.. my best option now is to override LocalSessionFactoryBean.. i found a sample ont henet, i am going to try and post results.. thanks and regards marco On 7/6/07, Trevor Torrez [EMAIL PROTECTED] wrote: The problem is with the ability of the JVM to enumerate resources in the root of the classpath when these resources are in jars. The mappingJarLocations property would be used to search through jars that are *not* normally on the classpath, so you shouldn't be using that for WEB-INF/lib jars; in some cases you would cause hibernate to read the mapping files twice, once for the jar on the classpath, and once for the jar in the mappingJarLocations -- they just happen to be the same physical jar. The best fix is to create all the hbm.xml files in a subpackage of src/main/resources -- perhaps com/project/domain; then use a resource pattern like classpath*:/com/project/domain/**/*.hbm.xml. On 7/5/07, Marco Mistroni [EMAIL PROTECTED] wrote: Hello Jon actually it has nothing to do with maven, as i discovered later.. since scope=compile will be visible in the test it has to do with Spring classloading actually.. i'll post a solution here as soon as i finish to try some code i found on the web with kindest regards marco On 7/5/07, Jon SlinnHawkins [EMAIL PROTECTED] wrote: I think this may be a problem with Surefire and the way spring uses classloaders : http://jira.codehaus.org/browse/SUREFIRE-340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel If you find a solution please post Thanks Marco Mistroni wrote: hi all, i know i should post this to maven list but it is about spring and i am sure someone here is using maven for building its environment I have an app composed of 3 project: - domain OBjects , contains domain objects used by web and backend project - backend project contains hibernate code - webapp contains webwork code that uses hibernate to access database i have been searching for solutions for not hardcoding hibernate mapping files.. i came across mappingJarLocations where you can specify jars where hbm.xml file are located. this is fine, however i am building my project using maven2 and i am setting the dependency scope for domainObjects.jar on my backend project.. if i use scopetest/scope test will fail because spring won't be able to find hbm.xml file (jar is not in classpath) if i use scopecompile/scope jar won't be in test classpath i was wondering if anyone on this forum came across same situation... here's my spring context... bean id=sessionFactory class= org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=dataSource ref bean=dataSource/ /property property name=mappingJarLocations valueclasspath*:domainObjects-1.0-SNAPSHOT.jar /value /property property name=hibernateProperties ref bean=exampleHibernateProperties / /property /bean thanks in advancea nd regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with mvn2, Spring and Hibernate... anyone could help?
thanx johann! i'll try it out! regards marco On 7/13/07, Johann Reyes [EMAIL PROTECTED] wrote: Hello Marco I had a problem like that too, overloaded the class to, but didn't like the result of it. At then I came up with the following: * For each project have a hibernate.cfg.xml file that holds reference to your hibernate classes. * in your Sring config file have the following: bean id=sessionFactory class= org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=configLocation value=classpath:hibernate.cfg.xml/ property name=configLocations value=classpath*:hibernate.cfg.xml / That would work with your local classpath as well with your jars, including test phases Regards Johann Reyes On 7/6/07, Marco Mistroni [EMAIL PROTECTED] wrote: Hi Trevor, thanks... that would work unfortunately my app is splitted in two jars, one for backend and another for webapp. everythign works fine at the junit level for the backend, but once code runs in app server , where the webapp jar is calling the backend jar for interactign with db.. code fails.. my best option now is to override LocalSessionFactoryBean.. i found a sample ont henet, i am going to try and post results.. thanks and regards marco On 7/6/07, Trevor Torrez [EMAIL PROTECTED] wrote: The problem is with the ability of the JVM to enumerate resources in the root of the classpath when these resources are in jars. The mappingJarLocations property would be used to search through jars that are *not* normally on the classpath, so you shouldn't be using that for WEB-INF/lib jars; in some cases you would cause hibernate to read the mapping files twice, once for the jar on the classpath, and once for the jar in the mappingJarLocations -- they just happen to be the same physical jar. The best fix is to create all the hbm.xml files in a subpackage of src/main/resources -- perhaps com/project/domain; then use a resource pattern like classpath*:/com/project/domain/**/*.hbm.xml. On 7/5/07, Marco Mistroni [EMAIL PROTECTED] wrote: Hello Jon actually it has nothing to do with maven, as i discovered later.. since scope=compile will be visible in the test it has to do with Spring classloading actually.. i'll post a solution here as soon as i finish to try some code i found on the web with kindest regards marco On 7/5/07, Jon SlinnHawkins [EMAIL PROTECTED] wrote: I think this may be a problem with Surefire and the way spring uses classloaders : http://jira.codehaus.org/browse/SUREFIRE-340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel If you find a solution please post Thanks Marco Mistroni wrote: hi all, i know i should post this to maven list but it is about spring and i am sure someone here is using maven for building its environment I have an app composed of 3 project: - domain OBjects , contains domain objects used by web and backend project - backend project contains hibernate code - webapp contains webwork code that uses hibernate to access database i have been searching for solutions for not hardcoding hibernate mapping files.. i came across mappingJarLocations where you can specify jars where hbm.xml file are located. this is fine, however i am building my project using maven2 and i am setting the dependency scope for domainObjects.jar on my backend project.. if i use scopetest/scope test will fail because spring won't be able to find hbm.xml file (jar is not in classpath) if i use scopecompile/scope jar won't be in test classpath i was wondering if anyone on this forum came across same situation... here's my spring context... bean id=sessionFactory class= org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=dataSource ref bean=dataSource/ /property property name=mappingJarLocations valueclasspath*:domainObjects-1.0-SNAPSHOT.jar /value /property property name=hibernateProperties ref bean=exampleHibernateProperties / /property /bean thanks in advancea nd regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with mvn2, Spring and Hibernate... anyone could help?
Hi Trevor, thanks... that would work unfortunately my app is splitted in two jars, one for backend and another for webapp. everythign works fine at the junit level for the backend, but once code runs in app server , where the webapp jar is calling the backend jar for interactign with db.. code fails.. my best option now is to override LocalSessionFactoryBean.. i found a sample ont henet, i am going to try and post results.. thanks and regards marco On 7/6/07, Trevor Torrez [EMAIL PROTECTED] wrote: The problem is with the ability of the JVM to enumerate resources in the root of the classpath when these resources are in jars. The mappingJarLocations property would be used to search through jars that are *not* normally on the classpath, so you shouldn't be using that for WEB-INF/lib jars; in some cases you would cause hibernate to read the mapping files twice, once for the jar on the classpath, and once for the jar in the mappingJarLocations -- they just happen to be the same physical jar. The best fix is to create all the hbm.xml files in a subpackage of src/main/resources -- perhaps com/project/domain; then use a resource pattern like classpath*:/com/project/domain/**/*.hbm.xml. On 7/5/07, Marco Mistroni [EMAIL PROTECTED] wrote: Hello Jon actually it has nothing to do with maven, as i discovered later.. since scope=compile will be visible in the test it has to do with Spring classloading actually.. i'll post a solution here as soon as i finish to try some code i found on the web with kindest regards marco On 7/5/07, Jon SlinnHawkins [EMAIL PROTECTED] wrote: I think this may be a problem with Surefire and the way spring uses classloaders : http://jira.codehaus.org/browse/SUREFIRE-340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel If you find a solution please post Thanks Marco Mistroni wrote: hi all, i know i should post this to maven list but it is about spring and i am sure someone here is using maven for building its environment I have an app composed of 3 project: - domain OBjects , contains domain objects used by web and backend project - backend project contains hibernate code - webapp contains webwork code that uses hibernate to access database i have been searching for solutions for not hardcoding hibernate mapping files.. i came across mappingJarLocations where you can specify jars where hbm.xml file are located. this is fine, however i am building my project using maven2 and i am setting the dependency scope for domainObjects.jar on my backend project.. if i use scopetest/scope test will fail because spring won't be able to find hbm.xml file (jar is not in classpath) if i use scopecompile/scope jar won't be in test classpath i was wondering if anyone on this forum came across same situation... here's my spring context... bean id=sessionFactory class= org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=dataSource ref bean=dataSource/ /property property name=mappingJarLocations valueclasspath*:domainObjects-1.0-SNAPSHOT.jar/value /property property name=hibernateProperties ref bean=exampleHibernateProperties / /property /bean thanks in advancea nd regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with mvn2, Spring and Hibernate... anyone could help?
I think this may be a problem with Surefire and the way spring uses classloaders : http://jira.codehaus.org/browse/SUREFIRE-340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel If you find a solution please post Thanks Marco Mistroni wrote: hi all, i know i should post this to maven list but it is about spring and i am sure someone here is using maven for building its environment I have an app composed of 3 project: - domain OBjects , contains domain objects used by web and backend project - backend project contains hibernate code - webapp contains webwork code that uses hibernate to access database i have been searching for solutions for not hardcoding hibernate mapping files.. i came across mappingJarLocations where you can specify jars where hbm.xml file are located. this is fine, however i am building my project using maven2 and i am setting the dependency scope for domainObjects.jar on my backend project.. if i use scopetest/scope test will fail because spring won't be able to find hbm.xml file (jar is not in classpath) if i use scopecompile/scope jar won't be in test classpath i was wondering if anyone on this forum came across same situation... here's my spring context... bean id=sessionFactory class= org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=dataSource ref bean=dataSource/ /property property name=mappingJarLocations valueclasspath*:domainObjects-1.0-SNAPSHOT.jar/value /property property name=hibernateProperties ref bean=exampleHibernateProperties / /property /bean thanks in advancea nd regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with mvn2, Spring and Hibernate... anyone could help?
Hello Jon actually it has nothing to do with maven, as i discovered later.. since scope=compile will be visible in the test it has to do with Spring classloading actually.. i'll post a solution here as soon as i finish to try some code i found on the web with kindest regards marco On 7/5/07, Jon SlinnHawkins [EMAIL PROTECTED] wrote: I think this may be a problem with Surefire and the way spring uses classloaders : http://jira.codehaus.org/browse/SUREFIRE-340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel If you find a solution please post Thanks Marco Mistroni wrote: hi all, i know i should post this to maven list but it is about spring and i am sure someone here is using maven for building its environment I have an app composed of 3 project: - domain OBjects , contains domain objects used by web and backend project - backend project contains hibernate code - webapp contains webwork code that uses hibernate to access database i have been searching for solutions for not hardcoding hibernate mapping files.. i came across mappingJarLocations where you can specify jars where hbm.xml file are located. this is fine, however i am building my project using maven2 and i am setting the dependency scope for domainObjects.jar on my backend project.. if i use scopetest/scope test will fail because spring won't be able to find hbm.xml file (jar is not in classpath) if i use scopecompile/scope jar won't be in test classpath i was wondering if anyone on this forum came across same situation... here's my spring context... bean id=sessionFactory class= org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=dataSource ref bean=dataSource/ /property property name=mappingJarLocations valueclasspath*:domainObjects-1.0-SNAPSHOT.jar/value /property property name=hibernateProperties ref bean=exampleHibernateProperties / /property /bean thanks in advancea nd regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with mvn2, Spring and Hibernate... anyone could help?
The problem is with the ability of the JVM to enumerate resources in the root of the classpath when these resources are in jars. The mappingJarLocations property would be used to search through jars that are *not* normally on the classpath, so you shouldn't be using that for WEB-INF/lib jars; in some cases you would cause hibernate to read the mapping files twice, once for the jar on the classpath, and once for the jar in the mappingJarLocations -- they just happen to be the same physical jar. The best fix is to create all the hbm.xml files in a subpackage of src/main/resources -- perhaps com/project/domain; then use a resource pattern like classpath*:/com/project/domain/**/*.hbm.xml. On 7/5/07, Marco Mistroni [EMAIL PROTECTED] wrote: Hello Jon actually it has nothing to do with maven, as i discovered later.. since scope=compile will be visible in the test it has to do with Spring classloading actually.. i'll post a solution here as soon as i finish to try some code i found on the web with kindest regards marco On 7/5/07, Jon SlinnHawkins [EMAIL PROTECTED] wrote: I think this may be a problem with Surefire and the way spring uses classloaders : http://jira.codehaus.org/browse/SUREFIRE-340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel If you find a solution please post Thanks Marco Mistroni wrote: hi all, i know i should post this to maven list but it is about spring and i am sure someone here is using maven for building its environment I have an app composed of 3 project: - domain OBjects , contains domain objects used by web and backend project - backend project contains hibernate code - webapp contains webwork code that uses hibernate to access database i have been searching for solutions for not hardcoding hibernate mapping files.. i came across mappingJarLocations where you can specify jars where hbm.xml file are located. this is fine, however i am building my project using maven2 and i am setting the dependency scope for domainObjects.jar on my backend project.. if i use scopetest/scope test will fail because spring won't be able to find hbm.xml file (jar is not in classpath) if i use scopecompile/scope jar won't be in test classpath i was wondering if anyone on this forum came across same situation... here's my spring context... bean id=sessionFactory class= org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=dataSource ref bean=dataSource/ /property property name=mappingJarLocations valueclasspath*:domainObjects-1.0-SNAPSHOT.jar/value /property property name=hibernateProperties ref bean=exampleHibernateProperties / /property /bean thanks in advancea nd regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems with mvn2, Spring and Hibernate... anyone could help?
hi all, i know i should post this to maven list but it is about spring and i am sure someone here is using maven for building its environment I have an app composed of 3 project: - domain OBjects , contains domain objects used by web and backend project - backend project contains hibernate code - webapp contains webwork code that uses hibernate to access database i have been searching for solutions for not hardcoding hibernate mapping files.. i came across mappingJarLocations where you can specify jars where hbm.xml file are located. this is fine, however i am building my project using maven2 and i am setting the dependency scope for domainObjects.jar on my backend project.. if i use scopetest/scope test will fail because spring won't be able to find hbm.xml file (jar is not in classpath) if i use scopecompile/scope jar won't be in test classpath i was wondering if anyone on this forum came across same situation... here's my spring context... bean id=sessionFactory class= org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=dataSource ref bean=dataSource/ /property property name=mappingJarLocations valueclasspath*:domainObjects-1.0-SNAPSHOT.jar/value /property property name=hibernateProperties ref bean=exampleHibernateProperties / /property /bean thanks in advancea nd regards marco
changes - announcement plugin mvn2
I wonder if I can set the from field for the announcement email. I see there is a from field but that is of type List and I cannot figure it out what should be included. Based on the svn code it actually seems to me that no matter what, the first developer from the developers section will be taken and added to the from field. Is there something I am missing? TIA, Attila Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: changes - announcement plugin mvn2
from the plugin configuration try this plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId configuration from from!-- the email account --/from /from /configuration /plugin On 1/18/07, Attila Mezei-Horvati [EMAIL PROTECTED] wrote: I wonder if I can set the from field for the announcement email. I see there is a from field but that is of type List and I cannot figure it out what should be included. Based on the svn code it actually seems to me that no matter what, the first developer from the developers section will be taken and added to the from field. Is there something I am missing? TIA, Attila Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- == - alramirez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: changes - announcement plugin mvn2
btw, IIRC, you can also use this configuration froms from!-- the email account --/from /froms /configuration On 1/18/07, allan ramirez [EMAIL PROTECTED] wrote: from the plugin configuration try this plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId configuration from from!-- the email account --/from /from /configuration /plugin On 1/18/07, Attila Mezei-Horvati [EMAIL PROTECTED] wrote: I wonder if I can set the from field for the announcement email. I see there is a from field but that is of type List and I cannot figure it out what should be included. Based on the svn code it actually seems to me that no matter what, the first developer from the developers section will be taken and added to the from field. Is there something I am missing? TIA, Attila Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- == - alramirez -- == - alramirez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn2: Failed to validate POM error
Good day to you, Attila, If you are getting that message. Then that means something is wrong for that artifact of yours installed in your pom (when you do mvn install, the package of your project will be copied in your local repository and a .pom file will be generated there as well). Kindly check if you have that .pom file whenever you do the installation. Kindly check if the pom is of the proper format ( based on [1] ). Athough I don't know how it could have an invalid format after instalation, this is just to make sure. Cheers, Franz [1] http://svn.apache.org/repos/asf/maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/validation/DefaultModelValidator.java 4. Parent Id ( groupId artifactId ) of your artifact should not have the same id as the artifact itself. 5. Attila Mezei-Horvati wrote: Deng, I deleted the whole folder with everything in it. I still don't know why is doing it, the war however includes the jar file. For now I decided to keep going with my project. It is annoying to see the warning coming up at every phase while building the package but I will have to live with it for a while so I can meet the deadline. If you have any ideas please let me know. I would like to understand what is wrong with it. thanks, Attila Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/mvn2%3A-Failed-to-validate-POM-error-tf2624318s177.html#a7374342 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn2: Failed to validate POM error
Deng, I deleted the whole folder with everything in it. I still don't know why is doing it, the war however includes the jar file. For now I decided to keep going with my project. It is annoying to see the warning coming up at every phase while building the package but I will have to live with it for a while so I can meet the deadline. If you have any ideas please let me know. I would like to understand what is wrong with it. thanks, Attila Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn2: Failed to validate POM error
I have two projects. One is a jar, second is a war. I run the 'mvn clean install' for the jar and works fine. I can see the files installed in my local .m2/repository. The second project has the dependency on the first: dependency groupIdgroupId/groupId artifactIdprojName/artifactId versionversionNumber/version /dependency where projName is the jar projects id. When I run 'mvn clean package' for this war project, I get a warning at every phase which says: POM for 'projname':compile is invalid. It will be ignored for artifact resolution. Reason: Failed to validate POM. What is this supposed to mean? Is there anybody who could give an advice where to look, how to identify the issue? thanks, Attila Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn2: Failed to validate POM error
Does it actually say: POM for 'projname':compile? with 'projname' in quotes? Note that all IDs are case sensitive also. As a last resort, try deleting the offending project from your local repository, then recompiling. Eric On 11/13/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote: I have two projects. One is a jar, second is a war. I run the 'mvn clean install' for the jar and works fine. I can see the files installed in my local .m2/repository. The second project has the dependency on the first: dependency groupIdgroupId/groupId artifactIdprojName/artifactId versionversionNumber/version /dependency where projName is the jar projects id. When I run 'mvn clean package' for this war project, I get a warning at every phase which says: POM for 'projname':compile is invalid. It will be ignored for artifact resolution. Reason: Failed to validate POM. What is this supposed to mean? Is there anybody who could give an advice where to look, how to identify the issue? thanks, Attila Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eric Redmond http://codehaus.org/~eredmond
Re: mvn2: Failed to validate POM error
Eric, thanks for your reply. So far I couldn't get any closer to the issue. I already tried to delete from my local repo and then reinstall. The error still occurs. I checked the pom itself in the installed package. It is valid xml and seems as a valid pom file to me. This is the exact message: [WARNING] POM for 'com.mycompany:myapp:pom:1.5-5007.0-QA0-SNAPSHOT:compile' is invalid. It will be ignored for artifact resolution. Reason: Failed to validate POM To me this is a meaningless error message. I have no idea what validation failed and where/why. It gives me no help. Just frustration. If you have any hints, please let me know. thanks, Attila Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn2: Failed to validate POM error
Hi Attila, Have you tried deleting the .pom file ((com.mycompany-myapp-1.5-5007.0-QA0-SNAPSHOT.pom) from the repo before you re-installed the artifact or did you delete only the .jar (com.mycompany-myapp-1.5-5007.0-QA0-SNAPSHOT.jar) file? Thanks, Deng Attila Mezei-Horvati wrote: Eric, thanks for your reply. So far I couldn't get any closer to the issue. I already tried to delete from my local repo and then reinstall. The error still occurs. I checked the pom itself in the installed package. It is valid xml and seems as a valid pom file to me. This is the exact message: [WARNING] POM for 'com.mycompany:myapp:pom:1.5-5007.0-QA0-SNAPSHOT:compile' is invalid. It will be ignored for artifact resolution. Reason: Failed to validate POM To me this is a meaningless error message. I have no idea what validation failed and where/why. It gives me no help. Just frustration. If you have any hints, please let me know. thanks, Attila Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn2: dev-activity report
This is a known issue that has been fixed. See http://jira.codehaus.org/browse/MCHANGELOG-49 -- Dennis Lundberg Attila Mezei-Horvati wrote: Hello all, My dev-activity report is empty. It does display this: Range: Wed Sep 27 16:48:29 EDT 2006 to Sat Oct 28 16:48:29 EDT 2006, Total commits:17, Total Number of Files Changed:33 But it will not display the users who did the commits. Can anybody spot the problem? I tried to add version number: 2.0-SNAPSHOT , too. No luck. See the pom part below. thanks, Attila plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changelog-plugin/artifactId reportSets reportSet iddevreport/id configuration typerange/type range30/range /configuration reports reportchangelog/report reportfile-activity/report reportdev-activity/report /reports /reportSet /reportSets /plugin Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates (http://voice.yahoo.com) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn2: dev-activity report
Hello all, My dev-activity report is empty. It does display this: Range: Wed Sep 27 16:48:29 EDT 2006 to Sat Oct 28 16:48:29 EDT 2006, Total commits:17, Total Number of Files Changed:33 But it will not display the users who did the commits. Can anybody spot the problem? I tried to add version number: 2.0-SNAPSHOT , too. No luck. See the pom part below. thanks, Attila plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changelog-plugin/artifactId reportSets reportSet iddevreport/id configuration typerange/type range30/range /configuration reports reportchangelog/report reportfile-activity/report reportdev-activity/report /reports /reportSet /reportSets /plugin Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates (http://voice.yahoo.com) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn2: dev-activity report
Do you have the developers with their id's (matching the SCM username) configured in your POM? I noticed it doesn't report dev-activity for developers not listed in the pom (or in a parent POM). -Stephen On 10/27/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote: Hello all, My dev-activity report is empty. It does display this: Range: Wed Sep 27 16:48:29 EDT 2006 to Sat Oct 28 16:48:29 EDT 2006, Total commits:17, Total Number of Files Changed:33 But it will not display the users who did the commits. Can anybody spot the problem? I tried to add version number: 2.0-SNAPSHOT , too. No luck. See the pom part below. thanks, Attila plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changelog-plugin/artifactId reportSets reportSet iddevreport/id configuration typerange/type range30/range /configuration reports reportchangelog/report reportfile-activity/report reportdev-activity/report /reports /reportSet /reportSets /plugin Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates (http://voice.yahoo.com) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn2 checking snapshot version for maven plugins?
Hi, While running my maven build I saw this in the output: snapshot org.apache.maven.plugins:maven-site-plugin:2.0-SNAPSHOT: checking for updates from... and snapshot org.apache.maven:maven-parent:4-SNAPSHOT: checking for updates from snapshots I am confused. I have nowhere included maven-site-plugin or maven-parent as dependency with a snapshot version. Why does it still try to download as a snapshot? (i checked the effective pom and didn't see it included in that one neither) It is also frustrating because at least today, keeps ending up with I/O error and the whole build fails. Can anybody explain to me what is going on? I have two snapshot repositories included in my repository management section: urlhttp://snapshots.maven.codehaus.org/maven2//url and urlhttp://people.apache.org/maven-snapshot-repository//url But I don't see why that would be an issue. thanks, Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn2 checking snapshot version for maven plugins?
grep for SNAPSHOT in your local repository pom.xml files to see if you can find out who has the dependency: cd local repos grep SNAPSHOT `find . -name '*.pom'` also, looks like the public snapshot repository is still down. -Russ Hi, While running my maven build I saw this in the output: snapshot org.apache.maven.plugins:maven-site-plugin:2.0-SNAPSHOT: checking for updates from... and snapshot org.apache.maven:maven-parent:4-SNAPSHOT: checking for updates from snapshots I am confused. I have nowhere included maven-site-plugin or maven-parent as dependency with a snapshot version. Why does it still try to download as a snapshot? (i checked the effective pom and didn't see it included in that one neither) It is also frustrating because at least today, keeps ending up with I/O error and the whole build fails. Can anybody explain to me what is going on? I have two snapshot repositories included in my repository management section: urlhttp://snapshots.maven.codehaus.org/maven2//url and urlhttp://people.apache.org/maven-snapshot-repository//url But I don't see why that would be an issue. thanks, Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn2: eclipse project generation
I am the final phase of the ant 2 maven project. I think. :) I am now trying to put the projects into an eclipse workspace and I run into the following problem: Project A/pom.xml and has a bunch of submodules Project B/pom.xml and has a bunch of submodules. I can run eclipse:eclips on A,B and i will get the project files for all the submodules. However I can't figure it out how can I add the two projects to one eclipse workspace. I can create two workspaces and add the projects as workspace A/ project 1,2,3 and workspace B/ project 1,2,3. But I cannot add them to the same workspace. I cannot do WORKSPACE/ all modules here since project a/pom.xml would overwrite project b/pom.xml (they are in the root). I don't want to move them to a flat structure because that I understand is not supported in the release plugin. So: what can I do? thanks, Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn2 release:prepare not creating tag in svn
I have a project as: Project/pom.xml Project/code/pom.xml -- type: jar Project/code2/pom.xml -- type: jar (depends on code.jar) Project/webapp/pom.xml -- type: war (depends on code.jar and code2.jar) If I run the commands: mvn release:prepare -DdryRun=true mvn release:prepare they run correctly, saying everything is ok. dryRun version tells me, that when running live, it will commit files to svn under a new tag. When I run mvn release:prepare however it does not commit/create a release tag in svn. It does not give any error either. What I observer is that if I do mvn release:prepare -Dresume=false at this point, it will create the tag in svn as expected. I did not met this behaviour before (I had both multi project poms and simple project poms). Any idea what is causing it? I cannot seem to find anything about it on the net. I have this in the main pom.xml: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-release-plugin/artifactId configuration goalsdeploy/goals tagBasesvn://[path to svn]/releases/tagBase /configuration /plugin thanks, Attila - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn2: specified profile ignored
I have a multi-module project: main/pom.xml main/profile.xml main/code1/pom.xml main/code2/pom.xml main/webapp/pom.xml As you can see, I have a profile.xml in the main folder. I have about 5 profiles defined in it such as: profile idskipunittest/id properties maven.test.skiptrue/maven.test.skip /properties /profile Whenever I try to run maven, such as: mvn clean package -P profile1,profile2 the profile selection is ignored and *all* profiles are used. For example, skipunittest will be enabled even though I had not selected it and tests will be skipped. What is causing this? I just don't get it. -e is not giving me any help either. Attila - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn2: specified profile ignored
You can use: mvn help:active-profiles to see what profiles are injected for which projects. If you feel this is not working according to the profiles you've specified explicitly (and you're not using activation/ anywhere), then please file a MNG issue: http://jira.codehaus.org/browse/MNG and attach a sample project hierarchy to illustrate your problem. If you reply with a MNG id, I'll take a look. Thanks, John On 10/12/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote: I have a multi-module project: main/pom.xml main/profile.xml main/code1/pom.xml main/code2/pom.xml main/webapp/pom.xml As you can see, I have a profile.xml in the main folder. I have about 5 profiles defined in it such as: profile idskipunittest/id properties maven.test.skiptrue/maven.test.skip /properties /profile Whenever I try to run maven, such as: mvn clean package -P profile1,profile2 the profile selection is ignored and *all* profiles are used. For example, skipunittest will be enabled even though I had not selected it and tests will be skipped. What is causing this? I just don't get it. -e is not giving me any help either. Attila - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn2: build release
Make a pom which has a list of modules of those projects: modules moduleggg-war/module moduleggg-ear/module ... It will find out the order in which to build them etc. This pom is best to be in a directory above the others: ggg/ pom.xml ggg-war/ pom.xml ggg-ear pom.xml and most likely you 'll want to let the modules inherit that pom, making it a parent pom See the free m2 book (see site), there is a chapter about it. Attila Mezei-Horvati wrote, On 2006-10-10 12:39 AM: I am about to finish the port from ant to maven of our project. As a result, I have now a structure of projects, with each one of them having their own pom file. I was wondering how can I do a mvn clean compile/package/install/release from the project main pom so that all dependent projects get a clean recompile. It seems to me that I would need to go to each pom and have them re-compiled. Is there a way to tell maven to recompile all dependent snapshot projects? thanks, Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- With kind regards, Geoffrey De Smet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn2: build release
I am about to finish the port from ant to maven of our project. As a result, I have now a structure of projects, with each one of them having their own pom file. I was wondering how can I do a mvn clean compile/package/install/release from the project main pom so that all dependent projects get a clean recompile. It seems to me that I would need to go to each pom and have them re-compiled. Is there a way to tell maven to recompile all dependent snapshot projects? thanks, Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn2: war targetPath
I run into the same issue... any idea when version 2.0.2 will be released? Or better yet... how do I compile and dist (locally) this plugin myself? I downloaded and tried to build it, but there is a unresolved dependency: [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven-plugins Version: 2-SNAPSHOT So where do I get this plugin from? Thanks, Christoph. Brad Szabo wrote: This appears to have been fixed in maven-war-plugin-2.0.2 2.0.2 has not yet been released, but you can check out the trunk (2.0.2-SNAPSHOT) using svn checkout http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-war-plugin maven-war-plugin JIRA Issue: http://jira.codehaus.org/browse/MWAR-54 Note: I had to modify the maven-plugins parent pom version to be 2, instead of 2-SNAPSHOT. I then installed locally and updated the dependency version for maven-war-plugin in my project pom to 2.0.2-SNAPSHOT. Hope this helps, Brad Attila Mezei-Horvati wrote: TargetPath is not taken into account. Resources are copied in the webroot no matter what. Did anybody have the same issue? (see also mail below). thanks, Attila --- Attila Mezei-Horvati [EMAIL PROTECTED] wrote: I am trying to include a jar into the war file. I found on the site a parameter named 'targetPath' that could help me. Unfortunately it is not working for me. Can anybody point out my mistake, please. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration archiveClassestrue/archiveClasses webResources resource directorysrc/directory includes includexmltypes.jar/include /includes targetPathWEB-INF/lib/targetPath /resource /webResources /configuration /plugin No matter what I do, the jar always is copied into the webroot. I tried with xml files and only to the WEB-INF dir that didn't work either. Am I missing something? thanks, Attila - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Re%3A-mvn2%3A-war-targetPath-tf2259384.html#a6428446 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn2: war targetPath
Christoph wrote: I run into the same issue... any idea when version 2.0.2 will be released? Or better yet... how do I compile and dist (locally) this plugin myself? I downloaded and tried to build it, but there is a unresolved dependency: [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven-plugins Version: 2-SNAPSHOT So where do I get this plugin from? Thanks, Christoph. Brad Szabo wrote: This appears to have been fixed in maven-war-plugin-2.0.2 2.0.2 has not yet been released, but you can check out the trunk (2.0.2-SNAPSHOT) using svn checkout http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-war-plugin maven-war-plugin JIRA Issue: http://jira.codehaus.org/browse/MWAR-54 Note: I had to modify the maven-plugins parent pom version to be 2, instead of 2-SNAPSHOT. I then installed locally and updated the dependency version for maven-war-plugin in my project pom to 2.0.2-SNAPSHOT. Hope this helps, Brad Attila Mezei-Horvati wrote: TargetPath is not taken into account. Resources are copied in the webroot no matter what. Did anybody have the same issue? (see also mail below). thanks, Attila --- Attila Mezei-Horvati [EMAIL PROTECTED] wrote: I am trying to include a jar into the war file. I found on the site a parameter named 'targetPath' that could help me. Unfortunately it is not working for me. Can anybody point out my mistake, please. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration archiveClassestrue/archiveClasses webResources resource directorysrc/directory includes includexmltypes.jar/include /includes targetPathWEB-INF/lib/targetPath /resource /webResources /configuration /plugin No matter what I do, the jar always is copied into the webroot. I tried with xml files and only to the WEB-INF dir that didn't work either. Am I missing something? thanks, Attila - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Good day to you, Christoph, The maven2 snapshot 2 repository is in [1]. Cheers, Franz [1] http://people.apache.org/maven-snapshot-repository/ -- View this message in context: http://www.nabble.com/Re%3A-mvn2%3A-war-targetPath-tf2259384.html#a6438472 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn2: faq - fml format
Is there a way to disable to ordering in the index for a faq? Currently my questions index is made as: 1. what is... 2. why is ... I would like to just have what is ... why is ... Is there a way to do that? thanks, Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn2: war targetPath
This appears to have been fixed in maven-war-plugin-2.0.2 2.0.2 has not yet been released, but you can check out the trunk (2.0.2-SNAPSHOT) using svn checkout http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-war-plugin maven-war-plugin JIRA Issue: http://jira.codehaus.org/browse/MWAR-54 Note: I had to modify the maven-plugins parent pom version to be 2, instead of 2-SNAPSHOT. I then installed locally and updated the dependency version for maven-war-plugin in my project pom to 2.0.2-SNAPSHOT. Hope this helps, Brad Attila Mezei-Horvati wrote: TargetPath is not taken into account. Resources are copied in the webroot no matter what. Did anybody have the same issue? (see also mail below). thanks, Attila --- Attila Mezei-Horvati [EMAIL PROTECTED] wrote: I am trying to include a jar into the war file. I found on the site a parameter named 'targetPath' that could help me. Unfortunately it is not working for me. Can anybody point out my mistake, please. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration archiveClassestrue/archiveClasses webResources resource directorysrc/directory includes includexmltypes.jar/include /includes targetPathWEB-INF/lib/targetPath /resource /webResources /configuration /plugin No matter what I do, the jar always is copied into the webroot. I tried with xml files and only to the WEB-INF dir that didn't work either. Am I missing something? thanks, Attila - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: mvn2: war packaging
Hi! I had more or less the same problem as you. One of the solutions is to create a project based on modules. You just have to create a parent pom with: modules modulemodule_for_jar/module modulemodule_for_war/module /modules Then, you have to create two subfolders with the same name as the modules and with the m2 folder structure, each one with its own pom. Now you just have to have in one pom a jar packaging, and in the other a war packaging. The last thing to do is to include the dependency of the jar created in the jar module in the pom.xml of the war module. That´s one solution and it works to me. Be sure your jar module is declared first, and second, declare your war module. I hope I had helped you -- View this message in context: http://www.nabble.com/mvn2%3A-war-packaging-tf2186390.html#a6078489 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: mvn2: war packaging
I might be missing what you're trying to do here, and it seems to me that creating a multi-module project, as suggested, would be the best way to go about this. However, what if you bound your source generation to the generate-sources phase. I'm not sure of how it would be done in ant, but I know that you can then add the generated sources to the list of files to compile in the compile phase and then they should be included in your WEB-INF/classes directory in the war file. They won't be in a jar, but they'll be in your war. (and you can DEFINITELY guarantee that they will be generated before the war is created - it seems that they are getting generated after the war because you are binding to the packaging phase, which is meant to actually package, and plugin order within a phase is undefined...) I found an article that mentions doing this with a hibernate ant task here: http://www.onjava.com/pub/a/onjava/2005/12/14/hibernate-class-generation-with-hbm2java.html?page=4 Maybe this will be helpful? On 8/31/06, chua [EMAIL PROTECTED] wrote: Hi! I had more or less the same problem as you. One of the solutions is to create a project based on modules. You just have to create a parent pom with: modules modulemodule_for_jar/module modulemodule_for_war/module /modules Then, you have to create two subfolders with the same name as the modules and with the m2 folder structure, each one with its own pom. Now you just have to have in one pom a jar packaging, and in the other a war packaging. The last thing to do is to include the dependency of the jar created in the jar module in the pom.xml of the war module. That´s one solution and it works to me. Be sure your jar module is declared first, and second, declare your war module. I hope I had helped you -- View this message in context: http://www.nabble.com/mvn2%3A-war-packaging-tf2186390.html#a6078489 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: mvn2: war packaging
Thanks to everybody who helped with ideas for the war packaging. I think the two best solutions are: 1. multi-module project 2. generate-sources phase. I actually like the best number 2, because we include in our classes the ones which are generated so i would like to keep them in the same module. As such I will look into implementing that one. thanks again, Attila Date: Thu, 31 Aug 2006 08:54:31 -0400 From: Jared Bunting [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Subject: Re: Re: mvn2: war packaging I might be missing what you're trying to do here, and it seems to me that creating a multi-module project, as suggested, would be the best way to go about this. However, what if you bound your source generation to the generate-sources phase. I'm not sure of how it would be done in ant, but I know that you can then add the generated sources to the list of files to compile in the compile phase and then they should be included in your WEB-INF/classes directory in the war file. They won't be in a jar, but they'll be in your war. (and you can DEFINITELY guarantee that they will be generated before the war is created - it seems that they are getting generated after the war because you are binding to the packaging phase, which is meant to actually package, and plugin order within a phase is undefined...) I found an article that mentions doing this with a hibernate ant task here: http://www.onjava.com/pub/a/onjava/2005/12/14/hibernate-class-generation-with-hbm2java.html?page=4 Maybe this will be helpful? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn2: specify parent for site.xml
I understand I could setup inheritance for a site.xml file. I could inherit menus and other parts. However I wasn't able to find how can I specify the parent site.xml. Also: a. is there a way to specify what gets inherited and what not? b. is there something like super (for ex. I inherit the parent menus and add some of my own)? thanks, Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: mvn2: war packaging
From: Henry S. Isidro [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Subject: Re: mvn2: war packaging Date: Wed, 30 Aug 2006 07:43:56 +0800 If you're trying to include a jar in the lib folder of a war package, just declare the jar file as a dependency in the war's pom file. This will make maven automatically put it in the lib folder during packaging. - Henry The problem is I am creating the jar file during the war compilation. As I know, I can specify dependency only for another pom jar package. However I am running an ant task to generate code from xsd files and compiling it. I was hoping I don't have to move it out to a separate project; I can keep it in this project and just copy it. Unfortunately copy works _after_ the war is created and I don't know how to specify the order (first copy then war). I also tried to add it as web resource with a targetPath option. Unfortunately that doesn't work either. Any ideas? thanks, Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn2: war targetPath
TargetPath is not taken into account. Resources are copied in the webroot no matter what. Did anybody have the same issue? (see also mail below). thanks, Attila --- Attila Mezei-Horvati [EMAIL PROTECTED] wrote: I am trying to include a jar into the war file. I found on the site a parameter named 'targetPath' that could help me. Unfortunately it is not working for me. Can anybody point out my mistake, please. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration archiveClassestrue/archiveClasses webResources resource directorysrc/directory includes includexmltypes.jar/include /includes targetPathWEB-INF/lib/targetPath /resource /webResources /configuration /plugin No matter what I do, the jar always is copied into the webroot. I tried with xml files and only to the WEB-INF dir that didn't work either. Am I missing something? thanks, Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: mvn2: war packaging
Attila Mezei-Horvati wrote: From: Henry S. Isidro [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Subject: Re: mvn2: war packaging Date: Wed, 30 Aug 2006 07:43:56 +0800 If you're trying to include a jar in the lib folder of a war package, just declare the jar file as a dependency in the war's pom file. This will make maven automatically put it in the lib folder during packaging. - Henry The problem is I am creating the jar file during the war compilation. As I know, I can specify dependency only for another pom jar package. However I am running an ant task to generate code from xsd files and compiling it. I was hoping I don't have to move it out to a separate project; I can keep it in this project and just copy it. Unfortunately copy works _after_ the war is created and I don't know how to specify the order (first copy then war). I also tried to add it as web resource with a targetPath option. Unfortunately that doesn't work either. Any ideas? thanks, Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Good day to you, Attila, Specifying to include that jar file using webResouces should have worked. However, there is a known bug that sometimes, webResources does not work. You may want to take a look at [1] and try and apply patch2 to your maven-war-plugin and see if your webResources would then work. Cheers, Franz [1] http://jira.codehaus.org/browse/MWAR-67 -- View this message in context: http://www.nabble.com/mvn2%3A-war-packaging-tf2186390.html#a6062426 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: mvn2: war packaging
On 8/30/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote: From: Henry S. Isidro [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Subject: Re: mvn2: war packaging Date: Wed, 30 Aug 2006 07:43:56 +0800 If you're trying to include a jar in the lib folder of a war package, just declare the jar file as a dependency in the war's pom file. This will make maven automatically put it in the lib folder during packaging. - Henry The problem is I am creating the jar file during the war compilation. As I know, I can specify dependency only for another pom jar package. However I am running an ant task to generate code from xsd files and compiling it. I was hoping I don't have to move it out to a separate project; I can keep it in this project and just copy it. Unfortunately copy works _after_ the war is created and I don't know how to specify the order (first copy then war). I also tried to add it as web resource with a targetPath option. Unfortunately that doesn't work either. Is there a specific reason for having those files in jar? If not, I think you may add directory, where you create your files as 'resource' and files will be copied into 'WEB-INF/classes' folder. And yes - the best option will be to create separate subproject. Regards, Tomek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn2: war packaging
Hi, Slowly I understand the life cycles but still not sure in what order are their components run. My problem: I have a war package, in it I specify an ant task at the package phase to copy a jar into the lib so the war would take it. For some reason the copy is done after the war creation. Can somebody tell me why? thanks, Attila execution idpackaging/id phasepackage/phase configuration tasks copy todir=target/matrix/WEB-INF/lib fileset dir=targetinclude name=sxmltypes.jar //fileset /copy /tasks /configuration goals goalrun/goal /goals /execution __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn2: war targetPath
I am trying to include a jar into the war file. I found on the site a parameter named 'targetPath' that could help me. Unfortunately it is not working for me. Can anybody point out my mistake, please. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration archiveClassestrue/archiveClasses webResources resource directorysrc/directory includes includexmltypes.jar/include /includes targetPathWEB-INF/lib/targetPath /resource /webResources /configuration /plugin No matter what I do, the jar always is copied into the webroot. I tried with xml files and only to the WEB-INF dir that didn't work either. Am I missing something? thanks, Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn2: war packaging
On Wednesday, August 30, 2006 05:32, Attila Mezei-Horvati wrote: Hi, Slowly I understand the life cycles but still not sure in what order are their components run. My problem: I have a war package, in it I specify an ant task at the package phase to copy a jar into the lib so the war would take it. For some reason the copy is done after the war creation. Can somebody tell me why? thanks, Attila execution idpackaging/id phasepackage/phase configuration tasks copy todir=target/matrix/WEB-INF/lib fileset dir=targetinclude name=sxmltypes.jar //fileset /copy /tasks /configuration goals goalrun/goal /goals /execution If you're trying to include a jar in the lib folder of a war package, just declare the jar file as a dependency in the war's pom file. This will make maven automatically put it in the lib folder during packaging. - Henry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
converting existing eclipse (RAD) project to mvn2 'structure'
hi all , i am in the process of using maven for converting an existing RAD project to be use diwth Maven. My biggest problem is that in my src directory i have both java classes, properties and other 'resources' that will be read by the code from classpath. so, i have folloiwng structure src |__ com |__ properties |__ resources i don't know how to specify resource directory in my pom.xml, since i have 2 directories to include (properties and resources) is there a way to do that withouth resorting to an ant task to create a new fake directory and move content of both directories in the fake? any help? thanks and regards marco
xdoclet- mvn2 dilemma when generating sources
hi all, i m currently using xdoclet for generating sources for my EJBs.. problem is, my project is a Multi-Project. its structure is as follows MyProject | EJB1 | EJB2 i m generating sources for both EJB1 project and EJB2 project issue is that one of the beans in EJB2 has to have a reference to one of the beans of EJB1. for example, in EJB1 i have a bean named 'Contact', and in EJB2 one of the ejbs has a reference to my 'Contact' bean when generating sources in EJB2, XDoclete raises the following error [ERROR] BUILD ERROR [INFO] [INFO] Error executing ant tasks Embedded error: Unexpected error No such EJB defined: Contact [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant tasks at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing ant tasks at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks( AbstractAntMojo.java:77) at org.codehaus.mojo.xdoclet.XDocletMojo.execute(XDocletMojo.java:102) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:534) ... 16 more Caused by: Unexpected error at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:118) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks( AbstractAntMojo.java:71) ... 19 more Caused by: XDoclet failed. at xdoclet.DocletTask.start(DocletTask.java:471) at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:105) ... 23 more Caused by: xdoclet.XDocletException: No such EJB defined: Contact at xdoclet.modules.ejb.env.EnvEjbRefTagsHandler.findEjb( EnvEjbRefTagsHandler.java:392) at xdoclet.modules.ejb.env.EnvEjbRefTagsHandler.doGenerate( EnvEjbRefTagsHandler.java:312) at xdoclet.modules.ejb.env.EnvTagsHandler.forTagsInternal( EnvTagsHandler.java:531) at xdoclet.modules.ejb.env.EnvTagsHandler.forTags(EnvTagsHandler.java :451) at xdoclet.modules.ejb.env.EnvEjbRefTagsHandler.forAllEjbRefs( EnvEjbRefTagsHandler.java:79) at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:641) at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:540) at xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngine.java :965) at xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java :932) at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:472) at xdoclet.template.TemplateEngine.generate(TemplateEngine.java:348) at xdoclet.XDocletTagSupport.generate(XDocletTagSupport.java:742) at xdoclet.tagshandler.MergeTagsHandler.generateUsingMergedFile( MergeTagsHandler.java:297) at xdoclet.tagshandler.MergeTagsHandler.merge(MergeTagsHandler.java:120) at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585)
Re: xdoclet- mvn2 dilemma when generating sources / solved
hi all, sorry, myfault.. shouldnt have bothered the list but done some research on my own instead. Found a JIRA, solution is to use @ejb:ejb-external-ref sorry for bothering regards marco On 8/9/06, Marco Mistroni [EMAIL PROTECTED] wrote: hi all, i m currently using xdoclet for generating sources for my EJBs.. problem is, my project is a Multi-Project. its structure is as follows MyProject | EJB1 | EJB2 i m generating sources for both EJB1 project and EJB2 project issue is that one of the beans in EJB2 has to have a reference to one of the beans of EJB1. for example, in EJB1 i have a bean named 'Contact', and in EJB2 one of the ejbs has a reference to my 'Contact' bean when generating sources in EJB2, XDoclete raises the following error [ERROR] BUILD ERROR [INFO] [INFO] Error executing ant tasks Embedded error: Unexpected error No such EJB defined: Contact [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException : Error executing ant tasks at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle( DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures( DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute ( DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main (MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke ( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch (Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException : Error executing ant tasks at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks( AbstractAntMojo.java:77) at org.codehaus.mojo.xdoclet.XDocletMojo.execute(XDocletMojo.java:102) at org.apache.maven.plugin.DefaultPluginManager.executeMojo ( DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:534) ... 16 more Caused by: Unexpected error at xjavadoc.ant.XJavadocTask.execute (XJavadocTask.java:118) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java :275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks( AbstractAntMojo.java:71) ... 19 more Caused by: XDoclet failed. at xdoclet.DocletTask.start(DocletTask.java:471) at xjavadoc.ant.XJavadocTask.execute (XJavadocTask.java:105) ... 23 more Caused by: xdoclet.XDocletException: No such EJB defined: Contact at xdoclet.modules.ejb.env.EnvEjbRefTagsHandler.findEjb( EnvEjbRefTagsHandler.java:392) at xdoclet.modules.ejb.env.EnvEjbRefTagsHandler.doGenerate ( EnvEjbRefTagsHandler.java:312) at xdoclet.modules.ejb.env.EnvTagsHandler.forTagsInternal( EnvTagsHandler.java:531) at xdoclet.modules.ejb.env.EnvTagsHandler.forTags(EnvTagsHandler.java :451) at xdoclet.modules.ejb.env.EnvEjbRefTagsHandler.forAllEjbRefs ( EnvEjbRefTagsHandler.java:79) at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:585) at xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:641) at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java :540) at xdoclet.template.TemplateEngine.invokeBlockMethod ( TemplateEngine.java:965) at xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java :932) at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:472) at xdoclet.template.TemplateEngine.generate (TemplateEngine.java:348) at xdoclet.XDocletTagSupport.generate(XDocletTagSupport.java:742) at xdoclet.tagshandler.MergeTagsHandler.generateUsingMergedFile(
Re: mvn2, dependincies, javadoc plugin and links...
am i missing something here? i may be exposing my relative newness to maven, but why doesn't the javadoc plugin operate on transitive dependencies the same way that the compiler plugin does? -- View this message in context: http://www.nabble.com/mvn2%2C-dependincies%2C-javadoc-plugin-and-links...-tf1446358.html#a5205989 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mvn2, dependincies, javadoc plugin and links...
It has been requested in several forms. I posted a JIRA (MNG-1732) that had a means to provide this kind of information. It was intended to solve two problems: -- Packaging of WAR dependencies in an EAR (putting the dependency in the EAR's package instead of the WAR) without requiring that the dependency be listed in the EAR -- Providing a means for extra information about a dependency for use inside plugins (in my case, it was the location to install the jar in the RPM) The answer I basically got was go jump in a lake. Well, Brett was more polite than that. The gist of the argument, as I recall, was that the devs got rid of attaching properties to dependencies because they caused problems. The RPM plugin has been stalled because I have been trying to come up with a way to collect the packaging information for dependencies without the user needing to define the whole dependency.../dependency information twice (once for Maven, once in the plugin configuration to define packaging). -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, April 13, 2006 19:29 To: Maven Users List Subject: Re: mvn2, dependincies, javadoc plugin and links... This feature has certainly been requested (should be in jira somewhere), but is not currently implemented. - Brett On 4/14/06, Jules Gosnell [EMAIL PROTECTED] wrote: I was thinking... My pom.xml has a load of explicit dependencies which are used to form the classpath. My javadoc-plugin clause has a load of links which correspond to the same dependencies. How about having e.g. a javadoc-url sub-elt in each dependency that the javadoc-plugin could read and automatically (if e.g. automagic-linking=true) . This would ensure that deps and links were consistant with each other and would probably result in much better javadoc linkage... Of course, this may have already been done - if so, what is the syntax ? Thanks for your time, Jules -- Open Source is a self-assembling organism. You dangle a piece of string into a super-saturated solution and a whole operating-system crystallises out around it. /** * Jules Gosnell * Partner * Core Developers Network (Europe) * *www.coredevelopers.net * * Open Source Training Support. **/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn2, dependincies, javadoc plugin and links...
In this case, the information should not go on every dependency, but in the POM of the project so that it is only ever specified once, so its not really a dependency properties issue. As for that old chestnut, it's not a matter of go jump in the lake, but more the solution's on the other side, here's a paddle. Specifying the dependencies in the plugin configuration should be less than or equal to the verbosity of putting it in properties. For example: dependency group / artifact / version properties rpm.bundle.../rpm.bundle /properties /dependency vs dependency g /a /v /dependency configuration bundledDependencies bundledDependencygroup:artifactId/bundledDependency /bundledDependencies /configuration ... The saving grows as you add dependencies, and the standard method is to pick a standard set, and only include/exclude on top of that, reducing the number necessary to give even further. I'll more than happily add dependency properties the day someone can show a case where a) the above doesn't work b) their alternate solution works for transitive dependencies brought in. :) I may well be missing something, but I don't remember any cases where this has been shown yet. Cheers, Brett On 4/14/06, Allison, Bob [EMAIL PROTECTED] wrote: It has been requested in several forms. I posted a JIRA (MNG-1732) that had a means to provide this kind of information. It was intended to solve two problems: -- Packaging of WAR dependencies in an EAR (putting the dependency in the EAR's package instead of the WAR) without requiring that the dependency be listed in the EAR -- Providing a means for extra information about a dependency for use inside plugins (in my case, it was the location to install the jar in the RPM) The answer I basically got was go jump in a lake. Well, Brett was more polite than that. The gist of the argument, as I recall, was that the devs got rid of attaching properties to dependencies because they caused problems. The RPM plugin has been stalled because I have been trying to come up with a way to collect the packaging information for dependencies without the user needing to define the whole dependency.../dependency information twice (once for Maven, once in the plugin configuration to define packaging). -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, April 13, 2006 19:29 To: Maven Users List Subject: Re: mvn2, dependincies, javadoc plugin and links... This feature has certainly been requested (should be in jira somewhere), but is not currently implemented. - Brett On 4/14/06, Jules Gosnell [EMAIL PROTECTED] wrote: I was thinking... My pom.xml has a load of explicit dependencies which are used to form the classpath. My javadoc-plugin clause has a load of links which correspond to the same dependencies. How about having e.g. a javadoc-url sub-elt in each dependency that the javadoc-plugin could read and automatically (if e.g. automagic-linking=true) . This would ensure that deps and links were consistant with each other and would probably result in much better javadoc linkage... Of course, this may have already been done - if so, what is the syntax ? Thanks for your time, Jules -- Open Source is a self-assembling organism. You dangle a piece of string into a super-saturated solution and a whole operating-system crystallises out around it. /** * Jules Gosnell * Partner * Core Developers Network (Europe) * *www.coredevelopers.net * * Open Source Training Support. **/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn2, dependincies, javadoc plugin and links...
I was thinking... My pom.xml has a load of explicit dependencies which are used to form the classpath. My javadoc-plugin clause has a load of links which correspond to the same dependencies. How about having e.g. a javadoc-url sub-elt in each dependency that the javadoc-plugin could read and automatically (if e.g. automagic-linking=true) . This would ensure that deps and links were consistant with each other and would probably result in much better javadoc linkage... Of course, this may have already been done - if so, what is the syntax ? Thanks for your time, Jules -- Open Source is a self-assembling organism. You dangle a piece of string into a super-saturated solution and a whole operating-system crystallises out around it. /** * Jules Gosnell * Partner * Core Developers Network (Europe) * *www.coredevelopers.net * * Open Source Training Support. **/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn2, dependincies, javadoc plugin and links...
This feature has certainly been requested (should be in jira somewhere), but is not currently implemented. - Brett On 4/14/06, Jules Gosnell [EMAIL PROTECTED] wrote: I was thinking... My pom.xml has a load of explicit dependencies which are used to form the classpath. My javadoc-plugin clause has a load of links which correspond to the same dependencies. How about having e.g. a javadoc-url sub-elt in each dependency that the javadoc-plugin could read and automatically (if e.g. automagic-linking=true) . This would ensure that deps and links were consistant with each other and would probably result in much better javadoc linkage... Of course, this may have already been done - if so, what is the syntax ? Thanks for your time, Jules -- Open Source is a self-assembling organism. You dangle a piece of string into a super-saturated solution and a whole operating-system crystallises out around it. /** * Jules Gosnell * Partner * Core Developers Network (Europe) * *www.coredevelopers.net * * Open Source Training Support. **/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]