Re: Problem with maven for php

2012-06-27 Thread martin.eisengardt
You would have better luck on a maven php mailing list than here as this is specific to that php plugin. And that google group is located at https://groups.google.com/forum/?fromgroups#!forum/maven-for-php Berrie already says: The zend archetype is available with version 2.0.0

How to change an xml file in my war during build

2012-06-27 Thread syg6
I would like to conditionally update an arbitrary .xml file in my .war during the maven build. Is this possible? I know I could simply use the exec-maven-plugin to run a shell script that opens and edits the file. But what I need is something a bit more elaborate. I need to update the file *if

Re: How to change an xml file in my war during build

2012-06-27 Thread Dan Tran
truezip-maven-plugin? -D On Wed, Jun 27, 2012 at 12:56 AM, syg6 s...@yahoo.com wrote: I would like to conditionally update an arbitrary .xml file in my .war during the maven build. Is this possible? I know I could simply use the exec-maven-plugin to run a shell script that opens and edits

RE: [ANN] JAXB-2 Maven Plugin 1.4 Released

2012-06-27 Thread Nord, James
When I looked about 7 months ago the jvnet plugin supported episodes whereas the codehaus one did not. /James -Original Message- From: Kathryn Huxtable [mailto:kath...@kathrynhuxtable.org] Sent: 26 June 2012 21:42 To: Maven Users List Subject: Re: [ANN] JAXB-2 Maven Plugin 1.4

RE: Problem with maven for php

2012-06-27 Thread Martin Gainty
fernanda-Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId=php5-zend-archetype -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file1)find the artfact (php5-zend-archetype)

Maven with JDK 7

2012-06-27 Thread Delaney, Andy
Hi All I'm working on a JDK 7 project and am trying to use maven to build the project. However, when I try to run the maven bat under Java 7 it fails to download any dependencies - when I switch back to Java 6 it downloads them just fine but of course can't compile my java 7 sources.

Re: Maven with JDK 7

2012-06-27 Thread Markku Saarela
Hi, Java 7 use IPv6 (not IPv4) if OS supports it. So if you firewall restricts IPv6 then you got behavior you describe. Also Nexus running on Java 7 failed to connect and app servers etc if firewall does not allow IPv6 communication. Markku On 27.6.2012 15:18, Delaney, Andy wrote: Hi All

Re: Maven with JDK 7

2012-06-27 Thread Markku Saarela
Hi, If you have already turn of firewall, go to network adapter properties and disable IPv6 support. Markku On 27.6.2012 15:26, Markku Saarela wrote: Hi, Java 7 use IPv6 (not IPv4) if OS supports it. So if you firewall restricts IPv6 then you got behavior you describe. Also Nexus running

RE: Maven with JDK 7

2012-06-27 Thread Delaney, Andy
Perfect! Thank you Markku and such a quick response I added '-Djava.net.preferIPv4Stack=true' MAVEN_OPTS and am now in business. Thanks again Andy -Original Message- From: Markku Saarela [mailto:markku.saar...@pp6.inet.fi] Sent: 27 June 2012 13:27 To: users@maven.apache.org Subject:

RE: Maven with JDK 7

2012-06-27 Thread Eric Barboni
Hi, You may use -Djava.net.preferIPv4Stack=true for non netbeans executed jvm or -J-Djava.net.preferIPv4Stack=true in the netbeans_default_options in /etc/netbeans.conf file to be able to forec jdk 7 to use ipv4 Eric -Message d'origine- De : Markku Saarela

Re: Maven with JDK 7

2012-06-27 Thread martin.eisengardt
O_o I reported a bug at bugzilla related to m2e: https://bugs.eclipse.org/bugs/show_bug.cgi?id=362418 As I see this mail I am wondering if this is the same cause. Maybe my command line uses another jdk (1.6) and thus it works perfect. I know that my eclipse is using a 1.7 jdk. I will give it a

Moving to maven-compatible version numbers?

