Re: Query re: Maven Repository

2011-01-20 Thread Anders Hammar
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

Re: Help referencing profile properties/attributes...

2011-01-20 Thread Anders Hammar
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

Re: downloading resources

2011-01-20 Thread Stephen Connolly
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

Maven repositories without the jars

2011-01-20 Thread Jonathan Vila Lopez
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:

Re: Generating web project with java, webapp, and resource folder from archtype goal

2011-01-20 Thread Piotr Skawinski
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

Problem Executing Application With Maven

2011-01-20 Thread Chintan Sanghavi
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

Re: Maven repositories without the jars

2011-01-20 Thread Anders Hammar
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.

Re: Maven repositories without the jars

2011-01-20 Thread Anders Hammar
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

Re: Problem Executing Application With Maven

2011-01-20 Thread Anders Hammar
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:

Re: Maven repositories without the jars

2011-01-20 Thread Jonathan Vila Lopez
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

Re: Maven repositories without the jars

2011-01-20 Thread Wayne Fay
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

Oracle and IBM maven repos

2011-01-20 Thread Jonathan Vila Lopez
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

2011-01-20 Thread Marc Rohlfs
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

Maven Assembly Plug-in - Creating custom root folder inside TAR file

2011-01-20 Thread Tirumal Reddy Moolamalla
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 artifacts library for downloaded IBM jar files.

2011-01-20 Thread Jonathan Vila Lopez
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

RE: Maven Assembly Plug-in - Creating custom root folder inside TAR file

2011-01-20 Thread Tirumal Reddy Moolamalla
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:

Re: Maven Assembly Plug-in - Creating custom root folder inside TAR file

2011-01-20 Thread Marc Rohlfs
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

Re: Maven Assembly Plug-in - Creating custom root folder inside TAR file

2011-01-20 Thread Marc Rohlfs
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

Re: Oracle and IBM maven repos

2011-01-20 Thread Wendy Smoak
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

Re: Create artifacts library for downloaded IBM jar files.

2011-01-20 Thread Wendy Smoak
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

Re: GWT Widget as JAR

2011-01-20 Thread Jesse Farinacci
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

Re: Generating web project with java, webapp, and resource folder from archtype goal

2011-01-20 Thread Wayne Fay
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

Re: Generating web project with java, webapp, and resource folder from archtype goal

2011-01-20 Thread Martin Höller
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 |--

Re: Oracle and IBM maven repos

2011-01-20 Thread Wayne Fay
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?

Re: Oracle and IBM maven repos

2011-01-20 Thread Anders Hammar
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

Re: Help referencing profile properties/attributes...

2011-01-20 Thread Ron Wheeler
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

Re: Help referencing profile properties/attributes...

2011-01-20 Thread Wayne Fay
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

Re: Create a common/shared task for the maven-antrun-plugin ?

2011-01-20 Thread lukewpatterson
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

Re: Help referencing profile properties/attributes...

2011-01-20 Thread Jeff
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

Re: GWT Widget as JAR

2011-01-20 Thread Hilco Wijbenga
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

Re: Swapping in a different logging implementation?

2011-01-20 Thread ljnelson
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.

Re: GWT Widget as JAR

2011-01-20 Thread Jesse Farinacci
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

mvn test and specifying a particular test file

2011-01-20 Thread Ed Young
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

2011-01-20 Thread Laird Nelson
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

2011-01-20 Thread Ed Young
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

Resolving custom dependencies extension type

2011-01-20 Thread hankolerd
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

Re: Help referencing profile properties/attributes...

2011-01-20 Thread Ron Wheeler
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

Re: GWT Widget as JAR

2011-01-20 Thread Hilco Wijbenga
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

Re: GWT Widget as JAR

2011-01-20 Thread Hilco Wijbenga
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

Re: Help referencing profile properties/attributes...

2011-01-20 Thread Jeff
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

Artifacts with License Notice Distribution Requirements and Maven the build tool

2011-01-20 Thread Alan Painter
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

Re: Artifacts with License Notice Distribution Requirements and Maven the build tool

2011-01-20 Thread Anders Hammar
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