AW: Dependencies and Aggregation

2010-04-12 Thread Entner Harald
hmm, i would rather say that m4.1 has already a dependency to m4 (via parent definition, if there is a parent definition, i could be wrong though). E.g. in order to build m4.1 m4 needs to be built first. So if you define a dependency to m4.1 in m4 that build cannot work (due to the cycle).

AW: Dependencies and Aggregation

2010-04-12 Thread Entner Harald
btw: two commands that could be useful for you: mvn dependency:tree (to see the dependencies explicitly) and mvn help:effective-pom (to see the effective pom) with best regards, harald -Ursprüngliche Nachricht- Von: Entner Harald [mailto:entner.har...@afb.de] Gesendet: Montag, 12

AW: Controlling maven...

2010-04-06 Thread Entner Harald
you don't have to declare the plugin twice, you can declare it only once and add two execution nodes.(with all required properties). Afaik, you can put configuration information that is common to both execution nodes outside the execution node and put the execution specific information into

AW: AW: Controlling maven...

2010-04-06 Thread Entner Harald
the following: configuration ... urlVALUE/url /configuration Maven is not picking up the execution specific configuration... Andy Bell | DST Global Solutions Limited | 44 020 8390 5000x5837 Entner

AW: How to build a complicated artifact (an install CD iso image)

2010-03-23 Thread Entner Harald
Hi, I would suggest the maven assembly plugin. [1] Details on its configuration [2] [1] http://maven.apache.org/plugins/maven-assembly-plugin/ [2] http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html -Ursprüngliche Nachricht- Von: Fredrik Israelsson

AW: what copy-dependecies add -jar to artifact subDirectory

2010-01-21 Thread Entner Harald
remove this line useSubDirectoryPerArtifacttrue/useSubDirectoryPerArtifact ;) -Ursprüngliche Nachricht- Von: eyal edri [mailto:eyal.e...@gmail.com] Gesendet: Donnerstag, 21. Januar 2010 09:08 An: Maven Users List Betreff: what copy-dependecies add -jar to artifact subDirectory i'm

AW: what copy-dependecies add -jar to artifact subDirectory

2010-01-21 Thread Entner Harald
( artifactString ).append( File.separatorChar ); } So i don't think it is possible. -Ursprüngliche Nachricht- Von: Entner Harald [mailto:entner.har...@afb.de] Gesendet: Donnerstag, 21. Januar 2010 10:18 An: Maven Users List Betreff: AW: what copy-dependecies add -jar to artifact

AW: what copy-dependecies add -jar to artifact subDirectory

2010-01-21 Thread Entner Harald
An: Maven Users List Betreff: Re: what copy-dependecies add -jar to artifact subDirectory How can i propose a fix/feature to have a new tag: includeFileTypeInSubDir ? and what are the odds it will be accepted :) ? On Thu, Jan 21, 2010 at 11:31 AM, Entner Harald entner.har...@afb.dewrote: ok, i

AW: Need help to find best way to recompile complete project and dep with 1.5