2012-06-27 Thread org.apache.maven.user
Hello. I'm working on a project that uses version numbers of the form: 2.0-rc9 Where '2' is the major version, '0' is the minor version, and 'rc9' is obviously some sort of qualifier - this one being release candidate 9. Obviously, Maven doesn't deal with this too well (it falls back to

The problem with import maven project

2012-06-27 Thread Kireniene
Describe the problem (the version used Java 1.6, Eclipse Indigo SR2, m2e 1.0.2, Apache maven plugin 3.0.4). (in the maven still a beginner) There is Mavan project, import it via Import - Existing Maven Projects. The project has a pom.xml, and dependency: ! - Util - dependency groupId

Re: The problem with import maven project

2012-06-27 Thread Wayne Fay
After building the project util-0.1.jar I have got the list of Maven Dependencies with util-0.1.jar, but the util-0.1.jar has its own pom.xml: util-0.1.jar\META-INF\maven\com.mycompany\util\pom.xml  - and this child pom maven ignores (child pom have lot of  important links in own pom in

Re: The problem with import maven project

2012-06-27 Thread Kireniene
ok, sorry for bad english. util-0.1.jar - have own pom.xml in path util-0.1.jar\META-INF\maven\com.mycompany\util\pom.xml . This file is ignored when i Import - Existing Maven Projects. Why ? -- View this message in context:

RE: The problem with import maven project

2012-06-27 Thread Thiessen, Todd (Todd)
Not sure if that is going to help much ;-). This path that you reference: util-0.1.jar\META-INF\maven\com.mycompany\util\pom.xml is suggesting you are referring to the built jar. What does this have to do with importing your project? Further, what do you mean by import maven project? Are

RE: The problem with import maven project

2012-06-27 Thread Thiessen, Todd (Todd)
Correction for last sentence: Are you talking about *importing* a maven project into eclipse? -Original Message- From: Thiessen, Todd (Todd) [mailto:tthies...@avaya.com] Sent: Wednesday, June 27, 2012 12:35 PM To: Maven Users List Subject: RE: The problem with import maven project

exec maven goals from java fails - invalid plugin descriptor

2012-06-27 Thread Shaddow89
Hi, i am currently developing a maven plugin that invokes several other plugins while it is executed. Therefore i use MavenCli: StringBuffer commands = new StringBuffer(); commands.append(org.codehaus.mojo:exec-maven-plugin:1.2:exec );

Unable to push to scp repository

2012-06-27 Thread org.apache.maven.user
Hello. I have the following pom: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd;

RE: The problem with import maven project

2012-06-27 Thread Kireniene
http://maven.40175.n5.nabble.com/file/n5712216/prj.gif in screenshort you see Dependency Hierarchy. for example: gwt-user.jar has 2 child element: validation-api... validation-api... spring-jdbc has 3 child element: spring-beans... spring-core... spring-tx... util.jar - no

Re: Unable to push to scp repository

2012-06-27 Thread org.apache.maven.user
On Wed, 27 Jun 2012 17:34:13 + org.apache.maven.u...@io7m.com wrote: mvn -X gpg:sign-and-deploy-file \ -DpomFile=pom.xml \ -Dfile=test-1.0.0.jar \ -Durl=scp://www/home/m0/repos \ -DrepositoryId=www-test-mirror Naturally, a minute or so after I clicked send,

RE: The problem with import maven project

2012-06-27 Thread Thiessen, Todd (Todd)
Ok. So you are talking about eclipse. You may want to ask this on the eclipse list. Try a mvn dependency:tree. It will give a you a textual output that is similar to the maven 2 eclipse plugin. If that differs, then eclipse may be doing something fishy. Are you looking at the correct util

RE: The problem with import maven project

2012-06-27 Thread Kireniene
right clicking on util.jar on eclipse i see this (util.jar have other contents, see top): ?xml version=1.0 encoding=UTF-8? project xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; xmlns=http://maven.apache.org/POM/4.0.0;

RE: The problem with import maven project

2012-06-27 Thread Shaddow89
As Todd pointed out, the eclipse dependency view might not be that reliable. You are better of if you check this by command line. I dont get why the build would break. Do you create a jar depending on your util jar? If so, the build should not break, since by default a jar wouldn't assemble all

RE: The problem with import maven project

2012-06-27 Thread Thiessen, Todd (Todd)
There you go. It looks like you installed that jar into your local repository and when you did so, you didn't use the pom that that jar comes with. Where did you get that jar from? -Original Message- From: Kireniene [mailto:mar...@idknet.com] Sent: Wednesday, June 27, 2012 2:06 PM

RE: The problem with import maven project

2012-06-27 Thread Shaddow89
This is what a pom looks like, when you install a non-maven jar to your repository using the maven-install-plugin (as said in the description). This is not the jar you have shown in your first point. Since this pom does not contain any of your dependencies, eclipse acts correct. Remove the jar

Re: exec maven goals from java fails - invalid plugin descriptor

2012-06-27 Thread Fernanda Araújo
Hi, I had a kinda similar problem, I think it has to do with the version of exec-maven-plugin you are using 1.2 try changing it. On Wed, Jun 27, 2012 at 2:02 PM, Shaddow89 hagemeier.an...@googlemail.comwrote: Hi, i am currently developing a maven plugin that invokes several other plugins

RE: The problem with import maven project

2012-06-27 Thread Thiessen, Todd (Todd)
BTW. It also looks like you are not using a repository manager. It is highly recommended that you do so. -Original Message- From: Thiessen, Todd (Todd) [mailto:tthies...@avaya.com] Sent: Wednesday, June 27, 2012 2:08 PM To: Maven Users List Subject: RE: The problem with import

Re: exec maven goals from java fails - invalid plugin descriptor

2012-06-27 Thread Shaddow89
Tried 1.2.1, 1.1 and 1.0 as well. Always the same error -- View this message in context: http://maven.40175.n5.nabble.com/exec-maven-goals-from-java-fails-invalid-plugin-descriptor-tp5712214p5712225.html Sent from the Maven - Users mailing list archive at Nabble.com.

Re: exec maven goals from java fails - invalid plugin descriptor

2012-06-27 Thread Robert Scholte
I noticed you used the word 'invoke' several times, and that's where you have to look for: maven-invoker[1] maven-invoker-plugin[2] -Robert [1] http://maven.apache.org/shared/maven-invoker/ [2] http://maven.apache.org/plugins/maven-invoker-plugin/ Op Wed, 27 Jun 2012 20:20:17 +0200 schreef

maven release plugin with CVS, alternative to CVSPRO for client?

2012-06-27 Thread Tim Dugan
Hi All, I'd like to try out the maven release plugin and I have a CVS repository. From a link off the Maven Wiki (http://docs.codehaus.org/display/MAVENUSER/Create+a+release+using+CVSNT) and from a great write up here ( http://java.dzone.com/articles/automating-releases-maven-0 ) it looks

Re: maven release plugin with CVS, alternative to CVSPRO for client?

2012-06-27 Thread Robert Scholte
There are 2 implementations for cvs[1]: - java version, which is the default - native version. AFAIK both implementations should work together with the maven-release-plugin. -Robert [1] http://maven.apache.org/scm/cvs.html Op Wed, 27 Jun 2012 21:24:06 +0200 schreef Tim Dugan

Re: exec maven goals from java fails - invalid plugin descriptor

2012-06-27 Thread Shaddow89
I dont know why i didnt find that, but using the invoker API solved my problems ;) thanks -- View this message in context: http://maven.40175.n5.nabble.com/exec-maven-goals-from-java-fails-invalid-plugin-descriptor-tp5712214p5712248.html Sent from the Maven - Users mailing list archive at

Define JDK for a specific plugin

2012-06-27 Thread Bodhayan Chakraborty
Hi, I want to execute a maven plugin with a defined JDK irrespective of the JDK that invoked the mvn command. I have developed a plugin which invokes a API. That API can run only in 32 bit java. The goal for that plugin is store:store. So, if I execute mvn clean compile deploy store:store, the