Hudson Violation Plugin

2008-07-09 Thread Dooing
Hi, I know Hudson is not directly Maven related, but I know many of you are using Hudson too, so maybe someone could give me a hint (if not just ignore this mail, thank you) - I really tried my best the damn entire day, but can't figure it out myself: I would like to add the Notification

HELP war:inplace eats up all my files' content! :-(

2008-04-01 Thread Dooing
Hi, I've got the following problem: when I call mvn war:inplace, the goal fails: [INFO] [war:inplace] [INFO] Generating webapp in source directory[MY_war_source_directory] [INFO] Assembling webapp[webclient] in [MY_war_source_directory] [INFO] Processing war project [INFO] Copy webapp

Maven Assembly Plugin

2008-03-28 Thread Dooing
Hi, I am trying to create a zip file containing all static web content, to be put on a separate Apache server. The Maven Assembly plugin seems to be meant to be used for such a task - http://maven.apache.org/plugins/maven-assembly-plugin/ According to the instructions given, I added: plugins

Re: RE: Maven Assembly Plugin

2008-03-28 Thread Dooing
Inside of my fileSet element I have included a: directory${basedir}/directory Element... Does this help? nope, unfortunately, it didnt work. This, as I understand it, simple says take all files from basedir. Thanks, Stefanie -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der

Re: RE: Maven Assembly Plugin

2008-03-28 Thread Dooing
I guess I should mention I am not using the default maven project structure - for example, the static source code is under src/war - maybe I will have to adjust the maven assembly default paths? Thanks, Stefanie -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für

Mvn 2 plugin to copy files?

2008-03-28 Thread Dooing
Hi, While tomcat is running, I would like to move some files from my source folder to my tomcat/webapps/myproject folder - in case I altered these files - by calling some plugin and or goal. Using Maven 1, we had a custom goal for this: goal name=jspdeploy copy overwrite=false

Re: Mvn 2 plugin to copy files?

2008-03-28 Thread Dooing
I use the antrun plugin for copying files around and such. You just put in the ant equivalent to your xml, which shouldn't be much different from what you have. Could you give an example of how this is done? I don't know much about antrun and how to use it... Thanks in advance, Stefanie --

resource plugin - does it require a profile?

2008-03-28 Thread Dooing
Hi, I found out that the resource plugin is capable of simply copying files to a directory. I would like to use this to update files in my tomcat webapps project folder (when necessary). However, I am already using the plugin to copy resources to the war file that is generated in the regular

Re: Findbug's Maven2 Plugin future direction

2008-03-14 Thread Dooing
[x] Release Maven2 Findbugs Plugin 1.2.0 using Findbugs 1.3.x and require Java 5 to run. -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To

Re: RE: Version Range Specification

2008-03-13 Thread Dooing
Here's my dependency tree: [INFO] [dependency:tree] [INFO] de.mycompany.myproject:war:2.3.1 [INFO] +- junit:junit:jar:3.8.1:test (scope not updated to compile) [INFO] +- de.mycompany:myproject2:jar:1.1.5:compile [INFO] | \- commons-digester:commons-digester:jar:1.6:compile

Re: Version Range Specification

2008-03-13 Thread Dooing
Well, that's not really an option, as Openlazlo needs axis. However, on the web, I found: Congratulations, you've run into the Maven Suicide Bug. Sometimes, maven downloads something which it shouldn't and afterwards, it suddenly is unable to resolve version, dependencies, whatever.

Maven Tomcat plugin with custom server.xml

2008-03-13 Thread Dooing
Hi, now that my war is build, I would like to automatically deploy it on a Tomcat Server. I tried the Maven Tomcat Plugin: http://mojo.codehaus.org/tomcat-maven-plugin/ typing: mvn tomcat:run However, this failed with: javax.naming.NameNotFoundException: Name yourdatasource is not bound in

Re: scm plugin

