Re: sorting versions for artifacts with hypen and / or dot in filename
What do you want to know, specifically, other than what's in the posting? Thank you On Jan 9, 2018 3:03 AM, "Karl Heinz Marbaise"wrote: Hi, On 09/01/18 00:44, hanas...@gmail.com wrote: > How is the artifact name separated from the version number if the artifact > has hypens and / or dots in it? Are they sorted as Strings? > > example: > jar1 and the war are two submodules of a parent project > > G:A:V = org.myorg.project > org.myorg.project.jar1 (and a org.myorg.project.war) > 1.2.3 > > OR > > G:A:V = org.myproject.project > org-myorg-project-jar1 (and a org-myorg-project-war) > 1.2.3 > > * have also had the discussion of reversing to war-project-myorg.org > * above of course would have -SNAPSHOT versions too > > The idea remove ambiguity between artifacts that would otherwise have > ambiguity in their names. You might have seen many projects that have a > core.jar or common.jar Of course this also is havoc if there are two > core.jar files, from two different dependent projects, in the web lib > directory of a WAR file. Need to be sure that maven and gradle will parse > correctly and sort versions of x.y.z in the correct order and not revert to > string ascii sort order. > Can you give a little bit more of background information what you problem is or what kind of issue you have? Kind regards Karl Heinz Marbaise > > Thanks. > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > >
maven version resolution for x.y.z-blah-3 and x.y.z
for the same groupID and artifactID how will the following versions be resolved in a range? The x.y.z is pretty simple based on x.y.z x.y.z-blah x.y.z.blah x.y.z.blah-3 x.y.z.blah-2 x.y.z-blah-3 = '-' vs '.' x.y.z-blah-2 = '-' vs '.' Thank you - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven archetype properties
You make good points. For me, unless an api specifies an ordering is maintained, I assume it will not be. For my code, I only keep things ordered all the time when required. Hope this helps in some way. Original Message Subject: Re: Maven archetype properties From: Anders Hammar To: Maven Users List CC: hanasaki Date: 06/14/2013 02:46 PM (Moving discussion to the mailing list.) Checked the code and the properties are in fact sorted by a Comparator provided by the mojo. The reason seems to be to ask for groupId, artifactId, version, and package first and then the rest. However, the rest of the properties are sorted through String.compareTo(). One could argue they should be left unsorted. /Anders On Fri, Jun 14, 2013 at 9:38 PM, hanasaki hanas...@hanaden.com mailto:hanas...@hanaden.com wrote: Speculating that properties are backed by a Map implementation, even if not placed in an instance of Properties, ordering would vary based on the tree and has values / buckets (unless an ordered map based on key values were used - the overhead not being worth it) What do you think? Original Message Subject: Re: Maven archetype properties From: Anders Hammar To: Maven Users List Date: 06/14/2013 02:35 PM I have an archetype with some properties which Maven asks for when instantiating the archetype. From archetype-metadata.xml: requiredProperties requiredProperty key=domain/ requiredProperty key=username/ requiredProperty key=password/ /requiredProperties The problem is that it asks for the properties in another order than specified in the file, it seems to be in alphabetical order. Is there a way to make it ask for properties in a specific (non-alphabetical) order? If your tests show they are re-ordered, then the answer is currently now I believe. But I would say re-ordering would be a bug so please file a ticket. Is there a way to make it ask for a property in a way that doesn't display the value on screen (for passwords)? Not that I know of. File a ticket and maybe provide a patch? /Anders -- Mikael Ståldal Chief Software Architect *Appear* Phone: +46 8 545 91 572 tel:%2B46%208%20545%2091%20572 Email: mikael.stal...@appearnetworks.com mailto:mikael.stal...@appearnetworks.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven proxy problem in ubuntu 12.04
Your ~/.m2/settings.xml may need an entry similar to below. Full docs for this can be found on the main maven website. This works correctly on my Ubuntu system with openjdk7, netbeans, eclipse, jenkins and command line. You may be able to find the proxy info from your IT group or in firefox or IE Internet settings. proxies proxy activetrue/active protocolhttp/protocol hostfirewall.domain.com/host usernamewe...b/username password.../password port8080/port nonProxyHostslocalhost/nonProxyHosts /proxy /proxies Original Message Subject: Maven proxy problem in ubuntu 12.04 From: dzungdev To: users@maven.apache.org Date: 02/12/2013 05:37 AM Hi all, I would like to ask about the maven in ubuntu 12.04. I downloaded maven version: 3.0.4 and tried to run the mvn archtype:generate, then I have the result like bellow: *dzung@dzung:~$ mvn archtype:generate [INFO] Scanning for projects... Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.4.1: Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1 Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-install-plugin:2.3.1: Plugin org.apache.maven.plugins:maven-install-plugin:2.3.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:2.3.1 Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.7/maven-deploy-plugin-2.7.pom [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-deploy-plugin:2.7: Plugin org.apache.maven.plugins:maven-deploy-plugin:2.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-deploy-plugin:jar:2.7 Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-site-plugin/3.0/maven-site-plugin-3.0.pom [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-site-plugin:3.0: Plugin org.apache.maven.plugins:maven-site-plugin:3.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-site-plugin:jar:3.0 Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.pom [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-antrun-plugin:1.3: Plugin org.apache.maven.plugins:maven-antrun-plugin:1.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-antrun-plugin:jar:1.3 Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.pom [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5: Plugin org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5* I tried to search google and they said that maybe I have to configure the proxy in ~/.m2/settings.xml but I don't know what the information of proxy ip, port I have to add in settings.xml. I checked in System Setting -- Network Settings of ubuntu 12.04 and see that the proxy mode is None. Could you please give me an advice ? Thanks and best regards, Dzung - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven proxy problem in ubuntu 12.04
how is system and environment dependent. It is probably time for you consult with whomever is responsible for the setup and administration of your system and/or network. Original Message Subject: Re: Maven proxy problem in ubuntu 12.04 From: dzungdev To: users@maven.apache.org Date: 02/12/2013 06:13 PM Dear Hanasaki, I would like to say thanks for your detail explanation. I saw that you put the host is: firewall.domain.com but how I can get the information of username/password for it ? Actually I tried to get information of proxy via firefox by go to Edit -- Preference -- Advanced -- Network -- Settings but I saw that the current option is: use System proxy. Then I tried to check my ubuntu 12.04 to see proxy information but when I go to System setting -- network setting -- Proxy, the use mode is None. Thanks and best regards, Dzung -- View this message in context: http://maven.40175.n5.nabble.com/Maven-proxy-problem-in-ubuntu-12-04-tp5746764p5746837.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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Create Windows executable JAR
Take a look at onejar. There is a maven plugin as well. Original Message Subject: Re: Create Windows executable JAR From: Eric Kolotyluk To: Maven Users List Date: 02/07/2013 02:34 PM I have often built a single .jar file that will launch if you double-click it from a desktop or folder. I have even created a single file that works equally well on Windows, Mac and Linux. The catch is, however, that you have to have Java already installed, and your desktop environment needs to associate .jar files with Java. For example, you can use the shade plugin to create an uber-jar this is launch-able. If you do not have Java already installed, you have to resort to creating a .exe file for use on Windows. In the good old days, you could always count on Java being installed on OS X. Cheers, Eric On Thu, Feb 7, 2013 at 10:05 AM, Curtis Rueden ctrue...@wisc.edu wrote: Hi Jeff, I want to build with Maven a Windows executable given the fact that I am able to produce an executable JAR. To my knowledge, it is not a cleanly solved problem. My team solved it by writing our own cross-platform launcher application in C [1]. There are many technical details in the comments of the relevant issue in our bug tracker [2]. We use maven-nar-plugin and maven-assembly-plugin to enable Maven to compile, package and deploy it on various platforms, with the help of Windows, OS X and Linux Jenkins nodes [3, 4]. Horribly complicated, but it works. Maybe others know of a simpler solution. Regards, Curtis [1] https://github.com/imagej/imagej/tree/master/core/launcher [2] http://trac.imagej.net/ticket/832 [3] http://jenkins.imagej.net/job/ImageJ-launcher/ [4] http://jenkins.imagej.net/job/ImageJ-launcher-deploy/ On Thu, Feb 7, 2013 at 11:34 AM, Jeff MAURY jeffma...@jeffmaury.com wrote: Hello, I have the following request: I want to build with Maven a Windows executable given the fact that I am able to produce an executable JAR. I have seen the Codehaus appasembler Maven plugin but it seems it produces several files where I want to produce a single .exe file. Do you know if such a plugin exists somewhere ? Thanks -- Jeff MAURY Legacy code often differs from its suggested alternative by actually working and scaling. - Bjarne Stroustrup http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.twitter.com/jeffmaury - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: externalize conf files
If using spring, the below example serves to bring in properties auto-magically based on a the APP_NAME (ex: /etc/MYAPP or for developers ${user.home}/APPNAME - there are a couple tricks to get this working in a CI (ie: Jenkins) environment ) set as an environment variable. Then the system admins maintain the configuration just as is done for all the other applications (ex: with chef or puppet). If not using Spring, a utility class can be setup to read the .properties files. With log4j, look at the config class PropertyConfigurator or a similar one for log4j.xml configuration files. Hope this helps out - hanasaki ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:context=http://www.springframework.org/schema/context; xmlns:tx=http://www.springframework.org/schema/tx; xmlns:util=http://www.springframework.org/schema/util; xsi:schemaLocation= http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd; bean id=beanPlaceholder class=org.springframework.beans.factory.config.PropertyPlaceholderConfigurer property name=locations list valuefile:${APP_NAME}/rdbms-connection.properties/value -- substitute with your appname /list /property property name=ignoreResourceNotFound value=true / property name=ignoreUnresolvablePlaceholders value=false / property name=searchSystemEnvironment value=true / property name=systemPropertiesModeName value=SYSTEM_PROPERTIES_MODE_OVERRIDE / /bean /beans ref: http://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PropertyConfigurator.html#configure%28java.io.InputStream%29 Original Message Subject: Re: externalize conf files From: Ron Wheeler To: users@maven.apache.org Date: 11/25/2012 07:21 AM https://maven.apache.org/plugins/maven-assembly-plugin/ http://maven.apache.org/plugins/maven-shade-plugin/ On 24/11/2012 5:41 PM, laudio.info wrote: thanks do you have any example or url for read it? thanks 2012/11/24 Ron Wheeler rwhee...@artifact-software.com On 24/11/2012 5:29 PM, laudio.info wrote: hello into my maven projects i have the conf files (properties) and log configuracion files into the jars or ears. well i must to externalize them. i must to put into one external location but i dont know. for example i must to put when i install the app (mvn install) into one ourt directory, for example c:/confiles is this posible using maven? how? can you help me please? Thanks There may be other ways to approach this but my first thought would be to have a small assembly project that used the assembly or shade plug-in to put these resources into a zip file (or some other archive) that could be used to load them into the external location. Ron -- Ron Wheeler President Artifact Software Inc email: rwhee...@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Websphere 8
The runtime in a maven build (ex: mvn clean install) is defined and assembled dynamically based on the dependencies and scope of the dependencies. While possible to include local jar files (based on fqn paths) in a pom.xml this tightly couples the project to a local filesystem and is generally not advisable. - hanasaki Original Message Subject: Re: Websphere 8 From: goyal.sharad To: users@maven.apache.org Date: 11/06/2012 03:22 PM There is no way to define our own runtime? On Tue, Nov 6, 2012 at 4:06 PM, Anders Hammar [via Maven] ml-node+s40175n572971...@n5.nabble.com wrote: I see two options: 1. Upload the Websphere artifacts to your internal repo. This is IMO the preferred way to go as it will make it possible to use the same artifacts during compiling and testing as in runtime. 2. As long as you code against Java EE APIs, you could use any available artifacts implementing them as you declare provided scope. They will then be used during compiling and testing, but in runtime you will be using the ones in the Websphere platform. /Anders On Tue, Nov 6, 2012 at 9:57 PM, goyal.sharad [hidden email]http://user/SendEmail.jtp?type=nodenode=5729712i=0 wrote: Is there any sample project like Hello World exist which has Websphere 8 dependencies? I do not want to upload our runtime dependencies in the maven repository because they contains so many jars. In bbrief Is there any way to define our own runtime environment? -- View this message in context: http://maven.40175.n5.nabble.com/Websphere-8-tp5729710.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=5729712i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=5729712i=2 -- If you reply to this email, your message will be added to the discussion below: http://maven.40175.n5.nabble.com/Websphere-8-tp5729710p5729712.html To unsubscribe from Websphere 8, click herehttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=5729710code=Z295YWwuc2hhcmFkQGdtYWlsLmNvbXw1NzI5NzEwfC0xNTM0MDQwMDgw . NAMLhttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://maven.40175.n5.nabble.com/Websphere-8-tp5729710p5729714.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
Re: Multiple Local Repositories
Generally good to just have one local repo per user. This defaults to ~/.m2/repository Based on the pom.xml all the needed dependencies will be pulled from the remote repos automatically so : no worries. If you really want more than one local repo for the same user id, take a look at settings.xml: http://maven.apache.org/run-maven/index.html#Quick_Start http://maven.apache.org/guides/mini/guide-configuring-maven.html In continuous integration - it may be good to have one local repository per project and a script that deletes the local repository before a nightly build is performed; else if someone changes the coordinates of a project, cruft can result in build issues that are hard to track down. - Original Message Subject: Multiple Local Repositories From: iamanandkris To: users@maven.apache.org Date: 11/01/2012 08:14 AM Hi Can we have more than one local maven repositories in a computer? So that I can use one repo for on of my projects and other for other projects? If so can some one pls give some guide lines on how to facilitate that? Thank you Anand -- View this message in context: http://maven.40175.n5.nabble.com/Multiple-Local-Repositories-tp5729020.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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven war plugin - generated WAR file missing WEB-INF and jsp pages (only in the uploaded deploy and release)
The build runs fine, tests fine and the WAR created in the target folder is correct. For some reason the WAR uploaded to the maven repository on deploy or release is missing most everything. All it has is META-INF and the compile resources and the class files for the servlets and .java files in the WAR project. no JSPs and no WEB-INF at all. Any ideas as to how to get the jsp pages and WAR/WEB-INF (including lib subdirectory and jars in it) into the created WAR? It is a pretty simple project with a parent, jar module and war module that includes the JAR. Thanks. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven2 Shade vs Maven1 UberJar
Does Shade use the same classworlds as as UberJar did? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
why does mvn release replace ${groupId} in scm with actual values?
Did a maven release and had connection information in the scm section. After the release, the new pom with updated coordinates in its version section had replaced the ${groupId}/${artifactId}/trunk in the new pom with the Actual values. How can the dynamic nature be retained? Where is the algorithm for how the connection URL's are updated? TIA - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: cobertura jetty
most of what I have found points to using emma to get code coverage in the integration phase using the failsafe plugin and embedded Jetty. Original Message Subject: cobertura jetty From: Douglas Ferguson doug...@douglasferguson.us To: Maven Users List users@maven.apache.org Date: 03/04/2010 10:43 PM So I finally got jetty starting from my test case, but it doesn't impact the code coverage. My BasePage class is at 0% which is confusing. The server is started from the test class which would make you think would be using the instrumented classes and jetty would inherit the same classpath. What am I missing? Douglas - 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