Re: Maven release:prepare and NOT creating SNAPSHOTs
On Tue, Jun 21, 2011 at 9:14 AM, Wendy Smoak wrote: > On Mon, Jun 20, 2011 at 3:46 PM, Neil Hart wrote: >> I would like to run release:prepare without creating a new development >> version. I don't always know the next version number when versioning the >> current build. Later I could run release:branch (perhaps). This is using >> Maven 2.2.1. > > Did you try setting developmentVersion? That seems to control the > 'next snapshot'. > http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html > > FWIW I think it's a valid request. Sometimes I have 1.0-SNAPSHOT and > I release 1.0-test then go back to 1.0-SNAPSHOT. I can test the > release process without disrupting the developers. Ahh fair enough. I assumed that he would be releasing the non snapshot version, not choosing a new version like your example, which makes sense to do. If this is what he is doing, and he is running release:prepare incrementally you can always just type in the version number you want. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven release:prepare and NOT creating SNAPSHOTs
On Mon, Jun 20, 2011 at 3:46 PM, Neil Hart wrote: > I would like to run release:prepare without creating a new development > version. I don't always know the next version number when versioning the > current build. Later I could run release:branch (perhaps). This is using > Maven 2.2.1. Did you try setting developmentVersion? That seems to control the 'next snapshot'. http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html FWIW I think it's a valid request. Sometimes I have 1.0-SNAPSHOT and I release 1.0-test then go back to 1.0-SNAPSHOT. I can test the release process without disrupting the developers. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven release:prepare and NOT creating SNAPSHOTs
On Tue, Jun 21, 2011 at 5:16 AM, Neil Hart wrote: > I would like to run release:prepare without creating a new development > version. I don't always know the next version number when versioning the > current build. Later I could run release:branch (perhaps). This is using > Maven 2.2.1. > > I've tried a few of the properties in the release plugin without success. > Do I need to override the maven-release-manager some how? Can this be > done? The next snapshot is just a best guess at the version number. It doesn't really mean anything definite. I'm not sure why you are trying to do this. At release time, or some time later in development you might decide that your change set requires a change in the major or minor version numbers (i.e. its not just a patch update) See http://semver.org/ The best guess that maven-release-plugin uses is the version number (Major.Minor.Patch) upgraded to Patch+1-SNAPSHOT What you DEFINITELY don't want to do is NOT increase the version number. Once you release your artifact it SHALL NEVER CHANGE. If its borked, you need to spin a new release but never override the just released one. If you want to give some sort of "QA" or sanity check on a release before letting it loose in the wild, then you need to consider a repository manager that uses a staging area. You release to the staging area, the people doing the sanity check pull in from your temporary staging area, do their checks, and once the green light is given the artifact is promoted out of staging into the proper release area. This lets you re-spin with the same version number because you never publicly released the artifact. Hopefully this helps. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: With the maven-release-plugin, how to branch a module and its children ?
2011/6/21 Frédéric Conrotte : > Hello > > Say you have a module named "parent" which has 2 childs "childA" and "ChildB" > > If I run > mvn release:branch -DbranchName=my-branch > in the "parent" folder, it will branch the parent module code to SVN > /branches/my-branch WITHOUT the 2 child modules. > > I would like release:branch to branch the parent module and all its children > to > . /branches/my-branch/parent > . /branches/my-branch/childA > . /branches/my-branch/childB > > I didn't found any solution in the doc yet: > . http://maven.apache.org/plugins/maven-release-plugin/branch-mojo.html > . http://maven.apache.org/plugins/maven-release-plugin/examples/branch.html > > Is it feasible ? Or do I have to run the command for every module I want to > branch ? > > Any help would be appreciated, thanks We run the branch command manually. I've never tried getting the release plugin to do this for us. And as Nick suggests, move your parent one directory higher. While Maven allows a Flat structure, there are lots of hidden gotchas because a Hierarchy is really implied internally. Perhaps you are running into one of these. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven release:prepare and NOT creating SNAPSHOTs
I would like to run release:prepare without creating a new development version. I don't always know the next version number when versioning the current build. Later I could run release:branch (perhaps). This is using Maven 2.2.1. I've tried a few of the properties in the release plugin without success. Do I need to override the maven-release-manager some how? Can this be done? Thanks Neil
Re: xml file is invalid.
As a recommendation, do not paste logs or config files in a mailing list. It is very annoying and it is unreadable. Use a paste service as pastebin or github's gists. Regards On Mon, Jun 20, 2011 at 12:22 PM, Wayne Fay wrote: > > I found this shouldn't be happened, as this example is one of the spring > > examples I downloaded from spring website. > > > > The example is spring 3 with maven build. > > This is not the Spring support list. This is the Maven user list. > > Please post your question to the proper Spring group. > > Wayne > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Those who do not understand Unix are condemned to reinvent it, poorly. Any sufficiently recent Microsoft OS contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Unix.
maven 3.0.3 out of memory error, version ranges, lots of maven meta downloads
Below is some filtered output from a maven build (showing maven meta data being downloaded for one artifact). All my dependencies use version ranges of the form [1.0.0.SNAPSHOT,2.0.0.SNAPSHOT) In general the build fails with out of memory. I can increase the heap size and the build is successful, but a relatively simple build is now requiring 500MB heap size. First question is why is maven re-checking and downloading the same meta data over and over again? If I add additional version ranged dependencies to my pom then the problem seems to get exponentially worse. For a larger build so many requests are made so quickly to the nexus remote repository that I start to see "Error transferring file: Address already in use: connect". Any ideas how to reduce the memory usage? Do not say "do not use version ranges". We use semantic versioning enforced by API analysis tools for each of our modules (OSGi bundles) so we require version ranges. If I change all version range dependencies to an exact dependency (a serious amount of pom editing) then all is fine. As you can tell below we have 3 main internal remote repos setup (kirona, kirona-snapshot and third.party.libraries). We do not specify version ranges on libraries that are not in our control e.g. log4j etc etc Downloading: http://fuji:8081/nexus/content/repositories/third-party/com/kirona/server/third.party.libraries/maven-metadata.xml Downloading: http://fuji:8081/nexus/content/repositories/kirona/com/kirona/server/third.party.libraries/maven-metadata.xml Downloaded: http://fuji:8081/nexus/content/repositories/kirona-snapshots/com/kirona/server/third.party.libraries/maven-metadata.xml (354 B at 21.6 KB/sec) Downloaded: http://fuji:8081/nexus/content/repositories/kirona/com/kirona/server/third.party.libraries/maven-metadata.xml (318 B at 6.6 KB/sec) Downloading: http://fuji:8081/nexus/content/repositories/kirona/com/kirona/server/third.party.libraries/maven-metadata.xml Downloading: http://fuji:8081/nexus/content/repositories/kirona-snapshots/com/kirona/server/third.party.libraries/maven-metadata.xml Downloading: http://fuji:8081/nexus/content/repositories/kirona-knopflerfish/com/kirona/server/third.party.libraries/maven-metadata.xml Downloading: http://fuji:8081/nexus/content/repositories/third-party/com/kirona/server/third.party.libraries/maven-metadata.xml Downloaded: http://fuji:8081/nexus/content/repositories/kirona/com/kirona/server/third.party.libraries/maven-metadata.xml (318 B at 10.0 KB/sec) Downloaded: http://fuji:8081/nexus/content/repositories/kirona-snapshots/com/kirona/server/third.party.libraries/maven-metadata.xml (354 B at 11.2 KB/sec) Downloading: http://fuji:8081/nexus/content/repositories/kirona-snapshots/com/kirona/server/third.party.libraries/maven-metadata.xml Downloading: http://fuji:8081/nexus/content/repositories/third-party/com/kirona/server/third.party.libraries/maven-metadata.xml Downloading: http://fuji:8081/nexus/content/repositories/kirona/com/kirona/server/third.party.libraries/maven-metadata.xml Downloading: http://fuji:8081/nexus/content/repositories/kirona-knopflerfish/com/kirona/server/third.party.libraries/maven-metadata.xml Downloaded: http://fuji:8081/nexus/content/repositories/kirona/com/kirona/server/third.party.libraries/maven-metadata.xml (318 B at 9.7 KB/sec) Downloaded: http://fuji:8081/nexus/content/repositories/kirona-snapshots/com/kirona/server/third.party.libraries/maven-metadata.xml (354 B at 10.8 KB/sec) Downloading: http://fuji:8081/nexus/content/repositories/kirona/com/kirona/serve... The above problems renders eclipse useless with m2e, it causes eclipse to hang on start up (build automatically set to true) and eventually die!! I'm starting to come to the conclusion that between maven and m2e version ranges just do not work very well. I hope I am wrong!! Thanks Paul - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: xml file is invalid.
> I found this shouldn't be happened, as this example is one of the spring > examples I downloaded from spring website. > > The example is spring 3 with maven build. This is not the Spring support list. This is the Maven user list. Please post your question to the proper Spring group. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: With the maven-release-plugin, how to branch a module and its children ?
I guess you could make an aggregator pom in your trunk/ which kicks of all 3 builds. If you branch this pom it would succeed. Or you could move your parent pom one level higher and let it serve as parent and aggregator pom. Hth, Nick Stolwijk ~Senior Java Developer~ iPROFS Wagenweg 208 2012 NM Haarlem T +31 23 547 6369 F +31 23 547 6370 I www.iprofs.nl 2011/6/20 Frédéric Conrotte : > Hello > > Say you have a module named "parent" which has 2 childs "childA" and "ChildB" > > If I run > mvn release:branch -DbranchName=my-branch > in the "parent" folder, it will branch the parent module code to SVN > /branches/my-branch WITHOUT the 2 child modules. > > I would like release:branch to branch the parent module and all its children > to > . /branches/my-branch/parent > . /branches/my-branch/childA > . /branches/my-branch/childB > > I didn't found any solution in the doc yet: > . http://maven.apache.org/plugins/maven-release-plugin/branch-mojo.html > . http://maven.apache.org/plugins/maven-release-plugin/examples/branch.html > > Is it feasible ? Or do I have to run the command for every module I want to > branch ? > > Any help would be appreciated, thanks > > Fred > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
With the maven-release-plugin, how to branch a module and its children ?
Hello Say you have a module named "parent" which has 2 childs "childA" and "ChildB" If I run mvn release:branch -DbranchName=my-branch in the "parent" folder, it will branch the parent module code to SVN /branches/my-branch WITHOUT the 2 child modules. I would like release:branch to branch the parent module and all its children to . /branches/my-branch/parent . /branches/my-branch/childA . /branches/my-branch/childB I didn't found any solution in the doc yet: . http://maven.apache.org/plugins/maven-release-plugin/branch-mojo.html . http://maven.apache.org/plugins/maven-release-plugin/examples/branch.html Is it feasible ? Or do I have to run the command for every module I want to branch ? Any help would be appreciated, thanks Fred - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Mojo's Cassandra Maven Plugin 0.8.0-1 released
Hi, The Mojo team is pleased to announce the release of Mojo's Cassandra Maven Plugin version 0.8.0-1. Mojo's Cassandra Plugin is used when you want to install and control a test instance of Apache Cassandra from within your Apache Maven build. The plugin has the following goals. * cassandra:start Starts up a test instance of Cassandra in the background. * cassandra:stop Stops the test instance of Cassandra that was started using cassandra:start. * cassandra:start-cluster Starts up a test cluster of Cassandra in the background bound to the local loopback IP addresses 127.0.0.1, 127.0.0.2, etc. * cassandra:stop Stops the test cluster of Cassandra that was started using cassandra:start. * cassandra:run Starts up a test instance of Cassandra in the foreground. * cassandra:load Runs a cassandra-cli script against the test instance of Cassandra. * cassandra:repair Runs nodetool repair against the test instance of Cassandra. * cassandra:flush Runs nodetool flush against the test instance of Cassandra. * cassandra:compact Runs nodetool compact against the test instance of Cassandra. * cassandra:cleanup Runs nodetool cleanup against the test instance of Cassandra. * cassandra:delete Deletes the the test instance of Cassandra. http://mojo.codehaus.org/cassandra-maven-plugin/ To use this version, simply specify the version in your project's plugin configuration: org.codehaus.mojo cassandra-maven-plugin 0.8.0-1 Release Notes - Mojo's Cassandra Maven Plugin - Version 0.8.0-1 ** Improvement * [MCASSANDRA-8] - Document the availability of stopKey/stopPort configuration parameters (and possibly allow just stopPort to be defined) ** New Feature * [MCASSANDRA-9] - Patch to support Cassandra 0.8.0-rc1 * [MCASSANDRA-10] - Add support for local clusters * [MCASSANDRA-11] - Upgrade to Cassandra 0.8.0 Enjoy, The Mojo team. Apache, Apache Maven, Apache Cassandra, Maven and Cassandra are trademarks of The Apache Software Foundation. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: xml file is invalid.
Here is my servlet-context.xml file: samwun wrote: > > > http://java.sun.com/xml/ns/j2ee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; version="2.4"> > iXSystems Portal > > webAppRootKey > ixsystems-msp-product-catalog > > > log4jConfigLocation > /WEB-INF/classes/log4j.xml > > > contextConfigLocation > > /WEB-INF/context/applicationContext*.xml > > > Spring OpenEntityManagerInViewFilter > > org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter > > > Spring OpenEntityManagerInViewFilter > /* > > > guest.jsp > > > > org.springframework.web.util.WebAppRootListener > > > > org.springframework.web.util.Log4jConfigListener > > > > org.springframework.web.context.ContextLoaderListener > > > ViewRendererServlet > > org.springframework.web.servlet.ViewRendererServlet > 1 > > > ResourcesServlet > > org.springframework.web.servlet.DispatcherServlet > > contextConfigLocation > > /WEB-INF/context/servlet/resources.xml > > > > ViewRendererServlet > /WEB-INF/servlet/view > > > ResourcesServlet > /resources/* > > > > http://java.sun.com/jstl/core_rt > /WEB-INF/tld/c-rt.tld > > > http://java.sun.com/jstl/fmt_rt > /WEB-INF/tld/fmt-rt.tld > > > > http://www.springframework.org/tags/form > > /WEB-INF/tld/spring-form.tld > > > > http://www.springframework.org/tags/spring > /WEB-INF/tld/spring.tld > > > http://java.sun.com/jsp/jstl/core > /WEB-INF/tld/c.tld > > > http://java.sun.com/jsp/jstl/fmt > /WEB-INF/tld/fmt.tld > > > http://ixsystems.com.au/msp/tags/form > /WEB-INF/tld/mpp-form.tld > > > > web.xml file: samwun wrote: > > > http://java.sun.com/xml/ns/javaee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";> > > > > characterEncodingFilter > > org.springframework.web.filter.CharacterEncodingFilter > > encoding > UTF-8 > > > forceEncoding > true > > > > > characterEncodingFilter > /* > > > > > Spring MVC Dispatcher Servlet > > org.springframework.web.servlet.DispatcherServlet > > contextConfigLocation > > /WEB-INF/spring/appServlet/servlet-context.xml > > > 1 > > > > Spring MVC Dispatcher Servlet > / > > > > > > Thanks > Sam > > -- View this message in context: http://maven.40175.n5.nabble.com/xml-file-is-invalid-tp4506017p4506024.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
xml file is invalid.
Hello, I found this shouldn't be happened, as this example is one of the spring examples I downloaded from spring website. The example is spring 3 with maven build. Here is the error I got when during the deployment process: [#|2011-06-20T21:20:08.542+1000|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=93;_ThreadName=Thread-1;|ERROR: org.springframework.web.servlet.DispatcherServlet - Context initialization failed org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 26 in XML document from ServletContext resource [/WEB-INF/spring/appServlet/servlet-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:resources'. at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:93) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:465) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:395) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:442) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458) at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339) at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306) at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127) at javax.servlet.GenericServlet.init(GenericServlet.java:244) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1439) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1241) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5032) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5319) at com.sun.enterprise.web.WebModule.start(WebModule.java:500) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:755) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1980) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1630) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:100) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:360) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247) at org.glassfish.deployment.autodeploy.AutoOperation.run(AutoOperation.java:145) at org.glassfish.deployment.autodeploy.AutoDeployer.depl
Maven 3 missing dependencies copy+paste mvn install statements
Hi, in Maven 2+ when you had an unresolvable dependency, the error message would suggest you to install the artifact to your local repository. The full statement you needed to run was printed to the screen, you just had to copy+paste and change the file location (mvn install:install-file ). Super convenient. In Maven 3 this was changed and you only get informed which dependencies could not be resolved. Since I am super lazy, is there a way to tell Maven 3 to print me the mvn install statements for missing dependencies? -- View this message in context: http://maven.40175.n5.nabble.com/Maven-3-missing-dependencies-copy-paste-mvn-install-statements-tp4505648p4505648.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org