Re: Multiple projects -> one artifact
Hi, for web try war overlays. Create one master war project that merges all other war subprojects regards Thomas Am 03.10.2010 15:26, schrieb Dirk Reske: Hello, is it possible to build one artifact out of multiple projects. We are trying to modularize the development. Example: MyProject |-- core | |--api | |--impl | |--web |-- users | |--api | |--impl | |--web |-- admin | |--api | |--impl | |--web this should results in the following ear file myproject.ear |--lib/myproject-api.jar (the entity classes, service interfaces, etc) |--myproject-impl.ear (the ejb module) |--myproject-web.ear (the web module) So, if I add a module MyProject/myproject-web, is there a configuration, so that this war module merges the contents of the existing "*/web" modules to one war file? Thanks Dirk - 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
scm problems wtih release plugin
hi, i have a multi module project (40 projects) with cvs as scm. when i try to create a release i got the error [INFO] Tagging release with the label xxx-5_6_986... [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] The scm url is invalid. - The connection string contains too few tokens. but my scm url is valid. a new version is committed. in another mult module projects this works fine. these steps work fine: - checkout local copy - assign release version - commit poms with release - release:rollback i use org.apache.maven.plugins:maven-release-plugin:2.0 any hints? regards Thomas - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How does maven resolve the plugin version to be used when outside a project
sry, its defined in super-pom. for 2.2.1 check lib/maven-2.2.1-uber.jar org/apache/maven/project/pom-4.0.0.xml. dont know how to redefine (change pom-4.0.0.xml) regards Thomas Am 13.09.2010 11:37, schrieb Baptiste MATHUS: I also said I know the full form... :) Thanks 2010/9/13 Thomas Markus Hi, try something like mvn org.apache.maven.plugins:maven-help-plugin:2.1:describe -Dplugin=help regards Thomas Am 13.09.2010 10:59, schrieb Baptiste MATHUS: Hi all, I'm currently trying to manually run dependency:get, but it doesn't work since maven is trying to use 2.0 plugin version (ang "get" mojo came with 2.1). Apart from using the full form command, how does maven decide which version to use for a plugin? Does it use the version defined in super-pom or something else? If possible, how to (re)define that it should use 2.1 instead of 2.0? Thanks in advance. - 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: How does maven resolve the plugin version to be used when outside a project
Hi, try something like mvn org.apache.maven.plugins:maven-help-plugin:2.1:describe -Dplugin=help regards Thomas Am 13.09.2010 10:59, schrieb Baptiste MATHUS: Hi all, I'm currently trying to manually run dependency:get, but it doesn't work since maven is trying to use 2.0 plugin version (ang "get" mojo came with 2.1). Apart from using the full form command, how does maven decide which version to use for a plugin? Does it use the version defined in super-pom or something else? If possible, how to (re)define that it should use 2.1 instead of 2.0? Thanks in advance. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Copy target file from another module
Hi, create a war with your generated sources and use it as a war overlay regards Thomas Am 21.07.2010 15:49, schrieb Will Hoover: I have a multi-module project where one of the modules needs to copy internally generated file(s) that do not come from any maven-aware resources from a module to a WAR module for inclusion. The following works, but it seems like a hack using to get to the module where the file(s) exist. Is there a better way? WAR module: org.apache.maven.plugins maven-resources-plugin validate copy-resources ${project.build.directory}/${project.build.finalName} ${basedir}/../other-module-with-generated-files/targetfalse - 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: ip address range blocked to maven infrastructure?
Hi, repo2.maven.org works fine. All hops are inside ibm network (9.0.0.0/8) so i guess its an internal problem. regards thomas Am 20.07.2010 14:38, schrieb kelvin goodson: My colleagues and I are having problems building with maven, because the maven central repo is not accessible from our office location. Our network support people think that our IP addresses are being blocked by the maven infrastructure. Is this the right place to come to for this issue? Regards, Kelvin. tracert repo2.maven.org Tracing route to repo2.maven.org [38.97.124.18] over a maximum of 30 hops: 114 ms 7 ms<1 ms gate-9-180-164-1.hursley.uk.ibm.com [9.180.164.1] 2 1 ms 1 ms 1 ms 9.180.160.57 314 ms 117 ms 1 ms 9.180.160.29 482 ms 1 ms<1 ms 9.180.27.25 5 377 ms 9 ms 8 ms 9.64.186.130 6 8 ms 9 ms 8 ms 9.139.246.2 7 *** Request timed out. 8 *** Request timed out. 9 *** Request timed out. 10 *** Request timed out. 11 *** Request timed out. 12 *** Request timed out. 13 - 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: Maven jaxb2 plugin encoding issue
Hi, we use org.codehaus.mojo jaxb2-maven-plugin 1.3 jaxb2-maven-plugin-run generate-sources xjc thomas Am 09.07.2010 08:35, schrieb zhaoyi: Below is our configuration. The -no-header doesn't solve the problem. org.jvnet.jaxb2.maven2 maven-jaxb2-plugin 0.7.1 generate-jaxb generate-test-sources generate com.example.ipo.jaxb ${project.build.directory}/jaxb-source ${basedir}/src/test/resources ipo.xsd -no-header - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven jaxb2 plugin encoding issue
Hi, try to deactivate the header. -no-header ... regards thomas Am 09.07.2010 04:36, schrieb zhaoyi: I set up jaxb2 plugin in my maven. It will generate code first then compile the code. My problem is that when jaxb2 generate the code, it will generate a commend line in the source code "// Generated on: 2010...". The time line include Chinese character for that I am using a Chinese version OS. When maven begins to build the source code, I will get an error that maven doesn't map UTF-8 character. How can I change the generated time character on jaxb2 plugin? thanks. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: how can i build a jar file without doing junit test?
Hi, specify -Dmaven.test.skip=true mvn -Dmaven.test.skip=true package regards Thomas Am 26.05.2010 09:47, schrieb A. Fuat Sungur: > Hi, > > i am new user of maven and i confess that i like it. its Very handy tool . i > have a question, building a jar file takes too much time because of junit > test are being performed. how can i build a jar file without doing junit > test? > > thanks > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: question about profile inheritance
i read this, but the behaviour is not constistent. and how to define reusable profiles for multiple projects? thanks Thomas Am 05.02.2010 13:14, schrieb Jörg Schaible: > > [snip] > > Activation of a profile is either global if set by command line or activated > in the settings.xml, otherwise the activation is only local to the *current* > POM i.e. in your parent is not activated and the profile in your child POM > does actually not add something to the build. > > - Jörg > > > > - > 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
question about profile inheritance
hi, i try to define profiles in a parent pom and activate these profiles in a child pom. its a little bit confusion. in child project part1 mvn help:active-profiles shows - test1 (source: pom) - base (source: settings.xml) but a mvn doesn't runs my plugin (no inheritance) but a mvn -P test1 (expected to be same) executes the plugin what i'm missing here? i try to define profiles for different project configurations. regards Thomas parent pom: 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/maven-v4_0_0.xsd";> 4.0.0 MavenTest Main pom 0.0.1-SNAPSHOT part1 initialize test1 org.apache.maven.plugins maven-antrun-plugin runtest1 initialize run child pom: 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/maven-v4_0_0.xsd";> 4.0.0 MavenTest part1 MavenTest Main 0.0.1-SNAPSHOT .. test1 true - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org