2010-01-18 Thread Entner Harald
Hi, afaik aggregator project do not inherit its plugins. You have to put the compiler plugin into your parent pom (or another parent pom), then all childs will use that plugin. Additionally i would specify the relativePath, so changes to the parent are immediately visible (no need to install

AW: Questinos Regarding Testing

2010-01-15 Thread Entner Harald
even this is not a maven related question (as i assume that the dependent jar is on the classpath), how do you open the file? -Ursprüngliche Nachricht- Von: Carlo Camerino [mailto:carlo.camer...@gmail.com] Gesendet: Freitag, 15. Januar 2010 11:35 An: users@maven.apache.org Betreff:

AW: war-plugin copy dependency to WEB-INF/custom-lib

2010-01-15 Thread Entner Harald
check the maven-dependency-plugin[1], especially copy [2]. [1] http://maven.apache.org/plugins/maven-dependency-plugin/ [2] http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html -Ursprüngliche Nachricht- Von: Hoehmann, Andreas [mailto:andreas.hoehmann@siemens.com]

AW: war-plugin copy dependency to WEB-INF/custom-lib

2010-01-15 Thread Entner Harald
: Freitag, 15. Januar 2010 14:56 An: Maven Users List Betreff: AW: war-plugin copy dependency to WEB-INF/custom-lib Hi, Thanks for quick answer. But is there still a way to copy the specified dependency and all its depending artifacts? Klaus -Ursprüngliche Nachricht- Von: Entner Harald

AW: war-plugin copy dependency to WEB-INF/custom-lib

2010-01-15 Thread Entner Harald
target only a specific and its depending artifacts. -Ursprüngliche Nachricht- Von: Entner Harald [mailto:entner.har...@afb.de] Gesendet: Freitag, 15. Januar 2010 15:00 An: Maven Users List Betreff: AW: war-plugin copy dependency to WEB-INF/custom-lib yes, same plugin. If you want

AW: AW: copy resources does not overwrite existing files

2010-01-14 Thread Entner Harald
...@ipsways.com: Thanks a lot for your quick reply, but unfortunately the file is still not being overwritten. Any other ideas? Entner Harald wrote: Hi, try to set the ${maven.resources.overwrite} property. Eg. properties       maven.resources.overwritetrue/maven.resources.overwrite

AW: copy resources does not overwrite existing files

2010-01-12 Thread Entner Harald
Hi, try to set the ${maven.resources.overwrite} property. Eg. properties maven.resources.overwritetrue/maven.resources.overwrite /properties Even this means that all resources are overwritten. I haven't tested the solution, so it is not sure that it is working that way (even i'm

AW: What should be the correct check for any XML to be POM?

2010-01-08 Thread Entner Harald
Hi Amaresh, it is possible that in one directory more than one pom file exists. Even as far as i have used maven this case never occured. You can call mvn with the -f option in order to specify another pom.xml file. But keep in mind, that prior to version 2.0.9 (since 2.0.9 it is possible

AW: Running unit tests in a specific order

2010-01-07 Thread Entner Harald
Hey Michael, Afaics there is no way to define the order of tests with the surefire plugin. Maybe another plugin could help you. But IMHO i would suggest to remove the dependencies of your tests. E.g. using the @Before annotation. Otherwise you can never be sure that your tests are working

AW: jaxb2-maven-plugin : Two declarations cause a collision

2009-12-01 Thread Entner Harald
Hi Andrew, try removing the packageName in the pom.xml file. -Ursprüngliche Nachricht- Von: Andrew Hughes [mailto:ahhug...@gmail.com] Gesendet: Dienstag, 1. Dezember 2009 12:13 An: Maven Users List Betreff: jaxb2-maven-plugin : Two declarations cause a collision Hi All, I am trying to

AW: jaxb2-maven-plugin : Two declarations cause a collision

2009-12-01 Thread Entner Harald
/executions configuration packageNamejava.lunch20091126xml.kml/packageName /configuration /plugin On Tue, Dec 1, 2009 at 10:00 PM, Entner Harald entner.har...@afb.de wrote: Hi Andrew, try removing the packageName in the pom.xml file. -Ursprüngliche Nachricht- Von: Andrew Hughes

AW: jaxb2-maven-plugin : Two declarations cause a collision

2009-12-01 Thread Entner Harald
no idea how to fix this, but thanks for helping so far. On Tue, Dec 1, 2009 at 11:16 PM, Entner Harald entner.har...@afb.dewrote: Hi Andrew, it looks like that ogckml22.xsd File imports the atom-author-link.xsd File. So isn't it sufficient to run the jaxb plugin for ogckml22.xsd only

AW: Any idea what this error means

2009-11-27 Thread Entner Harald
Have you tried to delete your local repository and then run maven again? -Ursprüngliche Nachricht- Von: Richard Bibb [mailto:richard.b...@aimhedge.com] Gesendet: Freitag, 27. November 2009 12:01 An: users@maven.apache.org Betreff: Any idea what this error means Hi All I'm getting an

AW: AW: Any idea what this error means

2009-11-27 Thread Entner Harald
you could also adapt your settings.xml in order to bypass the companies repository. (remove the proxy definition) -Ursprüngliche Nachricht- Von: Richard Bibb [mailto:richard.b...@aimhedge.com] Gesendet: Freitag, 27. November 2009 13:25 An: users@maven.apache.org Betreff: Re: AW: Any

AW: Using Ivy repository in Maven

2009-10-30 Thread Entner Harald
Hi sandarenu, it depends. If the jars are available in a public repository, the only thing you have to do is to define them as dependencies in your pom. Try http://mvnrepository.com/ as a start. There are more repositories available though. . If you want to upload your files manually you can

Netbeans SOA Project

2009-10-21 Thread Entner Harald
Hello, has anyone tried to migrate from Netbeans (which uses ant as build script) to Maven. I face some serious problems doing so, with Bpel- and Composite Application Modules. I see two solutions (both are not perfect): - servicemix from apache, which seems not to be applicable with existing

AW: Running Jar file created by Maven

2009-10-13 Thread Entner Harald
What kind of project are you talking about? Is it a pure Java project or does it run inside glassfish (for example)? What class files are missing? How does the stacktrace look like? Try to add the missing artifacts to the pom. -Ursprüngliche Nachricht- Von: jamborta

AW: AW: Running Jar file created by Maven

2009-10-13 Thread Entner Harald
How do you run the jar file? (outside netbeans). with java -jar ? If you do so, the jar files need to be included in the resulting jar file, or you have to add it to the classpath, via -cp ... -Ursprüngliche Nachricht- Von: jamborta [mailto:jambo...@gmail.com] Gesendet:

AW: AW: Running Jar file created by Maven

2009-10-13 Thread Entner Harald
Have a look here: http://maven.apache.org/shared/maven-archiver/examples/classpath.html -Ursprüngliche Nachricht- Von: Entner Harald [mailto:entner.har...@afb.de] Gesendet: Dienstag, 13. Oktober 2009 11:50 An: Maven Users List Betreff: AW: AW: Running Jar file created by Maven How do

AW: AW: AW: Running Jar file created by Maven

2009-10-13 Thread Entner Harald
] Gesendet: Dienstag, 13. Oktober 2009 12:06 An: users@maven.apache.org Betreff: Re: AW: AW: Running Jar file created by Maven yes, i run with java -jar but when I run mvn install, I can see that it downloads all the dependencies. i thought it takes care of that automatically. Entner Harald wrote

AW: Failed deployment of Maven project to Glassfish

2009-10-06 Thread Entner Harald
Does the jar reside in the war file? -Ursprüngliche Nachricht- Von: diafa...@gmail.com [mailto:diafa...@gmail.com] Im Auftrag von dtiodtio Gesendet: Samstag, 3. Oktober 2009 21:49 An: users@maven.apache.org Betreff: Failed deployment of Maven project to Glassfish Hello, I recently

AW: Maven2 Pom Configuration

2009-10-06 Thread Entner Harald
You can use the build-helper-maven-plugin to add additional source folders. e.g. plugin groupIdorg.codehaus.mojo/groupId artifactIdbuild-helper-maven-plugin/artifactId version1.3/version executions execution idadd-source/id

AW: Showing pom files in dependency tree.

2009-10-05 Thread Entner Harald
Have you tried to delete the complete repository (.../.m2/repository), in which the false artifact is found? Maybe there are some legacy artifacts in it, which in return have dependencies on others and so on. -Ursprüngliche Nachricht- Von: Michael Delaney [mailto:mdela...@upromise.com]

AW: Ant Mojo Resources

2009-10-05 Thread Entner Harald
In order to unpack a file from a dependent artifact you can also use dependency:unpack. e.g. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId

AW: Reactor - skip parent project build

2009-10-01 Thread Entner Harald
Actually, you can. But it is not that straightforward as you may wish. Fact 1: A profile is inherited only, when it's defined in the child pom. So you could move your plugin definition into a profile. -Give it an (profile) id -Inherit the profile in your child pom (and give it a phase) That

AW: AW: copy file from dependent jar

2009-09-29 Thread Entner Harald
position. -Ursprüngliche Nachricht- Von: Brett Porter [mailto:br...@porterclan.net] Im Auftrag von Brett Porter Gesendet: Montag, 28. September 2009 01:29 An: Maven Users List Betreff: Re: AW: copy file from dependent jar On 25/09/2009, at 6:24 PM, Entner Harald wrote: The ant script

AW: copy file from dependent jar

2009-09-25 Thread Entner Harald
03:55 An: Maven Users List Betreff: Re: copy file from dependent jar I'm a bit lost. Is Resource1 already included in Proj1 and is Proj1 a dependency of Proj3? - Brett On 24/09/2009, at 8:01 PM, Entner Harald wrote: Hello, i face the following problem. Currently i'm refactoring a project

copy file from dependent jar

2009-09-24 Thread Entner Harald
Hello, i face the following problem. Currently i'm refactoring a project so that i can move from ant to maven. It works rather well (i have done this in my old company as well), but some special cases occur. Most of them i could fix, but one causes me a headache. This is the simple view of