rmic compiler other then FreeHep
Hello, is anyone aware of rmic compiler other then http://java.freehep.org/freehep-rmic-plugin/index.html? The problem with the above plugin is that you need to provide the classes for the stub generation and one can easily forget to add one in an environment where several people add classes which extend UnicastRemoteObject. The solution would be to have a plugin which scans the sources and extracts class names. In theory stubs are not needed from Java 5 onwards, but in practice lack of provided stubs generates severe memory leaks. Regards, Borut
resources:testResources not filtering files
When I run the goal resources:testResources a file in src/test/ resources is copied to target/test-classes but isn't filtered. I have the src/test/resources directory listed in the pom with filtered set to true but the ${...} properties are still in the output file. When I run resources:resources it filters as expected. I'm setting the property values in my settings.xml file under the default profile and have verified that they are being recognized using mvn help:effective-pom . Here is a simple example you can use to reproduce: pom.xml: 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 testProj testProj 1.0-SNAPSHOT Archetype - testProj http://maven.apache.org src/main/resources true src/test/resources true contents of test.properties located in src/test/resources: prop=${prop.value} Now run "mvn -Dprop.val=test resources:testResources" and look at the output file target/test-classes/test.properties. The variable $ {prop.val} isn't replaced. Anyone have any ideas as to what might be going wrong? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Maven with Netbeans and GlassFish
Hi all, Recently I have been writing some blog articles about using Maven from within Netbeans to create enterprise applications and deploy them to GlassFish. This article http://technology.amis.nl/blog/?p=2489 deals with creating a default Maven enabled Netbeans enterprise application. This one http://technology.amis.nl/blog/?p=2495 explains how to use the exec:exec goal to deploy to GlassFish. This one, finally, http://technology.amis.nl/blog/?p=2610 tells how to use Hibernate for JPA and Facelets for JSF. If you'd like to reply to me, please send me an email directly as I am not subscribed to this mailinglist. Thanks, Wouter van Reeven -- People: "If she weighs the same as a Duck, she's made of wood!" Sir Bedevere: "And therefore...?" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven users interested in the future of Proximity
On 21 Nov 07, at 5:30 PM 21 Nov 07, Jason Chaffee wrote: Is nexus going to be open source or is the expectation that support is bought from sonatype? As the announcement says it's going to be ASL in an open SVN/GIT repository. -Original Message- From: Jason van Zyl [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 21, 2007 3:10 PM To: Maven Users List Subject: Maven users interested in the future of Proximity http://blogs.sonatype.com/jvanzyl/2007/11/21.html Thanks, Jason -- Jason van Zyl Founder, Apache Maven jason at sonatype dot com -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thanks, Jason -- Jason van Zyl Founder, Apache Maven jason at sonatype dot com -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven rebuild dependency
If they share a parent, and are declared as in the parent pom, then you can build from the parent directory and it will build, package, install etc all modules. If they are simply 2 projects in 2 different directories, then no. Maven will simply use the latest deployed artifact in your local repo cache. Wayne On 11/21/07, LinaTomy <[EMAIL PROTECTED]> wrote: > > Maven dependency plugin has a goal copy-dependencies which has this > parameter > overWriteIfNewer Overwrite artifacts that don't exist or are older than the > source. > > Similarly I was wondering whether it would be able to compare project with > latest source and if modified recompile it. If not just a property that can > be set so as to force an install of dependencies for a project. > > > Juven Xu wrote: > > > > I'm wondering how can Maven konw project B has been modified or updated. > > > > Juven > > > > On Nov 22, 2007 8:29 AM, LinaTomy <[EMAIL PROTECTED]> wrote: > > > >> > >> I have a project A that is Dependant on project B. When i build and > >> package > >> project A I want it to recompile and package project B if it has been > >> modified or updated. Is this possible? > >> > >> Thanks a lot > >> Lina > >> -- > >> View this message in context: > >> > http://www.nabble.com/maven-rebuild-dependency-tf4853620s177.html#a1349 > >> Sent from the Maven - Users mailing list archive at Nabble.com. > >> > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/maven-rebuild-dependency-tf4853620s177.html#a13889529 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven rebuild dependency
Maven dependency plugin has a goal copy-dependencies which has this parameter overWriteIfNewer Overwrite artifacts that don't exist or are older than the source. Similarly I was wondering whether it would be able to compare project with latest source and if modified recompile it. If not just a property that can be set so as to force an install of dependencies for a project. Juven Xu wrote: > > I'm wondering how can Maven konw project B has been modified or updated. > > Juven > > On Nov 22, 2007 8:29 AM, LinaTomy <[EMAIL PROTECTED]> wrote: > >> >> I have a project A that is Dependant on project B. When i build and >> package >> project A I want it to recompile and package project B if it has been >> modified or updated. Is this possible? >> >> Thanks a lot >> Lina >> -- >> View this message in context: >> http://www.nabble.com/maven-rebuild-dependency-tf4853620s177.html#a1349 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/maven-rebuild-dependency-tf4853620s177.html#a13889529 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven rebuild dependency
I'm wondering how can Maven konw project B has been modified or updated. Juven On Nov 22, 2007 8:29 AM, LinaTomy <[EMAIL PROTECTED]> wrote: > > I have a project A that is Dependant on project B. When i build and > package > project A I want it to recompile and package project B if it has been > modified or updated. Is this possible? > > Thanks a lot > Lina > -- > View this message in context: > http://www.nabble.com/maven-rebuild-dependency-tf4853620s177.html#a1349 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
maven rebuild dependency
I have a project A that is Dependant on project B. When i build and package project A I want it to recompile and package project B if it has been modified or updated. Is this possible? Thanks a lot Lina -- View this message in context: http://www.nabble.com/maven-rebuild-dependency-tf4853620s177.html#a1349 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven users interested in the future of Proximity
Jason's blog post mentions Apache licensed and available via subversion/git repositories. On 11/22/07, Jason Chaffee <[EMAIL PROTECTED]> wrote: > > Is nexus going to be open source or is the expectation that support is > bought from sonatype? > > -- Ambition is the last refuge of failure
RE: Maven users interested in the future of Proximity
Is nexus going to be open source or is the expectation that support is bought from sonatype? -Original Message- From: Jason van Zyl [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 21, 2007 3:10 PM To: Maven Users List Subject: Maven users interested in the future of Proximity http://blogs.sonatype.com/jvanzyl/2007/11/21.html Thanks, Jason -- Jason van Zyl Founder, Apache Maven jason at sonatype dot com -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven users interested in the future of Proximity
http://blogs.sonatype.com/jvanzyl/2007/11/21.html Thanks, Jason -- Jason van Zyl Founder, Apache Maven jason at sonatype dot com -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Include source, javadocs, etc in installed artifact
>From where can I download maven-javadoc-plugin 2.4? There's a documented IBM JVM-specific bug that's fixed in 2.4 that I need to download. Unfortunately, it doesn't look like it's released yet (is it?), with the latest version being 2.3 (see http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-javadoc-plugin). When will 2.4 be released, and how can I use a currently-unreleased version at this time? How do I build a version I can deploy to my local repository for use in my project? If I check out the SVN link corresponding to trunk/maven-javadoc-plugin/, which contains src/ and pom.xml, what mvn command would I use to build it? Also, would I be able to check out only trunk/maven-javadoc-plugin, or do I need to check out the folder structure higher up in the hierarchy? Thanks. Yaakov Chaikin wrote: > > As part of your plugins configuration, do this; > > > maven-source-plugin > > false > > > > package > > jar > > > > > > If you're using Eclipse, you can then do this (after closing eclipse): > mvn eclipse:clean eclipse:eclipse -DdownloadSources=true > > Eclipse will parse the JavaDocs for you from the source. However, if > you still want javadocs, do this in the pom: > > maven-javadoc-plugin > > true > > > > Similarly, for Eclipse, you would now add this to the line: > mvn eclipse:clean eclipse:eclipse -DdownloadSource=true > -DdownloadJavadocs=true > > Hope this helps. > > Yaakov. > > > On 11/4/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote: >> This was answered on October 31. on this list. Check the archives for a >> thread titled "Attaching source code". >> >> lightbulb432 wrote: >> > When I run the mvn install, install:install, or install:install-file >> command, >> > only the JAR itself is put into my local repository. How can I get the >> > source, Javadocs, and other things to also be put into the local >> repository? >> > >> > I looked at the following link for any parameters to add, but nothing >> > relating to this was mentioned. >> > >> > http://maven.apache.org/plugins/maven-install-plugin/install-mojo.html >> > >> > Also, what's the difference between the three types of install commands >> > specified above? "install" is a phase, while the other two are goals? >> Does >> > the install phase by default call one of those two goals? >> > >> > Thanks. >> >> >> -- >> Dennis Lundberg >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Include-source%2C-javadocs%2C-etc-in-installed-artifact-tf4747794s177.html#a13886763 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven release plugin: Address already in use!
I am trying to use the maven-release-plugin to prepare and perform a release. I simply created a new empty maven 2 project and added the required scm information in the POM. However any time I run the command: mvn release:clean release:prepare maven asks me for release/tag/developement version information and then exists with the following error: [INFO] Transforming 'Unnamed - ReleasePluginDemo:ReleasePluginDemo:jar:1.0-SNAPSHOT'... [INFO] Not generating release POMs [INFO] Executing goals 'clean verify'... [INFO] Executing: mvn clean verify --no-plugin-updates -P default ERROR: transport error 202: bind failed: Address already in use ["transport.c",L41] FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=JVMTI_ERROR_INTERNAL(113) ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) ["debugInit.c",L500] JDWP exit error JVMTI_ERROR_INTERNAL(113): No transports initialized [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Maven execution failed, exit code: '1' [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Maven execution failed, exit code: '1' at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Maven execution failed, exit code: '1' at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:131) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) ... 16 more Caused by: org.apache.maven.shared.release.ReleaseExecutionException: Maven execution failed, exit code: '1' at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:66) at org.apache.maven.shared.release.phase.RunPrepareGoalsPhase.execute(RunPrepareGoalsPhase.java:42) at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:194) at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:131) at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:94) at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:127) ... 18 more Caused by: org.apache.maven.shared.release.exec.MavenExecutorException: Maven execution failed, exit code: '1' at org.apache.maven.shared.release.exec.ForkedMavenExecutor.executeGoals(ForkedMavenExecutor.java:103) at org.apache.maven.shared.release.exec.ForkedMavenExecutor.executeGoals(ForkedMavenExecutor.java:121) at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:59) ... 23 more [INFO] [INFO] Total time: 7 seconds [INFO] Finished at: Wed Nov 21 14:37:09 MST 2007 [INFO] Final Memory: 4M/253M [INFO] - What port is maven complaining about ? Thanks, Bashar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman
FW: Getting access to the versions in a POM
FYI, if you're looking to write a plugin that needs dependency information here's a bit of a start on that. --Jason -Original Message- From: Tom Huybrechts [mailto:[EMAIL PROTECTED] Sent: Thursday, November 15, 2007 1:09 AM To: Maven Users List Subject: Re: Getting access to the versions in a POM The mojo developer cookbook has part of this info. Feel free to add more... http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook Tom On Nov 14, 2007 5:11 PM, Mark Russell <[EMAIL PROTECTED]> wrote: > Wayne: > Thanks That should get me started. I'll do some searching and then post back any resources I find. > > > Wayne Fay wrote: > > In your mojo, you'll need: > > * @requiresDependencyResolution > > * @requiresProject > > > > And then: > > /** > > * Maven Internal: Project to interact with. > > * > > * @parameter expression="${project}" > > * @required > > * @readonly > > */ > > private MavenProject project; > > > > Then you can navigate around in the MavenProject object to find the > > dependencies and their versions etc. I assume this is on the web > > somewhere but I'm not sure where, perhaps Wiki? Or Plugin Dev Center? > > > > Wayne > > > > On 11/14/07, Mark Russell <[EMAIL PROTECTED]> wrote: > >> I am writing an internal plugin for maven 2 for our company. One of the things I need to do is to get access to the dependency > >> information that is configured in the pom. Is there a way to do that? I have done several web searches but can not come up > >> with the correct string to get me an answer. > >> > >> Please point me to a web page that will help me. > >> > >> Thanks in advance :-> > >> > >> -- > >> Mark Russell > >> Instantiations, Inc. > >> 724-368-3331 (land line) > >> http://www.instantiations.com > >> > >> > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > > Mark Russell > Instantiations, Inc. > 724-368-3331 (land line) > http://www.instantiations.com > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: antLib not producing same classpath as Mvn
Maven Ant Tasks should resolve dependencies exactly like Maven in command line. But there are code duplications between the command line usage of Maven internals and Ant tasks' usage: sometimes, this leads to unwanted differences. FYI, in Maven 2.1, a component has been created to avoid this problem: this is the Embedder, a facade to Maven internals for integration use into any tool. Embedder is used in Maven command line, in Eclipse integrations like m2eclipse or Q4E, and will be used by Maven Ant Tasks 2.1. But of Maven Ant Tasks 2.0.x, there is no Embedder... There is already a Jira issue for such a difference of dependencies resolution: http://jira.codehaus.org/browse/MANTTASKS-91. Your case seems totally different: I'm really interested if you can build a minimal test-case I could incorporate into the tasks unit tests. Regards, Hervé Le mardi 20 novembre 2007, Kallin Nagelberg a écrit : > I've found what looks like a bug in the Maven Antlib, but I thought I > should check here first before sending the issue to JIRA as I am a > relatively new Maven user. > > I've created a pom that transitively has two paths to the artifact > commons-logging. Due to the structure of the poms this resulted in 1.0 > being selected instead of what I needed, 1.0.4. In an attempt to > resolve this I added the following to my SuperPom from which all > others inherit: > > > > > commons-logging > commons-logging > 1.0.4 > > > > > Now, when I run mvn dependency:resolve on my child pom it changes the > resolved dependency from 1.0 to 1.0.4 as I desired. Hurrah! > Unfortunately when I reference the classpath produced by this pom in > my ant script it still shows the 1.0 version on the classpath. It > seems that the maven antLib is not taking the parent's dependency > management section into account. I've heard that the maven antlib does > not always function as maven should. Is this true? > > Regards, > Kallin Nagelberg. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dependency plugin and version
Just wanted to report back that I finally go this to work by doing this (thanks for the clues along the way): org.apache.maven.plugins maven-war-plugin ${project.build.directory}/dependency **/*.jar **/*.jnlp org.codehaus.mojo dependency-maven-plugin process-resources unpack-dependencies On Nov 19, 2007 4:19 PM, deckrider <[EMAIL PROTECTED]> wrote: > Ok, I got this to include only what I want by changing the phase from > 'process-resources' to 'package'. However, because of the > dependencies, the jars are placed under WEB-INF/lib in the war file, > which is not correct. > > > On Nov 19, 2007 3:53 PM, deckrider <[EMAIL PROTECTED]> wrote: > > Hmm, I'm having trouble getting 'unpack-dependencies' to work the way > > I want. It seems that much more is included in my war file than > > 'unpack' would give (and unpack would give exactly what I wanted). > > > > Originally I was trying to follow this: > > > > http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plugin/examples/war_bundle_1.html > > > > But I would like to use <= 8.0.0 rather than hard coding 8.1.3 and > > incrementing for each version. > > > > > > On Nov 19, 2007 3:00 PM, Brian E. Fox <[EMAIL PROTECTED]> wrote: > > > The dependency plugin doesn't support versions in the copy/unpack goals. > > > You could try the unpack-dependencies goal instead since that allows > > > maven core to resolve it. You would then use the filters to get only the > > > file you want. > > > > > > > > > -Original Message- > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > > > deckrider+mvn > > > Sent: Monday, November 19, 2007 2:25 PM > > > To: users@maven.apache.org > > > Subject: dependency plugin and version > > > > > > Hi, is there a way I can change version below to take the latest > > > greater than 8.0.0 instead of hard-coding the version as I do below? > > > I tried using: "[8,)" but that did not work. > > > > > > > > > org.codehaus.mojo > > > dependency-maven-plugin > > > > > > > > > > > > process-resources > > > > > > unpack > > > > > > > > > > > > > > > > > > > > > com.vzb.impact > > > webstart-test > > > 8.1.2 > > > zip > > > > > > > > > ${project.build.directory}/${project.build.finalName} > > outputDirectory> > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2]Eclipse WTP, dependency, deployement, libraries
> You will have to regenerate your eclipse settings each time that you change > your pom (adding/removing a dependency for example). > After that you can ** import ** your project in eclipse and you'll use the > standard build of eclipse (Ctrl + B) to build your application. I think you just need to import the project once, and refresh it later after you regenerate your eclipse settings. Jeffrey Ai Arnaud HERITIER wrote: > > ok, sorry, I didn't see that you were new to M2. > > You have actually several choices to work with maven 2 and eclipse. > > The first one is to use a plugin in eclipse to launch maven 2 to build > your > application. > There are 2 plugins actually for eclipse : > - http://code.google.com/p/q4e/ which we hope will be integrated in > eclipse > in some monthes. When i tested it this plugin worked only with maven > 2.1.x. > It should be transparent in most cases if you are using 2.0.x, but it's > not > sure > - http://m2eclipse.codehaus.org/ > Those plugins will give you some additional features in eclipse: For > example > they'll help you to write your pom, add dependencies... > The problem with those plugins, is that they aren't supporting WTP if you > are developing a web application :-( > > The other choice, is to use the plugin in maven to setup your project for > eclipse > http://maven.apache.org/plugins/maven-eclipse-plugin/ > This plugin is used from maven in command line. It setup your eclipse > settings (build path, WTP support, ...). > You will have to regenerate your eclipse settings each time that you > change > your pom (adding/removing a dependency for example). > After that you can import your project in eclipse and you'll use the > standard build of eclipse (Ctrl + B) to build your application. You'll > also > be able to deploy your webapp on an application server using WTP > > Hope, this helps > > Arnaud > > > On Nov 20, 2007 2:51 PM, Michael Bernagou <[EMAIL PROTECTED]> wrote: > >> Hum, I don't know how to do that. >> Ok I can create a bat file to launch the command but is it to do only >> once? >> >> 2007/11/20, Arnaud HERITIER <[EMAIL PROTECTED]>: >> > >> > Did you activate the WTP support in the eclipse plugin for maven 2 ? >> > mvn eclipse:eclipse -Dwtpversion=1.5 >> > >> > It's working fine generally >> > >> > TEll us if you have any problem, we'll try to solve them >> > >> > Arnaud >> > >> > On Nov 20, 2007 9:49 AM, Michael Bernagou <[EMAIL PROTECTED]> >> wrote: >> > >> > > Hi, >> > > >> > > I'm new to M2 and I use Eclipse 3.2 WTP, Maven 2.0.7 and the latest >> > maven >> > > plugin for eclipse. I use the server integration in Eclipse to test >> my >> > > webapp and I set the dependency in my pom.xml. For example, I develop >> a >> > > Tapestry webapp so I added the tapestry-core-5.0.6 dependency in the >> > > pom.xml >> > > . >> > > >> > > The build is done normally but when I start the server, the libraries >> > > defined in the pom.xml are not copyed in the Tomcat instance managed >> by >> > > Eclipse WTP. >> > > I tried all the different scope and none of them deploy the libs. I >> > tried >> > > also to specify in Eclipse the Maven dependency should be Export >> > > (Project/Build Path/Order Export/check the boxes). >> > > >> > > For the scope "system" I tried to specifyed the absolute path where I >> > > would >> > > like to have my libraries (WEB-INF/lib) but it is finally not the >> goal >> > of >> > > this scope since it is just to refer a system library needed. >> > > >> > > A solution is to copy the lib I need in my webaap/WEB-INF/lib but >> then >> > M2 >> > > would be useless in this case. >> > > So, what did I miss? >> > > >> > > Thanks >> > > >> > > >> > > -- >> > > Michael Bernagou >> > > Java Developper >> > > >> > >> > >> > >> > -- >> > .. >> > Arnaud HERITIER >> > .. >> > OCTO Technology - aheritier AT octo DOT com >> > www.octo.com | blog.octo.com >> > .. >> > ASF - aheritier AT apache DOT org >> > www.apache.org | maven.apache.org >> > ... >> > >> >> >> >> -- >> Michael Bernagou >> Java Developper >> > > > > -- > .. > Arnaud HERITIER > .. > OCTO Technology - aheritier AT octo DOT com > www.octo.com | blog.octo.com > .. > ASF - aheritier AT apache DOT org > www.apache.org | maven.apache.org > ... > > -- View this message in context: http://www.nabble.com/-M2-Eclipse-WTP%2C-dependency%2C-deployement%2C-libraries-tf4842004s177.html#a13882523 Sent from the Maven - Users mailing list archive at Nabble.com. - To un
Re: [M2] Pb Release and preserve timestamps
The account you use to log in for SFTP needs to own the deployed artifacts. If your account does not have permission to replace the file on the server, the owner account does not want you to be replacing it. Only the owner (or root) is allowed to set the permissions on the file according to their purposes. Perhaps you should deploy to a different location owned by your account and have the owner copy that artifact into their location if they approve of the change. -- Lee On Nov 21, 2007 11:01 AM, Rémy Sanlaville <[EMAIL PROTECTED]> wrote: > I tried to go more in depth to understand the problem. > > In short: > It seems that the problem comes from the class > org.apache.maven.wagon.providers.ssh.jsch.SftpWagon from wagon-ssh version > 1.0-beta-2 > > In fact, in line 88 > 86if ( permissions != null && permissions.getFileMode() != null > ) > 87 { > 88setFileMode( channel, filename, permissions ); > 89} > > SftpWagon ask to change the FileMode (by default 664). > But it's not possible to change the file mode if you aren't the owner. > So an exception is raised: > > [INFO] Error installing artifact's metadata: Error while deploying > metadata: Error occured while deploying 'test/cp/maven-metadata.xml' to > remote repository: sftp://maven2/proxy/inhouse > > I think it's a bug. > It works if you create the first time or if you are the owner of the file > but it can't work it you aren't the owner. > > Rémy > -- -- Lee Meador Sent from gmail. My real email address is lee AT leemeador.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem referencing maven2 built ejb-client jar in maven 1.
Hi Folks, We are currently porting a very large set of projects from maven 1 to maven 2. One of the maven 2 projects installs two ejb jars into the maven 2 repo. The first jar is the ejb jar and the second is the ejb-client jar. These jars are then copied to the maven 1 repo using the maven 1 plugin in maven 2. The problem is that I can't reference the ejb-client jar from another maven 1 built project. The ejb-jar plugin that supports ejb-client appeared in maven 1.1. Is there a workaround to this? Is it possible to copy the ejb-client jar from maven/repository/ejb to maven/repository/jar? If I add a dependency for the ejb jar in my project.xml with type ejb it adds it to the application.xml of the ear. Thanks in advance, Shane -- View this message in context: http://www.nabble.com/Problem-referencing-maven2-built-ejb-client-jar-in-maven-1.-tf4851610s177.html#a13881655 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Pb Release and preserve timestamps
I tried to go more in depth to understand the problem. In short: It seems that the problem comes from the class org.apache.maven.wagon.providers.ssh.jsch.SftpWagon from wagon-ssh version 1.0-beta-2 In fact, in line 88 86if ( permissions != null && permissions.getFileMode() != null ) 87 { 88setFileMode( channel, filename, permissions ); 89} SftpWagon ask to change the FileMode (by default 664). But it's not possible to change the file mode if you aren't the owner. So an exception is raised: [INFO] Error installing artifact's metadata: Error while deploying metadata: Error occured while deploying 'test/cp/maven-metadata.xml' to remote repository: sftp://maven2/proxy/inhouse I think it's a bug. It works if you create the first time or if you are the owner of the file but it can't work it you aren't the owner. Rémy
RE: Re: Maven, junit and Mock Classes
You could use the test jar mojo: http://maven.apache.org/plugins/maven-jar-plugin/test-jar-mojo.html -- Daniel Siegmann FJA-US, Inc. 512 Seventh Ave., New York, NY 10018 (212) 840-2618 ext. 139 -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jan Torben Heuer Sent: Wednesday, November 21, 2007 11:06 AM To: users@maven.apache.org Subject: Re: Maven, junit and Mock Classes Antonio Petrelli wrote: > Mock classes can stay in the src/test/java directory. What's the problem? That directory is not available as dependency. Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Continuum Derby Question
I am trying to create a JDBC statement to test whether the start time of a build and the end time of a build are between 2 Java Date getTime() values. However, the field of START_TIME and END_TIME in SA.TABLE.BUILDRESULT is BIGINT. The following statement fails in JDBC. Could someone please tell me how to properly write this statement for the Continuum Derby DB? select START_TIME,END_TIME from SA.BUILDRESULT WHERE START_TIME > 1 and END_TIME < 11000 Thank you. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Maven training available ?
Just wondering if any good Maven training is available out there ? We're doing OK with the self-taught approach but we'd like to get a better understanding of Maven and of its place in a large-scale build process. thanks in advance for any advice ! Ethan Allen Extension 7563 (desk) 414.467.9185 (mobile) [EMAIL PROTECTED] (paging) [EMAIL PROTECTED] (paging) CONFIDENTIALITY NOTICE: This is a transmission from Kohl's Department Stores, Inc. and may contain information which is confidential and proprietary. If you are not the addressee, any disclosure, copying or distribution or use of the contents of this message is expressly prohibited. If you have received this transmission in error, please destroy it and notify us immediately at 262-703-7000. CAUTION: Internet and e-mail communications are Kohl's property and Kohl's reserves the right to retrieve and read any message created, sent and received. Kohl's reserves the right to monitor messages by authorized Kohl's Associates at any time without any further consent.
Re: Maven, junit and Mock Classes
Antonio Petrelli wrote: > Mock classes can stay in the src/test/java directory. What's the problem? That directory is not available as dependency. Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help with assembly plugin
HI, ${basedir}/ did the trick! Thanks! =) Mick Knutson-4 wrote: > > Have you tried ${basedir}/ > > On 11/20/07, Gunnar Boström <[EMAIL PROTECTED]> wrote: >> >> >> Hi, >> Thanks for trying to help but the problem is with the multi-module >> project. >> If I run mvn package from the module directory it works correctly. >> If I run mvn package from the parent directory the line endings will not >> be >> converted! >> As I write I managed to get this working for a single file by starting >> the >> source tag with a slash i.e. >> /src/.. >> :-) >> >> Mick Knutson-4 wrote: >> > >> > >> > tar >> > >> > >> > >> > Then make sure the ascii files you are adding are like: >> > >> > >> > /src/main/resources/deploy/deploy-configs.sh >> >> > >> > deploy-configs.sh >> > true >> > *unix* >> > 0754 >> > >> > >> > >> > On Nov 19, 2007 9:01 AM, Gunnar Boström >> <[EMAIL PROTECTED]> >> > wrote: >> > >> >> >> >> Hi, >> >> I use the maven-assembly-plugin to create a zip file on windows XP. >> >> It works ok, with one problem. >> >> The zip file will be unzipped on a Solaris computer so I need to fix >> the >> >> line endings. This works fine if I do mvn package directly in a >> module, >> >> but >> >> if I run mvn package from the master it will not do the conversion. >> >> >> >> [INFO] Reading assembly descriptor: >> >> D:\SERF\dev\serf-server\src\main\assembly\bin.xml >> >> [INFO] No files selected for line-ending conversion. Skipping: >> >> src/main/scripts/expect >> >> >> >> The corresponding line in the pom file is >> >> src/main/scripts/expect >> >> >> >> So what can I do? >> >> >> >> Regards >> >> Gunnar >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/help-with-assembly-plugin-tf4837763s177.html#a13840413 >> >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> >> >> >> - >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > >> > -- >> > >> > Thanks, >> > Mick Knutson >> > >> > http://www.baselogic.com >> > http://www.blincmagazine.com >> > http://www.djmick.com >> > http://www.myspace.com/mickknutson >> > http://www.myspace.com/djmick_dot_com >> > http://www.myspace.com/sexybeotches >> > http://www.thumpradio.com >> > --- >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/help-with-assembly-plugin-tf4837763s177.html#a13852445 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > > Thanks, > Mick Knutson > > http://www.baselogic.com > http://www.blincmagazine.com > http://www.djmick.com > http://www.myspace.com/mickknutson > http://www.myspace.com/djmick_dot_com > http://www.myspace.com/sexybeotches > http://www.thumpradio.com > --- > > -- View this message in context: http://www.nabble.com/help-with-assembly-plugin-tf4837763s177.html#a13879846 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [dependency plugin] Used undeclared dependencies
AFAIK, this shows the dependencies from which your code is using classes, but which are not declared in your pom file, but by another dependency. ie. You -> Project A -> Project B And one of your classes imports something from Project B. This will compile. Project A releases a new versions, which is not dependend anymore on Project B. You update the version of Project A to the new version, et voila, your code is not compiling anymore. It is better to declare all your dependencies your project uses, even if there are already included in one of your dependencies. Hth, Nick Stolwijk -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: Wed 11/21/2007 4:32 PM To: Maven Users List Subject: [dependency plugin] Used undeclared dependencies Why does the dependency plugin gives "Used undeclared dependencies"? What is the reason or how does maven know this? I looked at the docs ( http://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html), but it did not give much info on why you get this and what you can do about it. This is the output: [INFO] [dependency:analyze] [INFO] Used declared dependencies: [INFO]net.java.dev.glazedlists:glazedlists_java15:jar:1.7.0:compile [INFO]net.java.dev.timingframework:timingframework:jar:1.0:compile [INFO]com.jidesoft:jide-oss:jar:2.1.3.04:compile [INFO]log4j:log4j:jar:1.2.14:compile [INFO]org.swinglabs:swing-worker:jar:1.1:compile [INFO]com.jgoodies:looks:jar:2.1.2:compile [INFO]com.thoughtworks.xstream:xstream:jar:1.2.1:compile [INFO]org.swinglabs:swingx:jar:0.9:compile [INFO]org.testng:testng:jar:jdk15:5.1:test [INFO] Used undeclared dependencies: [WARNING]com.jhlabs:filters:jar:2.0.235:compile [INFO] Unused declared dependencies: [INFO]None [WARNING] Potential problems discovered. [INFO] Found Resolved Dependency / DependencyManagement mismatches: [INFO]Nothing in DepMgt. Additionally, the docs show a target called "dependency:tree" but this does not seem to work. regards, Wim -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: deploy with scp
Try to set PasswordAuthentication yes in file /etc/ssh/sshd_config on your ssh server where your maven repository is installad. Ravinder Singh-3 wrote: > > I am trying to do do a deploy without user interaction (through > continuum). > Currently I am testing deploy for the project. But I am failing to have > it deploy without prompting for password. > > I hace specified the privateKey, username, and even the password in the > settings.xml. But it won't stop asking for password. > > However a release:perform does not ask for a password and does > everything automagically, without prompting for password, so here it > works > with scp and privateKey. > > Is there any workaround for this or am i doing something wrong? > > > Ravinder Singh > System developer > > > -- View this message in context: http://www.nabble.com/deploy-with-scp-tf2331693s177.html#a13879294 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [FWD: Maven2 and Sun Jars]
If you expect a response to this email, you'll need to explain things. I'm not a fan of attachments. Wayne On 11/20/07, Travis Winkler <[EMAIL PROTECTED]> wrote: > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dependency plugin] Used undeclared dependencies
Why does the dependency plugin gives "Used undeclared dependencies"? What is the reason or how does maven know this? I looked at the docs ( http://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html), but it did not give much info on why you get this and what you can do about it. This is the output: [INFO] [dependency:analyze] [INFO] Used declared dependencies: [INFO]net.java.dev.glazedlists:glazedlists_java15:jar:1.7.0:compile [INFO]net.java.dev.timingframework:timingframework:jar:1.0:compile [INFO]com.jidesoft:jide-oss:jar:2.1.3.04:compile [INFO]log4j:log4j:jar:1.2.14:compile [INFO]org.swinglabs:swing-worker:jar:1.1:compile [INFO]com.jgoodies:looks:jar:2.1.2:compile [INFO]com.thoughtworks.xstream:xstream:jar:1.2.1:compile [INFO]org.swinglabs:swingx:jar:0.9:compile [INFO]org.testng:testng:jar:jdk15:5.1:test [INFO] Used undeclared dependencies: [WARNING]com.jhlabs:filters:jar:2.0.235:compile [INFO] Unused declared dependencies: [INFO]None [WARNING] Potential problems discovered. [INFO] Found Resolved Dependency / DependencyManagement mismatches: [INFO]Nothing in DepMgt. Additionally, the docs show a target called "dependency:tree" but this does not seem to work. regards, Wim -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: 1 depency find, 10 downloaded!
On Wed, 2007-11-21 at 12:53 +0100, Michael Bernagou wrote: > And when I launched the script : > %M2_HOME%\bin\mvn eclipse:eclipse -Dwtpversion=1.5 > > It download something like 20 librairies more such as avalon-framework, > neethi, etc... why?? I suppose there is a dependency who create many > inherance but for example, axis2-kernel, I was able to use it in the past > without all these libraries... They might be dependencies of the eclipse plugin itself (I haven't checked). -Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generating ejb skeleton code from wsdls
On Wed, 2007-11-21 at 10:31 +0200, Jeff Mutonho wrote: > One of the steps I would like to automate is the generation of skeleton ejb > code(for Websphere 6) from wsdls. Currently this is being done > by creating a batch file with the following content > > WSDL2Java -v -r develop-server -c ejb –I yes -o -f > > This batch file is then run from the "\runtimes\base_v6\bin" You can use the exec plugin. IBM also provides an ant job for this, which you can invoke with the antrun plugin. -Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 1 depency find, 10 downloaded!
On Nov 21, 2007 12:53 PM, Michael Bernagou <[EMAIL PROTECTED]> wrote: > Hello (world), > > I'm a sort of noob in Maven2.0.7. I'm using Eclipse WTP and the latest > maven-eclipse-plugin. > > I defined theses dependencies : [...] > And when I launched the script : > %M2_HOME%\bin\mvn eclipse:eclipse -Dwtpversion=1.5 > > It download something like 20 librairies more such as avalon-framework, > neethi, etc... why?? I suppose there is a dependency who create many > inherance but for example, axis2-kernel, I was able to use it in the past > without all these libraries... execute "mvn -X test" and maven will print whole dependency tree so you will see which dependencies are defined as child dependencies of your dependencies. This is called 'transitive dependencies' and you may find how to exclude them here: http://docs.codehaus.org/display/MAVENUSER/FAQs-1#FAQs-1-CanIdisabletransitivedependencies%3F HTH, Tomek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
1 depency find, 10 downloaded!
Hello (world), I'm a sort of noob in Maven2.0.7. I'm using Eclipse WTP and the latest maven-eclipse-plugin. I defined theses dependencies : log4j log4j 1.2.15 org.slf4j slf4j-log4j12 1.4.3 org.slf4j slf4j-api 1.4.3 com.sun.jdmk jmxtools 1.2.1 org.apache.tapestry tapestry-core 5.0.6 org.apache.tapestry tapestry-ioc 5.0.6 org.apache.tapestry tapestry-annotations 5.0.6 commons-logging commons-logging-api 1.1 org.apache.ws.commons.schema XmlSchema 1.3.2 activation activation 1.1 org.apache.ws.commons.axiom axiom-api 1.2.5 org.apache.ws.commons.axiom axiom-dom 1.2.5 org.apache.axis2 axis2-kernel 1.3 And when I launched the script : %M2_HOME%\bin\mvn eclipse:eclipse -Dwtpversion=1.5 It download something like 20 librairies more such as avalon-framework, neethi, etc... why?? I suppose there is a dependency who create many inherance but for example, axis2-kernel, I was able to use it in the past without all these libraries... -- Michael Bernagou Java Developper
Re: How to pass different options to javac during compile and testCompile goals?
Hi Milos, Milos Kleint wrote: Sahoo wrote: (Resending as I am on the users alias now. I have also put a reference to a similar unsolved question from the past) Hi, I want to pass different options to maven-compiler-plugin during compile and testCompile goals. Let's say, I want to set source level as 1.4 for all my src/main/java code and set source level as 1.5 for my test sources. How do I do it? I found someone having similar requirements in the past [1], but there is no mention of a working solution yet. Thanks, Sahoo [1] http://mail-archives.apache.org/mod_mbox/maven-users/200609.mbox/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] what about something like this? org.apache.maven.plugins maven-compiler -plugin ${sourceLevel} ${sourceLevel} ${sourceLevel} compile-tests process-test-sources testCompile ${testSourceLevel} ${testSourceLevel} 1.4 1.5 Regards Milos Kleint Thanks for your timely response. Your suggestion seems to work, but I think there is something else which is contributing to the success here. *I see maven-compiler-plugin:testCompile goal is invoked twice*. The first time it uses our execution configuration, where as the second time around, it uses the default configuration. Since the test sources are already compiled during first execution, they are not compiled second time around. See the output below: [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 1 source file to /tmp/my-app/target/classes [INFO] [compiler:testCompile {execution: compile-tests}] [INFO] Compiling 1 source file to /tmp/my-app/target/test-classes [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] Thanks, Sahoo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Doxia Macro in a xdoc file
Hi Dennis, You are right it works with the 2.0-beta-6-SNAPSHOT. Thanks for the hint. I was using the 2.0-beta-5 version. As the Doxia site has not project summary page (cf. http://maven.apache.org/doxia/project-info.html), it not possible to know which version to use. I would be nice to add this information at the Doxia Macros Guide page (cf.http://maven.apache.org/doxia/macros/index.html). I give an example how I did it : mypage.xdoc Author MyTitle page [...] and in the pom.xml 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";> [...] org.apache.maven.plugins maven-site-plugin 2.0-beta-6-SNAPSHOT [...] Rémy
Re: Using dependency versions in a property file
First, if the classpath you want to build is used in Eclipse or IntellJ, maven's plugin can help you generate it. Or if you really want to generate the file which format you provided, you can write a small util program parsing pom file and generate the file you want, by dom4j, for instance. Or you may want to develop a maven plugin for this usage, so you can run it automatically. Juven On Nov 21, 2007 4:44 PM, Jochen Wiedmann <[EMAIL PROTECTED]> wrote: > On Nov 21, 2007 9:32 AM, Juven Xu <[EMAIL PROTECTED]> wrote: > > > You want to create pom file automatically? or just want to create > classpath > > file automatically? > > I want to create a file like > >dependency.1=xercesImpl-2.7.1.jar >dependency.2=xalan-2.4.0.jar >... > > > > > -- > Look, that's why there's rules, understand? So that you think before > you break 'em. > >-- (Terry Pratchett, Thief of Time) > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Using dependency versions in a property file
On Nov 21, 2007 9:32 AM, Juven Xu <[EMAIL PROTECTED]> wrote: > You want to create pom file automatically? or just want to create classpath > file automatically? I want to create a file like dependency.1=xercesImpl-2.7.1.jar dependency.2=xalan-2.4.0.jar ... -- Look, that's why there's rules, understand? So that you think before you break 'em. -- (Terry Pratchett, Thief of Time) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using dependency versions in a property file
You want to create pom file automatically? or just want to create classpath file automatically? If in latter case, Eclipse for instance, use command "mvn eclipse:clean eclipse:eclipse" to generate your eclipse classpath file. Juven On Nov 21, 2007 4:24 PM, Jochen Wiedmann <[EMAIL PROTECTED]> wrote: > On Nov 21, 2007 9:18 AM, Juven Xu <[EMAIL PROTECTED]> wrote: > > > I don't quite understand your situation, why not config version number > in > > pom file and use Maven-IDE plugin to generate classpath file? > > The version number *is* in the pom file: It is part of the dependency > specification. > > What is the Maven-IDE plugin? > > > Thanks, > > Jochen > > > > -- > Look, that's why there's rules, understand? So that you think before > you break 'em. > >-- (Terry Pratchett, Thief of Time) > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Generating ejb skeleton code from wsdls
One of the steps I would like to automate is the generation of skeleton ejb code(for Websphere 6) from wsdls. Currently this is being done by creating a batch file with the following content WSDL2Java -v -r develop-server -c ejb –I yes -o -f This batch file is then run from the "\runtimes\base_v6\bin" Has anyone successfully done this? Googling has only pointed me to this : https://svn.codehaus.org/mojo/tags/mojo-sandbox-3/mojo-was/was5-maven-plugin/ -- "Don't take the name of root in vain." Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Using dependency versions in a property file
On Nov 21, 2007 9:18 AM, Juven Xu <[EMAIL PROTECTED]> wrote: > I don't quite understand your situation, why not config version number in > pom file and use Maven-IDE plugin to generate classpath file? The version number *is* in the pom file: It is part of the dependency specification. What is the Maven-IDE plugin? Thanks, Jochen -- Look, that's why there's rules, understand? So that you think before you break 'em. -- (Terry Pratchett, Thief of Time) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using dependency versions in a property file
I don't quite understand your situation, why not config version number in pom file and use Maven-IDE plugin to generate classpath file? On Nov 21, 2007 4:02 PM, Jochen Wiedmann <[EMAIL PROTECTED]> wrote: > Hi, > > it hit me again: I have a property file, which contains version number > of dependencies (in order to build the classpath, depending on the JDK > version). That property file is maintained manually, of course an ugly > thing. But I have no idea how to create it automatically. > > Any suggestions? > > Thanks, > > Jochen > > -- > Look, that's why there's rules, understand? So that you think before > you break 'em. > >-- (Terry Pratchett, Thief of Time) > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Using dependency versions in a property file
Hi, it hit me again: I have a property file, which contains version number of dependencies (in order to build the classpath, depending on the JDK version). That property file is maintained manually, of course an ugly thing. But I have no idea how to create it automatically. Any suggestions? Thanks, Jochen -- Look, that's why there's rules, understand? So that you think before you break 'em. -- (Terry Pratchett, Thief of Time) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]