2008-03-12 Thread Dooing
Subversion is the default client (svn), the default server(svnserve) and the default tools (svnadmin, svnlook) in one package. There is no server edition. (Or maybe the apache mod could be called the server edition. So subversion is your client. Tortoise is just a GUI, with the svn

Version Range Specification

2008-03-12 Thread Dooing
Hi, I've got a problem - one of my projects is using openlazlo 3.2 - which stinks, as they MANUALLY changed dependencies, without any documentation about this, and they don't even provide any maven poms :-( However, we have to use it, and I am trying to get it to run using Maven 2. For

Re: RE: Version Range Specification

2008-03-12 Thread Dooing
Perhaps some other dependency wants another version? Try putting it back without the brackets and run dependency:tree to see what you get. Good point, will check that asap (when at work) - but even if - if I tell Maven that it MUST use Version xy, shouldn't it behave as it was told?! Also,

How to reference a collection of properties

2008-03-11 Thread Dooing
I would like to REUSE elements defined in my Parent POM. For example, I defined all developers of the company, writing down the first and last name, email adress and company name of each developer. Now, for each individual project, I would like to use the id of a developer as a reference to

scm plugin

2008-03-11 Thread Dooing
Hi, desperately, I am trying to integrate a subversion connection into maven 2.08. I read: http://maven.apache.org/scm/plugins/usage.html Then I added to my parent pom: developerConnection scm:svn:https://MYSECRET_INTERNAL_IP:443//THE_MAIN_PROJECT/TRUNK/MY_SUB_PROJECT /developerConnection

Re: scm plugin

2008-03-11 Thread Dooing
Yeah, I found the two slashes too, and already removed them, but this didn't improve it either. Also, I've already tried ALL scm goals I found on the scm maven site, including scm:list, but it never worked. Currently I am at home so I can't provide you the exact error message untill tomorrow

Re: scm plugin

2008-03-11 Thread Dooing
At home, I tried the same (with a not existing svn url somerepository.com) and I got: [ERROR] Provider message: [ERROR] The svn command failed. [ERROR] Command output: [ERROR] The command svn is either mispelled or could not be found (translated from german) So trying the scm command with a not

Re: scm plugin

2008-03-11 Thread Dooing
That error means that svn is not installed on your home machine. Of course, svn isn't installed on my pc - I just got a svn client - tortoise ( http://tortoisesvn.tigris.org/) to connect to a svn server. Isn't that what scm is used for?! Why would anyone install a svn server on a developer pc?!

How to reuse elements defined in a parent pom?

2008-03-09 Thread Dooing
Hi, I have a parent pom that defines everything that is shared by all projects of the company. 1. Sometimes I have to redefine PARTS (= child elements) of an element defined in the parent pom. It does work to redefine the version number or the scope of a dependency. However, I think it does

reusing developers settings

2008-03-07 Thread Dooing
Hi, in my parent pom, I defined all developers of our company. Now in each subproject, I would like to mention the developers of just this project - without redefining each developer setting. I tried: developers developer idDEVELOPER_ID/id

Re: RE: converting from maven1 to maven2, pom for third party jars?

2008-03-06 Thread Dooing
So what else do you recommend me to easily get all required dependencies on the remote server - at once if possible? What would / could happen if I simply copied the local repository to the remote one? Thanks in advance, Stefanie Original-Nachricht Datum: Thu, 6 Mar 2008

Re: RE: RE: converting from maven1 to maven2, pom for third party jars?

2008-03-06 Thread Dooing
The way local and remote repositories are different, for example: - Local snapshots are not saved with timestamp, remote snapshots are saved with timestamps. If you use a local repository as remote repository, maven can't tell if a SNAPSHOT has changed and won't download newer SNAPSHOTS.

Re: converting from maven1 to maven2, pom for third party jars?

2008-03-05 Thread Dooing
To be able to deploy something on your company's remote server, have a look at Distribution Management. What I do for those external jars is - on the console, when maven doesn't find a depdency, it always gives you the exact String you need to use to install it on your local server or to deploy

Re: jspc precompile

2008-03-04 Thread Dooing
YES! Now it works! Thanks! And this great help goal also helped me in getting the jetty jspc goal tu run. THANKS! Last but not least - is there a way to run the jspc goal standalone? When working on a certain jsp, without changing any backend java classes, creating the entire war seems to be

Re: RE: compress obfuscate js files

2008-03-04 Thread Dooing
Seperation is the way to go though IMO. You are 100% correct. Problem is, we just stared working on this project. Before, it was managed by an external company. Step by step, we will have to improve the legacy code. However, as it is now, css and javascript or totally mixed with jsp code - and

Re: jspc precompile

2008-03-04 Thread Dooing
Is there a way to just precompile the jsps to know if they'll be working / to redeploy them on tomcat server, without restarting the server? Yes, with mvn jspc:compile. :-( This says: Embedded error: The -uriroot option must specify a pre-existing directory I've read somewhere I had to

Creating sources jar

2008-03-04 Thread Dooing
Hi, when installing a jar (MyProject-1.1.jar) of the project containing the class files - is it possible to also create install MyProject-1.1-source.jar and MyProject-1.1-java-api.jar at the same time? Thanks in advance, Stefanie -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen

Re: Creating sources jar

2008-03-04 Thread Dooing
The easiest way to do this is to run mvn clean install -DperformRelease For more information on what happens behind the curtain see the maven doc about the super pom. WORKS! GREAT! THANKS! :-) -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN:

Re: dependency:analyze

2008-03-04 Thread Dooing
I have been using the dependency:analyze successfully and I find it works the way I expect (especially when migrating older code to Maven). That said, there are a couple of things to take into consideration: - Analysis is based on compiled .class files, so sometimes, a compile-time

Jsp precompile

2008-03-03 Thread Dooing
Hi, Trying to precompile Jsp's but can't get it to work. I tried the plugins: Maven jspc plugin: http://mojo.codehaus.org/jspc-maven-plugin/usage.html Maven Jetty Jspc Plugin: http://docs.codehaus.org/display/JETTY/Maven+Jetty+Jspc+Plugin However, both don't work for me. Maven jspc says:

Re: Jsp precompile

2008-03-03 Thread Dooing
firstly, and again: Do NOT just reply to a random message from the mailing list when you start a new topic. Write a NEW MAIL to the mailing list. I don't understand. I used the [EMAIL PROTECTED] mail adress, but I changed the topic. So it should be a new topic, shouldn't it?? I can't image

Re: jspc precompile

2008-03-03 Thread Dooing
Ok, now I wrote a complete new mail, hope this one's what you wanted me to do (or should I have left this topic for now...?!) Ok, one questions: is the war assembled correctly (including web.xml)? Well I think so - building a war works, and when I deploy this war into my tomcat server, the

compress obfuscate js files

2008-03-01 Thread Dooing
Hi, I am still working on moving a big legacy project from Maven 1 to Maven2. Next step is compression of javascript files. What's the best plugin for this task? http://mojo.codehaus.org/javascript-maven-tools/ ? I just found: http://alchim.sourceforge.net/hg/yuicompressor-maven-plugin/ -

Re: compress obfuscate js files

2008-03-01 Thread Dooing
We use the MobilVox Maven JavaScript Plugin [1] to compress sarissa's JS files and we're quite happy with it: http://www.mobilvox.com/projects/maven-js-plugin/ hth, Manos You probably mean: http://ossi.mobilvox.com/maven-js-plugin/index.html has anyone ever compared it to the

dependency:analyze

2008-03-01 Thread Dooing
Hi, I was recommended to use dependency:analyze by this list - It's nice, but doesn't really work imho - Many dependencies that are def. required at runtime, it interprets as not required - while others that are not required imho - it says the project would need them. Any ideas why, and / or

Re: dependency:analyze

2008-03-01 Thread Dooing
- For Web apps, do not forget to compile the JSPs into .class files and include those in the analysis to get the real picture. Oooh! Oookay! No, I didn't do that yet. That's still on my list to do. Which plugin to use for that? This one: http://mojo.codehaus.org/jspc-maven-plugin/usage.html ?

putting context.xml into META-INF

2008-02-25 Thread Dooing
Hi, i am using mvn package to create a war file of my project. However, I found out that my context.xml file, located under src/context/context.xml, is missing in the META-INF directory of the war file! Therefore, running my application fails! :-( I know there is a tomcat plugin that builds the

Migrating from Maven 1 to Maven 2

2008-02-21 Thread Dooing
Hi, I am currently migrating a big legacy project from Maven 1.02 to Maven 2.08. The project has lots of dependencies, many of which are not even used anymore, which are just transitive dependencies, or are just outdated. Are there any tools, or best practices, that could help me in getting

Re: Migrating from Maven 1 to Maven 2

2008-02-21 Thread Dooing
What exactly are you looking for help with? Converting the project.xml into pom.xml? Analyzing your dependencies to see what is actually needed? Something else entirely? Wayne Well, a converter from project.xml to pom.xml would be a first start, then, yes, something to analyze the

maven.proxy.nonProxyHosts

2007-12-21 Thread Dooing
Hi, using Maven 1.1, I've read there was an option to use a proxy and also to exclude special urls from it - for internet connections, we need to use a proxy, but for our maven repo on the LAN we don't. However, this: maven.repo.remote=http://192.168.0.54, http://www.ibiblio.org/maven

Re: maven.proxy.nonProxyHosts

2007-12-21 Thread Dooing
Try removing the http: Yeah, I tried that - then Maven even complains that the protocol is missing (plus it doesn't work either) - Only using a local repository isn't an option either - we are a big developer team, distributed over various locations, and there will always be someone

Re: maven.proxy.nonProxyHosts

2007-12-21 Thread Dooing
You are right, the http is correct actually. Another guess: replace the IP name by a DNS name? But you will have to tell us more details about the problem, just saying it doesn't work doesn't leave me a lot of clues... Well, actually, using a DNS name is just what I really want and so what

Re: maven.proxy.nonProxyHosts

2007-12-21 Thread Dooing
Nope, we don't need a proxy username or password - plus, the IP I wrote down is the IP that should NOT use a proxy. When I type in the IP into my browser, I can see the maven repository. And when I remove the proxy setting it also works in Maven. With these settings:

Re: Maven 1.1 + tomcat plugin

2007-12-20 Thread Dooing
Hi Lukas, Now I changed to the latest (and last) version of the codeczar tomcat plugin, maven-tomcat-plugin.1.2.1.jar, which I got from this url: http://www.codeczar.com/maven/codeczar-tomcat/plugins/maven-tomcat-plugin-1.2.1.jar I've read here: http://masterdev.dyndns.dk/dev/14.html That in

Re: Maven 1.1 + tomcat plugin

2007-12-20 Thread Dooing
Try running with -e to get more info, the error message seems misleading. Also try to clear your local cache, that sometimes helps. Can you run the war:webapp goal by itself? -Lukas Ok, now I found out, it must be the precompile goal - When I edit my project.properties file and set:

Maven 1.1 + tomcat plugin

2007-12-19 Thread Dooing
Hi, I just updated from Maven 1.0.2 to Maven 1.1. In Maven 1.02 I used the tomcat plugin from codezar: maven-tomcat-plugin-1.1.jar. Using Maven 1.1, I typed in: maven tomcat:deploy This gave me the error: --- Error