Re: Query re: Maven Repository
This type of question should be addressed to the Maven user list. I've forwarded it to there, where this thread should continue. The answer that some things are missing in central is due to licensing. For example, the oracle jdbc jar. They can't be added to central. The solution is to install a repository manager (Nexus for instance) and add these missing artifacts there. /Anders On Wed, Jan 19, 2011 at 23:38, Beppe Sabatini beppe.sabat...@trilliantinc.com wrote: Hi, we’re maven newbies and we’re hoping you can help us with a question regarding the maven repository. Or if you can’t help us, perhaps you can direct us to the right person! When we try to compile we get these error messages: Unable to find resource 'opensymphony:quartz-all:pom:1.6.2' in repository central (http://repo1.maven.org/maven2) Unable to find resource 'javax.transaction:jta:jar:1.0.1B' in repository central (http://repo1.maven.org/maven2) Unable to find resource 'com.oracle:ojdbc14:jar:10.2.0.3.0' in repository central (http://repo1.maven.org/maven2) . . . checking on the server we find that they’re indeed missing. Do you have any idea how they could suddenly go missing, and what we might do to replace them or ask the owner to replace them? Thanks in advance for any help you can provide. Beppe Sabatini Principal Software Engineer Trilliant Phone: +1.650.204.5094 beppe.sabat...@trilliantinc.com www.trilliantinc.com
Re: Help referencing profile properties/attributes...
Not that I know of, no. In your example, why don't you just specify the value ('staging') in the confgiuration of the surefire plugin? /Anders On Thu, Jan 20, 2011 at 07:52, Jeff predato...@gmail.com wrote: I'm new to Maven and am building a POM with profiles. I want to be able to set a system property that contains the value of the current profile(s). Currently I have multiple profiles that each relate to different web app servers (dev, test, staging, etc.) in our dev/test environment. I want the profile (via the surefire plugin) to set a system property called config that can be read during the test goal to change which web app server to use (via property file). Currently the value of the config system property is equivalent to the value of the profile id. Is there a syntax in the POM for referencing the id of the profile that is in the parent chain of the property being set? For example, in the profile below, can I reference the profile id in order to retrieve the value staging? I've tried ${profile.id}, ${id}, but they don't work. profiles profile *idstaging/id *... build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.7.1/version configuration skipfalse/skip systemPropertyVariables *config${profile.id}/config *... /profile /profiles Thanks!! -- Jeff Vincent predato...@gmail.com See my LinkedIn profile at: http://www.linkedin.com/in/rjeffreyvincent
Re: downloading resources
any phase before the phase in which you create the bundle... probably generate-resources On 20 January 2011 07:56, Adam Crain acr...@greenenergycorp.com wrote: What phase should I be doing this in to insure that they make it into the bundle? On Wed, Jan 19, 2011 at 9:52 PM, Wayne Fay wayne...@gmail.com wrote: 3) Uncompress it to my projects src/main/resources folder Oh and btw you should probably not be uncompressing to src/main/resources but rather to /target. Wayne - 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 repositories without the jars
Hello. When I try to compile my software I get this errors : [WARNING] The artifact xerces:xerces:jar:2.4.0 has been relocated to xerces:xercesImpl:jar:2.4.0 Downloading: http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar Downloading: http://repo1.maven.org/maven2/javax/resource/connector/1.0/connector-1.0.jar Downloading: http://repo1.maven.org/maven2/javax/naming/jndi/1.2.1/jndi-1.2.1.jar Downloading: http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.jar Downloading: http://repo1.maven.org/maven2/com/oracle/toplink/toplink/10.1.3/toplink-10.1.3.jar When I browse those urls I see that indeed the jar file does not exist, but pom and sha files exists. 1. So, what's the purpose to store those files without the jar ? 2. Do I have to manually download the jars from their right location ? Thank's a lot. - *Slitzweitz !! *
Re: Generating web project with java, webapp, and resource folder from archtype goal
No help on this ? :) On Wed, Jan 19, 2011 at 11:30 AM, Anders Hammar and...@hammar.net wrote: The list archives (nabble for example) are great for verifying that. /Anders On Wed, Jan 19, 2011 at 10:47, Piotr Skawinski piotr.skawinski.ma...@gmail.com wrote: It wasnt on purpose. I just couldnt see the first mail reaching the mailing list, so i tried again :) Sorry for that :) On Wed, Jan 19, 2011 at 10:38 AM, Anders Hammar and...@hammar.net wrote: One mail to the list per question is enough. We understand that you're asking because something is blocking you, but there is no need to spam the list. Give people a few days to respond (although you very often get a response quicker than that on this list). If nobody responds, it could be that there is no good answer. /Anders On Wed, Jan 19, 2011 at 10:30, Piotr Skawinski piotr.skawinski.ma...@gmail.com wrote: Hi, Is there a way in maven to generate a web project with java, resources, and webapp folders running the archtype goal. Maven suggest to create a multi project module with: multi-project |-- pom.xml |-- my-app |-- my-web-app by creating a multi project pom file and then running: mvn archetype:create \ -DgroupId=some-group-id \ -DartifactId=my-app which generates: my-app |-- pom.xml |--src '-- main '-- java and then: mvn archetype:create \ -DarchetypeArtifactId=maven- archetype-webapp \ -DgroupId=some-group-id \ -DartifactId=my-web-app which generates: my-web-app |-- pom.xml |-- src '--main '-- resources '-- webapp But i would like to get this structure web-app |-- pom.xml |-- src '--main '-- java '-- resources '-- webapp from running the archtype goal on. cheers, Piotr
Problem Executing Application With Maven
I am new to Spring amp; Maven. I have properly installed maven in my machine. Also able to compile the project code. But when I execute the java class using following command.. mvn -e exec:java -Dexec.mainClass=com.test.beg.Calculate -Dexec.args=3000 3It gives error like... + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'exec'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Invalid task 'ûDexec.args=ö3000': you must specify a valid lifecycle phas e, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginV ersion:goal [INFO] [INFO] Trace org.apache.maven.BuildFailureException: Invalid task 'ûDexec.args=ö3000': you mu st specify a valid lifecycle phase, or a goal in the format plugin:goal or plugi nGroupId:pluginArtifactId:pluginVersion:goal at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor (DefaultLifecycleExecutor.java:1830) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy AggregationNeeds(DefaultLifecycleExecutor.java:462) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:175) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6 0) 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) [INFO] [INFO] Total time: 1 second [INFO] Finished at: Mon Jan 10 15:48:43 IST 2011 [INFO] Final Memory: 2M/3M [INFO] Please help.
Re: Maven repositories without the jars
It means that this artifact used to be under the coordinates xerces:cerces, but is now using the coordinates xerces:xercesImpl. When the developers moved it, the created a so-called relocation pom in the old space, to simplify for the users. The build still works right? But you get this warning. You should update your pom(s) to use the new coordinates instead of the old ones. If it's in one of your dependencies, it's not very much you can do but to report this to the devs of the artifact with that dependency. /Anders On Thu, Jan 20, 2011 at 10:09, Jonathan Vila Lopez jonathan.v...@gmail.comwrote: Hello. When I try to compile my software I get this errors : [WARNING] The artifact xerces:xerces:jar:2.4.0 has been relocated to xerces:xercesImpl:jar:2.4.0 Downloading: http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar Downloading: http://repo1.maven.org/maven2/javax/resource/connector/1.0/connector-1.0.jar Downloading: http://repo1.maven.org/maven2/javax/naming/jndi/1.2.1/jndi-1.2.1.jar Downloading: http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.jar Downloading: http://repo1.maven.org/maven2/com/oracle/toplink/toplink/10.1.3/toplink-10.1.3.jar When I browse those urls I see that indeed the jar file does not exist, but pom and sha files exists. 1. So, what's the purpose to store those files without the jar ? 2. Do I have to manually download the jars from their right location ? Thank's a lot. - *Slitzweitz !! *
Re: Maven repositories without the jars
I should clarify: Maven handles this relocation for you. But you should update the coordinates used for future versions there might not be a relocation pom. /Anders On Thu, Jan 20, 2011 at 11:13, Anders Hammar and...@hammar.net wrote: It means that this artifact used to be under the coordinates xerces:cerces, but is now using the coordinates xerces:xercesImpl. When the developers moved it, the created a so-called relocation pom in the old space, to simplify for the users. The build still works right? But you get this warning. You should update your pom(s) to use the new coordinates instead of the old ones. If it's in one of your dependencies, it's not very much you can do but to report this to the devs of the artifact with that dependency. /Anders On Thu, Jan 20, 2011 at 10:09, Jonathan Vila Lopez jonathan.v...@gmail.com wrote: Hello. When I try to compile my software I get this errors : [WARNING] The artifact xerces:xerces:jar:2.4.0 has been relocated to xerces:xercesImpl:jar:2.4.0 Downloading: http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar Downloading: http://repo1.maven.org/maven2/javax/resource/connector/1.0/connector-1.0.jar Downloading: http://repo1.maven.org/maven2/javax/naming/jndi/1.2.1/jndi-1.2.1.jar Downloading: http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.jar Downloading: http://repo1.maven.org/maven2/com/oracle/toplink/toplink/10.1.3/toplink-10.1.3.jar When I browse those urls I see that indeed the jar file does not exist, but pom and sha files exists. 1. So, what's the purpose to store those files without the jar ? 2. Do I have to manually download the jars from their right location ? Thank's a lot. - *Slitzweitz !! *
Re: Problem Executing Application With Maven
Not sure why you're using Maven to execute this Maven class, but anyways... The error message possibly hints that there is some garbage chars on the command line. Did you copy the command line from somewhere? /Anders On Thu, Jan 20, 2011 at 10:23, Chintan Sanghavi sanghav...@rediffmail.comwrote: I am new to Spring amp; Maven. I have properly installed maven in my machine. Also able to compile the project code. But when I execute the java class using following command.. mvn -e exec:java -Dexec.mainClass=com.test.beg.Calculate -Dexec.args=3000 3It gives error like... + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'exec'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Invalid task 'ûDexec.args=ö3000': you must specify a valid lifecycle phas e, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginV ersion:goal [INFO] [INFO] Trace org.apache.maven.BuildFailureException: Invalid task 'ûDexec.args=ö3000': you mu st specify a valid lifecycle phase, or a goal in the format plugin:goal or plugi nGroupId:pluginArtifactId:pluginVersion:goal at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor (DefaultLifecycleExecutor.java:1830) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy AggregationNeeds(DefaultLifecycleExecutor.java:462) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:175) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6 0) 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) [INFO] [INFO] Total time: 1 second [INFO] Finished at: Mon Jan 10 15:48:43 IST 2011 [INFO] Final Memory: 2M/3M [INFO] Please help.
Re: Maven repositories without the jars
Hello Anders There is no problem with xerces and its relocation the problem is that any downloading has downloaded anything : http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar http://repo1.maven.org/maven2/javax/resource/connector/1.0/connector-1.0.jar http://repo1.maven.org/maven2/javax/naming/jndi/1.2.1/jndi-1.2.1.jar http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.jar http://repo1.maven.org/maven2/com/oracle/toplink/toplink/10.1.3/toplink-10.1.3.jar because the referenced jar does not exist in the repo1 repository. - *Slitzweitz !! * On Thu, Jan 20, 2011 at 11:14 AM, Anders Hammar and...@hammar.net wrote: I should clarify: Maven handles this relocation for you. But you should update the coordinates used for future versions there might not be a relocation pom. /Anders On Thu, Jan 20, 2011 at 11:13, Anders Hammar and...@hammar.net wrote: It means that this artifact used to be under the coordinates xerces:cerces, but is now using the coordinates xerces:xercesImpl. When the developers moved it, the created a so-called relocation pom in the old space, to simplify for the users. The build still works right? But you get this warning. You should update your pom(s) to use the new coordinates instead of the old ones. If it's in one of your dependencies, it's not very much you can do but to report this to the devs of the artifact with that dependency. /Anders On Thu, Jan 20, 2011 at 10:09, Jonathan Vila Lopez jonathan.v...@gmail.com wrote: Hello. When I try to compile my software I get this errors : [WARNING] The artifact xerces:xerces:jar:2.4.0 has been relocated to xerces:xercesImpl:jar:2.4.0 Downloading: http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar Downloading: http://repo1.maven.org/maven2/javax/resource/connector/1.0/connector-1.0.jar Downloading: http://repo1.maven.org/maven2/javax/naming/jndi/1.2.1/jndi-1.2.1.jar Downloading: http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.jar Downloading: http://repo1.maven.org/maven2/com/oracle/toplink/toplink/10.1.3/toplink-10.1.3.jar When I browse those urls I see that indeed the jar file does not exist, but pom and sha files exists. 1. So, what's the purpose to store those files without the jar ? 2. Do I have to manually download the jars from their right location ? Thank's a lot. - *Slitzweitz !! *
Re: Maven repositories without the jars
There is no problem with xerces and its relocation the problem is that any downloading has downloaded anything : because the referenced jar does not exist in the repo1 repository. http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Oracle and IBM maven repos
Hello Does anybody know the URL for the maven2 repos for Oracle and IBM ? - *Slitzweitz !! *
Re: Generating web project with java, webapp, and resource folder from archtype goal
Did You check the doc of the archetype plugin? This should solve Your problem: http://maven.apache.org/archetype/maven-archetype-plugin/advanced-usage.html On 19/01/11 10:30, Piotr Skawinski wrote: Is there a way in maven to generate a web project with java, resources, and webapp folders running the archtype goal. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven Assembly Plug-in - Creating custom root folder inside TAR file
Hi, I want to create a tar file using assembly plugin. I am able to do create a tar file but unable to customize the root folder. It always is project/module name. For example: My module name is Example and I want to create Example.tar file and it should directly contain MyFolder. But when I create tar file the MyFolder is under the Example folder by default. I need something like this. Example.tar -MyFolder But I am getting like this. Example.tar ---Example MyFolder Below are my bin.xml and pom.xml. pom.xml - plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-assembly-plugin/artifactId version2.2/version executions execution phaseprocess-resources/phase goals goalsingle/goal /goals /execution /executions configuration descriptors descriptor${project.basedir}/src/main/assembly/bin.xml/descriptor /descriptors /configuration /plugin bin.xml --- assembly xmlns=http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd; idbin/id formats formattar/format /formats fileSets fileSet directory${project.basedir}/src/main/MyFolder/directory outputDirectoryMyFolder/outputDirectory /fileSet /fileSets /assembly Regards, Tirumal Reddy M
Create artifacts library for downloaded IBM jar files.
Hello. As the IBM MQSeries jars are not in the apache maven repositories, I have downloaded the jars but now I would like to add to my Artifactory repository. but I have to do that one jar by one. Is there any other better way to do that ? We are 4 developers and I would like to avoid that all of us have to download the jars and put them in our local repository. - *Slitzweitz !! *
RE: Maven Assembly Plug-in - Creating custom root folder inside TAR file
I got solution to this. You just need to put includeBaseDirectoryfalse/includeBaseDirectory in your assembly descriptor file. Regards, Tirumal Reddy M -Original Message- From: Tirumal Reddy Moolamalla [mailto:t.moolama...@zensar.com] Sent: Thursday, January 20, 2011 5:04 PM To: users@maven.apache.org Subject: Maven Assembly Plug-in - Creating custom root folder inside TAR file Hi, I want to create a tar file using assembly plugin. I am able to do create a tar file but unable to customize the root folder. It always is project/module name. For example: My module name is Example and I want to create Example.tar file and it should directly contain MyFolder. But when I create tar file the MyFolder is under the Example folder by default. I need something like this. Example.tar -MyFolder But I am getting like this. Example.tar ---Example MyFolder Below are my bin.xml and pom.xml. pom.xml - plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-assembly-plugin/artifactId version2.2/version executions execution phaseprocess-resources/phase goals goalsingle/goal /goals /execution /executions configuration descriptors descriptor${project.basedir}/src/main/assembly/bin.xml/descriptor /descriptors /configuration /plugin bin.xml --- assembly xmlns=http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd; idbin/id formats formattar/format /formats fileSets fileSet directory${project.basedir}/src/main/MyFolder/directory outputDirectoryMyFolder/outputDirectory /fileSet /fileSets /assembly Regards, Tirumal Reddy M - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Assembly Plug-in - Creating custom root folder inside TAR file
Simply add 'includeBaseDirectoryfalse/includeBaseDirectory' to Your 'bin.xml'. (See http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_assembly) On 20/01/11 12:33, Tirumal Reddy Moolamalla wrote: I need something like this. Example.tar -MyFolder But I am getting like this. Example.tar ---Example MyFolder - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Assembly Plug-in - Creating custom root folder inside TAR file
yes! On 20/01/11 12:56, Tirumal Reddy Moolamalla wrote: I got solution to this. You just need to putincludeBaseDirectoryfalse/includeBaseDirectory in your assembly descriptor file. Regards, Tirumal Reddy M -Original Message- From: Tirumal Reddy Moolamalla [mailto:t.moolama...@zensar.com] Sent: Thursday, January 20, 2011 5:04 PM To: users@maven.apache.org Subject: Maven Assembly Plug-in - Creating custom root folder inside TAR file Hi, I want to create a tar file using assembly plugin. I am able to do create a tar file but unable to customize the root folder. It always is project/module name. For example: My module name is Example and I want to create Example.tar file and it should directly contain MyFolder. But when I create tar file the MyFolder is under the Example folder by default. I need something like this. Example.tar -MyFolder But I am getting like this. Example.tar ---Example MyFolder Below are my bin.xml and pom.xml. pom.xml - plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-assembly-plugin/artifactId version2.2/version executions execution phaseprocess-resources/phase goals goalsingle/goal /goals /execution /executions configuration descriptors descriptor${project.basedir}/src/main/assembly/bin.xml/descriptor /descriptors /configuration /plugin bin.xml --- assembly xmlns=http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd; idbin/id formats formattar/format /formats fileSets fileSet directory${project.basedir}/src/main/MyFolder/directory outputDirectoryMyFolder/outputDirectory /fileSet /fileSets /assembly Regards, Tirumal Reddy M - 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: Oracle and IBM maven repos
On Thu, Jan 20, 2011 at 5:52 AM, Jonathan Vila Lopez jonathan.v...@gmail.com wrote: Hello Does anybody know the URL for the maven2 repos for Oracle and IBM ? There is some info on an Oracle Maven repo here: http://www.oracle.com/technetwork/database/berkeleydb/downloads/maven-087630.html (I found that you cannot browse the repo -- it will show 404 instead of a directory listing -- but the artifacts are there.) -- Wenduy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Create artifacts library for downloaded IBM jar files.
On Thu, Jan 20, 2011 at 6:51 AM, Jonathan Vila Lopez jonathan.v...@gmail.com wrote: As the IBM MQSeries jars are not in the apache maven repositories, I have downloaded the jars but now I would like to add to my Artifactory repository. but I have to do that one jar by one. That would be something to ask the Artifactory folks. Maybe they have a way to upload a bundle of jars at once. It's probably just as easy to write a shell script to mvn deploy:deploy-file ... the list of jars though. Is there any other better way to do that ? We are 4 developers and I would like to avoid that all of us have to download the jars and put them in our local repository. Adding them to your internal repo manager will solve that. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: GWT Widget as JAR
Greetings Hilco, On Wed, Jan 19, 2011 at 8:07 PM, Hilco Wijbenga hilco.wijbe...@gmail.com wrote: Option 1: It's easy to write a POM that creates a JAR for a GWT widget including CSS and other resources. It's also easy to then write a POM that depends on that JAR and creates a WAR for integration testing. So far so good. This is by far the best solution. If you want to create widgets to be shared across multiple projects, just make a packaging=jar and make sure src/main/java is part of build.resources. Then include src/main/java/com/acme/gwt/client/MyWidget.java and src/main/resources/com/acme/gwt/MyWidgets.gwt.xml as part of the project and install it as per usual (mvn install). Problem: Making changes in (e.g.) the CSS requires a full rebuild of both the JAR and the WAR. This is a real productivity issue. I'm not unsympathetic to this, but you can't have it both ways. You either want re-usable components a la a library, which has a bit of steadiness to it, or you want rapid development -- they are competing goals. Option 2: Put everything in a single WAR project. Integration testing uses this WAR and development can make changes that are reflected after a simple refresh. Yep, you can definitely do this, but it goes against the (unstated by OP) goal of reusability of components. Problem: We need a JAR, not a WAR for our other GWT projects that want to reuse the widget. Your war project which wants to incorporate the reusable widget jar need only to add inherits name=com.acme.gwt.MyWidgets/ and then utilize MyWidget somewhere. It will be properly compiled, and since you include src/main/java as part of the reusable widget's build.resources, GWT compiler will be happy. The only solution that I can see is to go with option 2 and create a second (JAR) project that depends on the WAR and strips away all its web-app-ness to create the JAR I referred to in option 1. This achieves all my goals but isn't very elegant. Can anyone think of a better way to do this? Best of luck to you, I have had a lot of success with the method I've outlined. I have about two dozen general purpose widgets, twice that in general reusable GWT async services, and incorporated them into about 20 internal projects. Everything works quite nicely... -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Generating web project with java, webapp, and resource folder from archtype goal
But i would like to get this structure web-app |-- src '--main '-- java Simply use the existing archetype and then run mkdir web-app/src/main/java and poof, you've got it. The archetype builds a project that conforms to the Maven believes are the best practices/standards. You're asking how to build something that is not a best practice and thus, is not as well supported. You'll have to handle this manually, or make your own archetype that includes this directory. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Generating web project with java, webapp, and resource folder from archtype goal
Am Mittwoch 19 Januar 2011, 10:30:33 schrieb Piotr Skawinski: Hi, Is there a way in maven to generate a web project with java, resources, and webapp folders running the archtype goal. Maven suggest to create a multi project module with: multi-project |-- pom.xml |-- my-app |-- my-web-app by creating a multi project pom file Maven suggests this, because this is known to be a best practice. You usually shouldn't mix Java classes and web-pages/-resources in one project. hth, - martin signature.asc Description: This is a digitally signed message part.
Re: Oracle and IBM maven repos
Does anybody know the URL for the maven2 repos for Oracle and IBM ? You probably don't just want to know the URLs for some repos hosted by a couple companies, right? Ultimately you want to know where (what repos) you can download some particular artifacts. What artifacts are you looking for? Use the www.mvnrepository.com search engine and see if it can point you in the right direction. You can also search using the OSS Nexus installation at https://oss.sonatype.org But recognize that a great many of jars from companies like Oracle, IBM etc will simply NOT be available in any repo due to licensing issues. In those cases, you can set up a Repo Manager and install/deploy those jars directly to your MRM so they can be used by the rest of your team. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Oracle and IBM maven repos
May I also warn you of relying on random repos for solving your current problem of finding a specific artifact. Some repos have a bad history of not following Maven best-practice, which ultimately will bite you in the... Personally I'm very conservative when it comes to using external repos, which I have no a little experience with. /Anders On Thu, Jan 20, 2011 at 15:48, Wayne Fay wayne...@gmail.com wrote: Does anybody know the URL for the maven2 repos for Oracle and IBM ? You probably don't just want to know the URLs for some repos hosted by a couple companies, right? Ultimately you want to know where (what repos) you can download some particular artifacts. What artifacts are you looking for? Use the www.mvnrepository.com search engine and see if it can point you in the right direction. You can also search using the OSS Nexus installation at https://oss.sonatype.org But recognize that a great many of jars from companies like Oracle, IBM etc will simply NOT be available in any repo due to licensing issues. In those cases, you can set up a Repo Manager and install/deploy those jars directly to your MRM so they can be used by the rest of your team. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Help referencing profile properties/attributes...
We have had long discussions about why profiles are not the right way to deal with environment/deployment issues. Ron On 20/01/2011 3:05 AM, Anders Hammar wrote: Not that I know of, no. In your example, why don't you just specify the value ('staging') in the confgiuration of the surefire plugin? /Anders On Thu, Jan 20, 2011 at 07:52, Jeffpredato...@gmail.com wrote: I'm new to Maven and am building a POM with profiles. I want to be able to set a system property that contains the value of the current profile(s). Currently I have multiple profiles that each relate to different web app servers (dev, test, staging, etc.) in our dev/test environment. I want the profile (via the surefire plugin) to set a system property called config that can be read during the test goal to change which web app server to use (via property file). Currently the value of the config system property is equivalent to the value of the profile id. Is there a syntax in the POM for referencing the id of the profile that is in the parent chain of the property being set? For example, in the profile below, can I reference the profile id in order to retrieve the value staging? I've tried ${profile.id}, ${id}, but they don't work. profiles profile *idstaging/id *... build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.7.1/version configuration skipfalse/skip systemPropertyVariables *config${profile.id}/config *... /profile /profiles Thanks!! -- Jeff Vincent predato...@gmail.com See my LinkedIn profile at: http://www.linkedin.com/in/rjeffreyvincent - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Help referencing profile properties/attributes...
I'm new to Maven and am building a POM with profiles. I want to be able to Then you are most likely doing things wrong. Is there no other way to build/test your app without using profiles? Currently the value of the config system property is equivalent to the value of the profile id. Is there a syntax in the POM for referencing the id of the profile that is in the parent chain of the property being set? Not that I'm aware of. The simplest fix is to just put the word staging in that plugin configuration, since your plugin is inside the profile anyway. The next simplest fix is to have another property, say profile-name, that you copy your profile id to and then reference that property where you need to use the name. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Create a common/shared task for the maven-antrun-plugin ?
I'll try to address some of your questions/concerns/suggestions with info on what I see as practical/supported/reasonable today. I'll leave the bigger philosophical and architectural ruminations to those more qualified. (I will say though that you might be interested in the composition versus inheritance topic at: http://www.sonatype.com/people/2009/11/maven-3x-paving-the-desire-lines-part-one-2/) antrun isn't for creating build logic that _non-inheriting_ poms can use. e.g. references like ${project.artifactId} always refer to the containing/inheriting pom, and are only relevant/resolved/evaluated when the antrun:run goal is executed on the containing/inheriting pom. the antrun:run goal only executes the logic when the containing/inheriting pom is going through _its_build_process_, not when some other pom depends (either through dependency or plugin) on it. the quickest way to slap together some ant and wrap a maven plugin around it is to either use groovy+antdsl: http://groovy.codehaus.org/Using+Ant+from+Groovy or ant-based-plugin: http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html I mentioned the groovy+antdsl route because it seems easier and more powerful to me. You don't have to manually construct the plugin metadata file (you have to with direct ant-based plugins) and you can use all your java/groovy/ant knowledge and capability together in the same source file. -- View this message in context: http://maven.40175.n5.nabble.com/Create-a-common-shared-task-for-the-maven-antrun-plugin-tp3346449p3349900.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: Help referencing profile properties/attributes...
Thanks all for the comments. If there is a better way to do what I need, then I welcome help to understand how to do it right. We have configurations we need to load for the various development and testing environments (unit and integration). I've been working to put the specific configuation information for each environment (URL's, IP's, debug levels, etc.) into property files. Each property file will have a name like test.properties or staging.properties. There is a 1 to 1 mapping between a maven profile and each properties file. (e.g., profile.id = staging loads staging.properties) As I understand it, the *profile mechanism is the way to affect behavior at run-time*. So I'm setting a system property in the profile that will trigger a specific file to be loaded. If there is a better way for my code to know what profile was selected, I've not been able to find it. Since each profile is identical except for the id and the value of the system property being set and maven encourages universal reuse, I was hoping to just reference the profile id when setting the system property. Then when I copy the profile to add new ones all I would need to change is the profile id. Thoughts? On Thu, Jan 20, 2011 at 8:39 AM, Wayne Fay wayne...@gmail.com wrote: I'm new to Maven and am building a POM with profiles. I want to be able to Then you are most likely doing things wrong. Is there no other way to build/test your app without using profiles? Currently the value of the config system property is equivalent to the value of the profile id. Is there a syntax in the POM for referencing the id of the profile that is in the parent chain of the property being set? Not that I'm aware of. The simplest fix is to just put the word staging in that plugin configuration, since your plugin is inside the profile anyway. The next simplest fix is to have another property, say profile-name, that you copy your profile id to and then reference that property where you need to use the name. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Jeff Vincent predato...@gmail.com See my LinkedIn profile at: http://www.linkedin.com/in/rjeffreyvincent
Re: GWT Widget as JAR
On 20 January 2011 06:26, Jesse Farinacci jie...@gmail.com wrote: Greetings Hilco, On Wed, Jan 19, 2011 at 8:07 PM, Hilco Wijbenga hilco.wijbe...@gmail.com wrote: Option 1: It's easy to write a POM that creates a JAR for a GWT widget including CSS and other resources. It's also easy to then write a POM that depends on that JAR and creates a WAR for integration testing. So far so good. This is by far the best solution. If you want to create widgets to be shared across multiple projects, just make a packaging=jar and make sure src/main/java is part of build.resources. Then include src/main/java/com/acme/gwt/client/MyWidget.java and src/main/resources/com/acme/gwt/MyWidgets.gwt.xml as part of the project and install it as per usual (mvn install). I agree but only from a build/Maven's point of view. Problem: Making changes in (e.g.) the CSS requires a full rebuild of both the JAR and the WAR. This is a real productivity issue. I'm not unsympathetic to this, but you can't have it both ways. You either want re-usable components a la a library, which has a bit of steadiness to it, or you want rapid development -- they are competing goals. I think I *can* have it both ways. It's working now. :-) Option 2: Put everything in a single WAR project. Integration testing uses this WAR and development can make changes that are reflected after a simple refresh. Yep, you can definitely do this, but it goes against the (unstated by OP) goal of reusability of components. It may not have been stated very clearly but it was certainly implied. :-) Reusability is why I'm trying to do all this. I don't think it goes against this, it just makes it a bit harder. Problem: We need a JAR, not a WAR for our other GWT projects that want to reuse the widget. Your war project which wants to incorporate the reusable widget jar need only to add inherits name=com.acme.gwt.MyWidgets/ and then utilize MyWidget somewhere. It will be properly compiled, and since you include src/main/java as part of the reusable widget's build.resources, GWT compiler will be happy. Not quite following you here. What you say is true, and it's what I'm doing, but I don't see how it relates to the problem. I need a JAR, not a WAR, as a dependency. (Well, strictly speaking, a WAR would work too but I'd have to unzip it before using [parts of] it.) The only solution that I can see is to go with option 2 and create a second (JAR) project that depends on the WAR and strips away all its web-app-ness to create the JAR I referred to in option 1. This achieves all my goals but isn't very elegant. Can anyone think of a better way to do this? Best of luck to you, I have had a lot of success with the method I've outlined. I have about two dozen general purpose widgets, twice that in general reusable GWT async services, and incorporated them into about 20 internal projects. Everything works quite nicely... I take it you don't have to deal with many other people (specifically non-developer people). :-) But even if it were just me, it's really nice to be able to see changes reflected after a refresh instead of a full rebuild of both a JAR and a WAR. The current setup is working quite nicely. My WAR project generates a JAR as well and this JAR contains just the files needed for a GWT widget. I was a little worried because the JAR and WAR share the same POM (with packagingwar/packaging) but that does not seem to be a problem. Cheers, Hilco - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Swapping in a different logging implementation?
Yeah...hmm...that's kind of what I thought. OK, thanks anyway! Best, Laird -- View this message in context: http://maven.40175.n5.nabble.com/Swapping-in-a-different-logging-implementation-tp3348088p3350276.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: GWT Widget as JAR
Hello, On Thu, Jan 20, 2011 at 1:24 PM, Hilco Wijbenga hilco.wijbe...@gmail.com wrote: On 20 January 2011 06:26, Jesse Farinacci jie...@gmail.com wrote: This is by far the best solution. If you want to create widgets to be shared across multiple projects, just make a packaging=jar and make sure src/main/java is part of build.resources. Then include src/main/java/com/acme/gwt/client/MyWidget.java and src/main/resources/com/acme/gwt/MyWidgets.gwt.xml as part of the project and install it as per usual (mvn install). I agree but only from a build/Maven's point of view. This is the Maven mailing list.. ;-) And what's good for Maven is almost always good for the developers. If you find this not to be the case, I suggest you re-evaluate your process because fighting Maven isn't really worth it. Maven is opinionated software. I'm not unsympathetic to this, but you can't have it both ways. You either want re-usable components a la a library, which has a bit of steadiness to it, or you want rapid development -- they are competing goals. I think I *can* have it both ways. It's working now. :-) I didn't tell you any of the several philosophically non-Maven ways that would enable it to work. I'm glad you got it working for you specifically, but everything you're apparently doing seems counter to Maven design goals. More soon. Option 2: Put everything in a single WAR project. Integration testing uses this WAR and development can make changes that are reflected after a simple refresh. Yep, you can definitely do this, but it goes against the (unstated by OP) goal of reusability of components. It may not have been stated very clearly but it was certainly implied. :-) Reusability is why I'm trying to do all this. Reusability.. hm. I am thinking about reusability of a particular GWT widget from multiple, possibly unrelated, consumer projects. Unnecessarily dumping everything into a WAR project seems incredibly naive and wasteful. You already admit that you're breaking Maven convention by producing multiple artifacts from the same module; you're forcing Maven to do something it doesn't want to, and you most likely (even if you aren't aware of why) don't want to do either. Unless you're creating a full-on web application, you shouldn't use the war packaging type. Reusable GWT widgets are best suited for jar packaging artifact. You can still run normal jUnit and HtmlUnit tests. I guess my mistake here is presuming that your generically reusable widget is actually tested outside of where you are using it in specific projects.. you seem to want to tweak this reusable widget as you are using it, as if it weren't fully developed when you start using it. This smells to me of you not fully understanding the needs of said widget ahead of time. That's fine, but let us agree that that design strategy is fully outside the realm of normal library engineering. Problem: We need a JAR, not a WAR for our other GWT projects that want to reuse the widget. Your war project which wants to incorporate the reusable widget jar need only to add inherits name=com.acme.gwt.MyWidgets/ and then utilize MyWidget somewhere. It will be properly compiled, and since you include src/main/java as part of the reusable widget's build.resources, GWT compiler will be happy. Not quite following you here. What you say is true, and it's what I'm doing, but I don't see how it relates to the problem. I need a JAR, not a WAR, as a dependency. (Well, strictly speaking, a WAR would work too but I'd have to unzip it before using [parts of] it.) I think you're quite confused about how Maven should be utilized. And possibly about how WAR overlays work (which I am not recommending for your solution!), not to mention the GWT compiler. The only solution that I can see is to go with option 2 and create a second (JAR) project that depends on the WAR and strips away all its web-app-ness to create the JAR I referred to in option 1. This achieves all my goals but isn't very elegant. Can anyone think of a better way to do this? Best of luck to you, I have had a lot of success with the method I've outlined. I have about two dozen general purpose widgets, twice that in general reusable GWT async services, and incorporated them into about 20 internal projects. Everything works quite nicely... I take it you don't have to deal with many other people (specifically non-developer people). :-) But even if it were just me, it's really nice to be able to see changes reflected after a refresh instead of a full rebuild of both a JAR and a WAR. About a half dozen internal consumers of my GWT libraries who are human, other than me. I think your desire to be able to tweak these re-usable widgets on the fly demonstrates precisely that you are trying to force reusability as an afterthought. You're developing the widget as you need it, and want to get proper separation of concerns happening, but you're just not there yet. I think you'd be
mvn test and specifying a particular test file
when I execute mvn test, is there a way to select only one of my test files in /src/test/java (or src/test/groovy)? For example mvn test org.mydomain.myproject.MyTestFile
Re: mvn test and specifying a particular test file
mvn clean test -Dtest=MyTestFile On Thu, Jan 20, 2011 at 4:04 PM, Ed Young e...@summitbid.com wrote: when I execute mvn test, is there a way to select only one of my test files in /src/test/java (or src/test/groovy)? For example mvn test org.mydomain.myproject.MyTestFile
Re: mvn test and specifying a particular test file
Yes, of course there is mvn -Dtest=MyTest It's in the FAQ. Sorry team. On Thu, Jan 20, 2011 at 2:04 PM, Ed Young e...@summitbid.com wrote: when I execute mvn test, is there a way to select only one of my test files in /src/test/java (or src/test/groovy)? For example mvn test org.mydomain.myproject.MyTestFile -- - Ed
Resolving custom dependencies extension type
I have a custom module type called custom-type-abc that is packaged as a jar. I have another custom module type custom-type-xyz packaged as a feature. When I try to build a custom-type-xyz that has a dependency on a custom-type-abc module I get this error: Maven execution failed for file [org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sample-feature: Missing: -- 1)com.custom.type.abc:sample:custom-type-abc:1.0.0-SNAPSHOT Try downloading the file manually ... 1 Required artifact is missing for artifact: com.custom.type.xyz:sample-feature:pom:1.0.0-SNAPSHOT I have added a custom lifecycle mapping and component configuration component roleorg.apache.maven.artifact.handler.ArtifactHandler/role role-hintcustom-type-xyz/role-hint implementation org.apache.maven.artifact.handler.DefaultArtifactHandler /implementation configuration extensionfeature/extension typecustom-type-xyz/type packagingcustom-type-xyz/packaging /configuration /component component roleorg.apache.maven.artifact.handler.ArtifactHandler/role role-hintcustom-type-abc/role-hint implementation org.apache.maven.artifact.handler.DefaultArtifactHandler /implementation configuration extensionjar/extension typecustom-type-abc/type packagingcustom-type-abc/packaging /configuration /component I was expecting maven to read this configuration and map custom-type-abc to jar when it goes to look in the maven repository, but apparently it doesn't do that. Does anyone know the right way to do this? Thanks much, Daniel -- View this message in context: http://maven.40175.n5.nabble.com/Resolving-custom-dependencies-extension-type-tp3350363p3350363.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: Help referencing profile properties/attributes...
Is there any reason why deployment and server specific configurations are mixed in with your code? This is not a good thing and usually not needed. When you configure a server, you should be able to include this information in the server configuration not in the application code. 1) The application should run on whatever server it finds itself loaded on. If it needs to know something about the server, it should ask the server. This includes stuff like webservice endpoints if they change between test and production - and the had better or someday you may find a test calling production services and really making a big mess. If you leave this kind of stuff in the hands of a developer, you are bound to have something bad happen eventually. 2) When you build a release of something you should not be rebuilding it after you have tested it unless you are going to test it again. There is no way to do this with the structure that you are proposing. 3) You are making your builds too complicated and error prone. See JNDI. http://download.oracle.com/javase/jndi/tutorial/TOC.html From my blog http://blog.artifact-software.com/tech/?p=58 BTW. You are not the only one who has to run software on development machines, test machines and often hundreds or thousands of production machines. You do not need to go down this route and the usual destination is not a good one. Fix it as soon as you can and your whole development to production cycle will get much easier. Ron On 20/01/2011 1:09 PM, Jeff wrote: Thanks all for the comments. If there is a better way to do what I need, then I welcome help to understand how to do it right. We have configurations we need to load for the various development and testing environments (unit and integration). I've been working to put the specific configuation information for each environment (URL's, IP's, debug levels, etc.) into property files. Each property file will have a name like test.properties or staging.properties. There is a 1 to 1 mapping between a maven profile and each properties file. (e.g., profile.id = staging loads staging.properties) As I understand it, the *profile mechanism is the way to affect behavior at run-time*. So I'm setting a system property in the profile that will trigger a specific file to be loaded. If there is a better way for my code to know what profile was selected, I've not been able to find it. Since each profile is identical except for the id and the value of the system property being set and maven encourages universal reuse, I was hoping to just reference the profile id when setting the system property. Then when I copy the profile to add new ones all I would need to change is the profile id. Thoughts? On Thu, Jan 20, 2011 at 8:39 AM, Wayne Faywayne...@gmail.com wrote: I'm new to Maven and am building a POM with profiles. I want to be able to Then you are most likely doing things wrong. Is there no other way to build/test your app without using profiles? Currently the value of the config system property is equivalent to the value of the profile id. Is there a syntax in the POM for referencing the id of the profile that is in the parent chain of the property being set? Not that I'm aware of. The simplest fix is to just put the word staging in that plugin configuration, since your plugin is inside the profile anyway. The next simplest fix is to have another property, say profile-name, that you copy your profile id to and then reference that property where you need to use the name. Wayne - 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: GWT Widget as JAR
Hi Jesse, I know all about Maven and how to do things in the mythical Maven Way. I also understand GWT and GWT widgets. The problem is in the efficient combination. I would like to have a clean JAR for the widget and a WAR for integration testing (of that widget). That's all easy. During development of a widget JAR, however, I need to be able to change HTML/CSS and see the effect in the browser with a simple refresh. I don't know how to do that without using a WAR. So how do you work on your widgets? Or do you not run/try out your widgets separately? I'm sure that once a widget is done, and used by a few apps, it doesn't need much TLC any more. The question is, how do you efficiently get to that stage? I take it you're happy with your process, so how do you go about creating a widget? Cheers, Hilco - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: GWT Widget as JAR
On 20 January 2011 13:39, Hilco Wijbenga hilco.wijbe...@gmail.com wrote: During development of a widget JAR, however, I need to be able to change HTML/CSS and see the effect in the browser with a simple refresh. I don't know how to do that without using a WAR. So how do you work on your widgets? Or do you not run/try out your widgets separately? Mmmh, it seems that war packaging is not required to get it to run with gwt:run and Jetty. I'm going to see how far I can get with a profile that adds support for running in DevMode. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Help referencing profile properties/attributes...
I don't want to debate our architecture or processes since I have little to do with defining them, but its an N-tiered web application comprising from one to dozens of servers. Many of the tests are Selenium Integration tests on Windows clients hitting remote servers that are mostly Linux. We have dev and test instances that we hit during development. One of the key properties that changes is the baseURL used by selenium, as well as debugging levels. The integration test code is not currently part of the source for the application. The tests never run on the app servers directly (I've never seen anyone do that anyway...our build servers don't run the web app.), particularly the integration tests as they are client-based. We are running the tests from dev workstations for now but will eventually expand to running a subset of integration tests via Hudson. We are leveraging as much of Maven through the entire process as possible in order to maximize reuse, portability and integration moving forward. Anything else I can clarify? On Jan 20, 2011 2:24 PM, Ron Wheeler rwhee...@artifact-software.com wrote:
Artifacts with License Notice Distribution Requirements and Maven the build tool
Hi folks, I've been searching the archives for information on how maven addresses the licensing requirements of its contained artifacts but haven't found an answer. I'm referring to maven the build tool and not referring to the maven central repository or any repository in particular. Many artifacts assembled via maven (again, the tool and not the repository) require that a license notice accompany the downloaded artifact(s). To this extent, one should be able to indicate in the POM of a particular artifact that one (or more) license notices be retrieved and delivered to the local repository at the same moment as the artifact itself. Please note that this should be the normal course of events for a normal build goal (ex: mvn install) and not be some special goal, because it should be mandatory on the retrieval of the artifact into the local repository. Furthermore, I would suggest that retrieving the license file into the local repository is not sufficient: an information line in the normal build log should indicate the license (or group of licenses) with a link to the license file recovered in the local repository. I think that this is the requirement for maven, as a build tool, to permit a POM to indicate the license requirement and to enforce that license requirement (i.e. copying the license notice and making the copy conspicuous to the receiver) as part of a standard build. If you've gotten this far, then I have two questions: (a) Does maven allow this today? (And, please, don't mention any maven license plugins -- it must be part of the box standard build) (b) If not possible, don't you agree that this is the real requirement? thanks for returns and help on this point cheers -alan - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Artifacts with License Notice Distribution Requirements and Maven the build tool
a) no b) For some use cases yes. For others, no. Regardless if it's a requirement or not, support doesn't exist in Maven core. Someone needs to implement it. Doing it via a plugin is one path. A different path is to handle it in the repo manager. /Anders On Fri, Jan 21, 2011 at 07:46, Alan Painter alan.pain...@gmail.com wrote: Hi folks, I've been searching the archives for information on how maven addresses the licensing requirements of its contained artifacts but haven't found an answer. I'm referring to maven the build tool and not referring to the maven central repository or any repository in particular. Many artifacts assembled via maven (again, the tool and not the repository) require that a license notice accompany the downloaded artifact(s). To this extent, one should be able to indicate in the POM of a particular artifact that one (or more) license notices be retrieved and delivered to the local repository at the same moment as the artifact itself. Please note that this should be the normal course of events for a normal build goal (ex: mvn install) and not be some special goal, because it should be mandatory on the retrieval of the artifact into the local repository. Furthermore, I would suggest that retrieving the license file into the local repository is not sufficient: an information line in the normal build log should indicate the license (or group of licenses) with a link to the license file recovered in the local repository. I think that this is the requirement for maven, as a build tool, to permit a POM to indicate the license requirement and to enforce that license requirement (i.e. copying the license notice and making the copy conspicuous to the receiver) as part of a standard build. If you've gotten this far, then I have two questions: (a) Does maven allow this today? (And, please, don't mention any maven license plugins -- it must be part of the box standard build) (b) If not possible, don't you agree that this is the real requirement? thanks for returns and help on this point cheers -alan - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org