Maven Enforcer Plugin, requirePluginVersions, and Maven 3.0

2010-09-08 Thread Trevor Harmon
Hi, I'm trying out Maven 3.0-beta-3, and one of the first things I noticed is a new warning message: [INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-rules) @ MyApp --- [WARNING] This rule is not compatible with the current version of Maven. The rule is not able to perform any

Re: Maven Enforcer Plugin, requirePluginVersions, and Maven 3.0

2010-09-08 Thread Trevor Harmon
On Sep 8, 2010, at 11:14 AM, Brian Fox wrote: The workaround is to not use this rule in M3 anymore since the core will throw warnings at you anyway. For the requireMavenVersion and requireJavaVersion rules, should I continue using Enforcer, or is there a Maven 3 analog for them as well?

Re: Maven failing due to javac path issue -- Windows

2010-09-07 Thread Trevor Harmon
On Sep 7, 2010, at 9:25 AM, Enrique Gaona wrote: Output from the variables: C:\RTC-data\workspaceecho %JAVA_HOME% C:\IBM\ibm-java-sdk-60-win-i386\sdk Does it work on Oracle's JDK instead of IBM's? Trevor - To unsubscribe,

Re: Maven failing due to javac path issue -- Windows

2010-09-07 Thread Trevor Harmon
On Sep 7, 2010, at 9:34 AM, Enrique Gaona wrote: Can't say if it works with Oracle's JDK, since I've not tried it before. Trying with Oracle's would help determine where the problem lies. One workaround would be specify the maven-compiler-plugin in the parent pom.xml, but I really don't want

Deploy with SFTP tries to cd to parent too many times

2010-09-06 Thread Trevor Harmon
Hi, I'm running into a build failure when doing mvn deploy via SFTP. This appears to be a bug that affects any repository whose SFTP host disallows access to the root directory. Here's what I know so far: By instrumenting JSch (which does the actual SFTP commands), I can see that the problem

Re: Deploy with SFTP tries to cd to parent too many times

2010-09-06 Thread Trevor Harmon
On Sep 6, 2010, at 1:49 AM, Stephen Connolly wrote: Use A Maven repository manager and then you will not be worrying about sftp at all. How does a repository manager eliminate the need for SFTP? Trevor - To unsubscribe,

Re: Deploy with SFTP tries to cd to parent too many times

2010-09-06 Thread Trevor Harmon
On Sep 6, 2010, at 3:17 AM, Stephen Connolly wrote: Because they all deploy via http/https So in other words, use WebDAV and then I will not be worrying about SFTP at all. Well, yes, naturally. But at the moment my client only has an SFTP server, and as far as I know, the SFTP transport in

Re: Deploy with SFTP tries to cd to parent too many times

2010-09-06 Thread Trevor Harmon
On Sep 6, 2010, at 4:01 AM, Stephen Connolly wrote: Your client would be better served using a Maven Repository Manager than a website backed by an SFTP share. Drink the Kool-aid No small feat. I am the lone Java developer in an enterprise that is 100% C#. They already drank the Kool-Aid, and

Re: Deploy with SFTP tries to cd to parent too many times

2010-09-06 Thread Trevor Harmon
On Sep 6, 2010, at 4:01 AM, Stephen Connolly wrote: Actually no, AFAIK use http direct, so it's not the WebDAV client at all. Hmm... so how are artifacts deployed without Wagon? The Wagon docs say that deployment over HTTP is not supported. Trevor

Re: Deploy with SFTP tries to cd to parent too many times

2010-09-06 Thread Trevor Harmon
On Sep 6, 2010, at 7:22 AM, Justin Edelson wrote: Can you use SCP instead of SFTP? I tried that, but it fails with Remote connection terminated unexpectedly. I suspect this is because shell access to the server is disabled. (Trying to ssh to it gives PTY allocation request failed on channel 0

Re: Deploy with SFTP tries to cd to parent too many times

2010-09-06 Thread Trevor Harmon
On Sep 6, 2010, at 6:48 AM, Ron Wheeler wrote: Get Nexus up and running and start to enjoy using Maven. I'm sensing a theme here. Anybody reminded of that old joke? Doctor, it hurts when I move my arm like this. Doctor: Then don't move your arm like that. It is free. It is easy to install

Re: Deploy with SFTP tries to cd to parent too many times

2010-09-06 Thread Trevor Harmon
On Sep 6, 2010, at 4:35 AM, Stephen Connolly wrote: not without wagon, just not with the webdav wagon Sorry, I'm still confused. The Wagon docs [1] list the following providers: * File * HTTP * HTTP lightweight * FTP * SSH/SCP * WebDAV * SCM (in progress) Of the three that are accessible over

Overriding a dependency in Maven's uberjar

2010-09-05 Thread Trevor Harmon
Hi, I was getting an exception when deploying, so I needed to figure out exactly what SFTP commands were being issued. The stack trace indicated that JSch was issuing the commands, but it didn't seem to have any kind of debug switch, at least not one that I could enable from Maven. I decided

Re: Attaching platform-specific executables as secondary artifacts

2010-08-17 Thread Trevor Harmon
On Aug 16, 2010, at 5:24 PM, Justin Edelson wrote: Can you think of any potential problems in binding build-helper to the deploy phase instead? Thanks, Well, that would mean the artifacts never end up in your local repository, which seems weird. Good point, but in this case the artifacts

Re: Maven properties not accessible in xhtml

2010-08-17 Thread Trevor Harmon
On Aug 16, 2010, at 9:05 AM, mani.si...@cox.com wrote: The site came up as expected but the html did not interpret the ${project.name} and it was printed as it is. In comparison when I used apt, then the html does show the name which maven reads from the POM.xml When I use APT, built-in

Re: Attaching platform-specific executables as secondary artifacts

2010-08-17 Thread Trevor Harmon
On Aug 16, 2010, at 5:19 PM, Trevor Harmon wrote: On Aug 16, 2010, at 5:04 PM, Justin Edelson wrote: http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html Thanks, that looks like just what I need. I experimented some more with this issue, and it turns out I don't

External repository always requires a repository manager?

2010-08-16 Thread Trevor Harmon
Hi, I've set up an internal repository for deploying project artifacts. It was remarkably easy to do. All I needed was some web space with SCP access. After that it was only a matter of configuring my POM's distributionManagement to point to the URL. No repository manager needed. Now I'd like

Re: External repository always requires a repository manager?

2010-08-16 Thread Trevor Harmon
On Aug 16, 2010, at 1:20 AM, Stephen Connolly wrote: Your life would be much easier using a repository manager for your internal repository. Nexus is almost trivial to set up, for example. It is trivial to set up *if* you have the necessary permissions to set up the service. In my case, I'm

Re: External repository always requires a repository manager?

2010-08-16 Thread Trevor Harmon
On Aug 16, 2010, at 4:48 AM, Ron Wheeler wrote: Find a provider that lets you run your own application. Put it on a cloud service. Yes, those are ways around the shared hosting problem, but as soon as I have to purchase and manage separate server space just to run a repository manager, it is

Re: External repository always requires a repository manager?

2010-08-16 Thread Trevor Harmon
On Aug 16, 2010, at 7:20 AM, Justin Edelson wrote: But if you are a single developer, I'm not sure what value you are looking to get out of this. Your local Maven repository acts as a local cache, so unless you need to blow this away with some regularity, what's the point? Well, I'm a single

Re: External repository always requires a repository manager?

2010-08-16 Thread Trevor Harmon
On Aug 16, 2010, at 10:18 AM, Justin Edelson wrote: One in and out to learn is that your distinction of internal and external repositories isn't found in Maven. I found it here: http://docs.codehaus.org/display/MAVENUSER/Maven+Concepts+Repositories Is the term external repository not valid?

Re: External repository always requires a repository manager?

2010-08-16 Thread Trevor Harmon
On Aug 16, 2010, at 12:29 PM, Justin Edelson wrote: Okay, let me make sure I understand this. Say I've got a main artifact and a customized plugin that it depends on. I can configure the plugin to deploy to my own remote repository by adding the repository info to the plugin POM's

Attaching platform-specific executables as secondary artifacts

2010-08-16 Thread Trevor Harmon
Hi, My project is a Java GUI app, and when I deploy it, its JAR artifact is uploaded to the repository. I also use a couple of plugins to generate platform-specific executables for the app: launch4j [1] and osxappbundle [2]. I'd like to deploy these executables to the repository too, so

Re: Attaching platform-specific executables as secondary artifacts

2010-08-16 Thread Trevor Harmon
On Aug 16, 2010, at 5:04 PM, Justin Edelson wrote: http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html Thanks, that looks like just what I need. The only problem is that it binds by default to the package phase, which would require binding the launch4j and

Velocity bug fixed in 2007 still affects JXR users

2010-08-15 Thread Trevor Harmon
Hi, There was a bug in Velocity that was causing a spurious error message to be printed: [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm :

Re: Velocity bug fixed in 2007 still affects JXR users

2010-08-15 Thread Trevor Harmon
On Aug 15, 2010, at 11:10 AM, Dennis Lundberg wrote: Can you please open an issue in JIRA for this at: http://jira.codehaus.org/browse/JXR http://jira.codehaus.org/browse/JXR-84 Trevor - To unsubscribe, e-mail:

Re: PMD plugin: source xref not generated unless JXR runs first

2010-08-14 Thread Trevor Harmon
On Aug 13, 2010, at 11:48 PM, Lukas Theussl wrote: if you want it to work with 'mvn site' you have to configure the jxr plugin as a report, see http://maven.apache.org/plugins/maven-jxr-plugin/usage.html Worked great; thanks! How can I help add this to the documentation? It was not at all

Is release:perform optional?

2010-06-07 Thread Trevor Harmon
Hi, I need a quick-and-easy way of tagging the current snapshot and bumping up the version number of my POM. The Release plugin can do this in one step with its release:prepare goal. However, the plugin then expects me to run release:perform, which as far as I can tell simply invokes the

Re: Adding extra jar dependencies to maven build

2010-06-07 Thread Trevor Harmon
On Jun 7, 2010, at 2:36 PM, scabbage wrote: I have a project which contains some internal jar files I got from someone. These jar files are not in any repository, so I cannot add them as dependency/dependency. You could add them as a dependency with a scope of system.

Re: Is release:perform optional?

2010-06-07 Thread Trevor Harmon
On Jun 7, 2010, at 3:22 PM, Justin Edelson wrote: If you don't do release:perform, how does the release artifact get created? The release artifacts for my project (a stand-alone Java desktop app) are created using the osxappbundle and launch4j plugins. So my release process is: 1. Tag

Re: Is release:perform optional?

2010-06-07 Thread Trevor Harmon
On Jun 7, 2010, at 3:52 PM, Mark Derricutt wrote: Add the osxappbundle:bundle and launch4j:launch4j goals to the deploy/ element. You mean the goals element, like this? plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-release-plugin/artifactId version2.0/version

Best practices for developing Java applets with Maven

2010-05-02 Thread Trevor Harmon
Hi, I'm developing a plain old run-of-the-mill Java applet. Yes, just a simple stand-alone applet, not bundled with a WAR file or anything like that. I use Maven to build the class files and JAR, but what then? Is there a standard Maven way of loading the applet in a browser (locally) to view

Dealing with buggy plugins

2009-12-26 Thread Trevor Harmon
One of my projects depends on a couple of third-party plugins available on Central. These plugins provide key functionality for the build, but they also contain some serious bugs. Let's say I fix these bugs myself and submit patches to the maintainers. It could be months before the patches are

Re: Dealing with buggy plugins

2009-12-26 Thread Trevor Harmon
On Dec 26, 2009, at 3:15 AM, Dan Tran wrote: you must have your own repo and cut your own internal release of the plugin with your fixes. Why exactly is a repo necessary? Setting one up just to host a couple of patched plugins for my personal use seems like overkill. If it is required, what

Re: Dealing with buggy plugins

2009-12-26 Thread Trevor Harmon
On Dec 26, 2009, at 5:41 AM, Anders Hammar wrote: Well, I'd say it's better to install the MRM (Nexus or Artifactory) on a server in your development network. All your developers will be dependent on this to get the patched plugins (or any other internal artifacts). A couple of issues with

Re: Dealing with buggy plugins

2009-12-26 Thread Trevor Harmon
On Dec 26, 2009, at 4:04 AM, Dan Tran wrote: Another option is the fork the plugin into your SCM, that is even worse You mean the binaries or the source? I agree that managing JARs in an SCM is not a good idea, but I don't see anything wrong with putting a patched branch of the plugin into my

Re: Direclty commit in svn without a workingdirectory

2009-06-10 Thread Trevor Harmon
On Jun 10, 2009, at 3:28 AM, Nafter wrote: Is it possible with maven and ANT to directly commit and overwrite a file in subversion without a workingdirectory on the disc? I don't think this is possible in Subversion, so it wouldn't be possible in Maven or Ant, either. Trevor

Re: Is there a way to specify a particular SNAPSHOT version?

2009-06-10 Thread Trevor Harmon
On Jun 10, 2009, at 4:03 AM, U Gopalakrishnan wrote: pick up a new snapshot version only once in every 2 weeks or so. You might be able to do this by setting the snapshots updatePolicy of your settings.xml to interval:XXX (XXX in minutes). Trevor

wagon:upload fails only with release:perform

2009-06-09 Thread Trevor Harmon
Hi, I'm using release:perform, and it works perfectly in the standard configuration. But now I'm trying to modify it so that an additional goal is invoked as part of the release:perform process. The additional goal is wagon:upload, which I've configured to upload some files to a server

Re: wagon:upload fails only with release:perform

2009-06-09 Thread Trevor Harmon
On Jun 9, 2009, at 3:26 AM, Reinhard Nägele wrote: Have you tried to create an execution for the wagon plugin that is bound to the install phase instead of adding the wagon:upload to the release plugin goals? No, because the wagon:upload goal is uploading files produced by the release

Re: wagon:upload fails only with release:perform

2009-06-09 Thread Trevor Harmon
On Jun 9, 2009, at 3:56 AM, Reinhard Nägele wrote: I guess it should work, yes. At least I would not know why it doesn't. I filed a bug on it: http://jira.codehaus.org/browse/MRELEASE-453 Trevor - To unsubscribe, e-mail:

Re: wagon:upload fails only with release:perform

2009-06-09 Thread Trevor Harmon
On Jun 9, 2009, at 10:21 AM, Dan Tran wrote: Release plugin does not know about command line goals, but only a phase goal. I'm not sure what a command line goal is. I think you mean it only works with phases, not goals. But that's contrary to both the documentation and my experience

Re: $JAVA_HOME ignored?

2009-06-09 Thread Trevor Harmon
On Jun 9, 2009, at 5:49 PM, Elliot Huntington wrote: Why is it then that in order to have maven compile my project for 1.5 I need to use the following? Maven's compiler plugin always defaults to a Java 1.3 target, regardless of the host VM version. Trevor

Re: Possible problem when multiple developers depend on SNAPSHOT versions

2009-03-26 Thread Trevor Harmon
On Mar 25, 2009, at 10:26 PM, Martin Gainty wrote: The only way to accomplish this is called version control I thought it was clear in the first paragraph that version control is involved: They have both checked out Foo's trunk and are regularly committing changes to it. There are

Re: Possible problem when multiple developers depend on SNAPSHOT versions

2009-03-26 Thread Trevor Harmon
On Mar 25, 2009, at 3:26 PM, Martin Gainty wrote: someone is assigned mainline of code and someone-else assigned a branch (this happens when core is heavily customised for a customer's needs where the user-specific mods will be integrated by merge-branch later on) This does not solve

Re: Possible problem when multiple developers depend on SNAPSHOT versions

2009-03-26 Thread Trevor Harmon
On Mar 25, 2009, at 3:29 PM, Todd Thiessen wrote: Bob should work on a branch. IMHO if any work is taking a long time and you can't commit it to trunk in a timely manner, then do that work on a branch so you can commit often and still take specific control over when Alice's changes get

Re: Possible problem when multiple developers depend on SNAPSHOT versions

2009-03-26 Thread Trevor Harmon
On Mar 25, 2009, at 5:28 PM, Brian E. Fox wrote: Do we assume that bob is unable to see that the version he currently works on and compiles, tests, installs and maybe deploys has 2.2-snapshot written all over it? Yes. Maven generates a lot of output to the console, and it's easy to ignore

Re: Possible problem when multiple developers depend on SNAPSHOT versions

2009-03-26 Thread Trevor Harmon
On Mar 25, 2009, at 5:07 PM, Sean Hennessy wrote: Evidence to the contrary that Bob and Alice are working independently is they share development on single artifact Foo. They're working independently on AppA and AppB, but they're sharing the work of developing Foo. Ensure Alice and Bob

Re: Possible problem when multiple developers depend on SNAPSHOT versions

2009-03-26 Thread Trevor Harmon
On Mar 26, 2009, at 12:52 PM, Todd Thiessen wrote: I don't think so. When Bob merges the trunk to branch he will have both Alice's changes and his. When he does an install, the 2.2-SNAPSHOT version will contain both his and Alices changes for all modules. Yes, but AppB will still reference

archetype:generate gives Desired archetype does not exist

2009-03-25 Thread Trevor Harmon
Using Maven 2.0.10, if I do: mvn -e archetype:generate then press Enter when it prompts me for a number, I get errors: [WARNING] repository metadata for: 'artifact org.apache.maven.archetypes:maven-archetype-quickstart' could not be retrieved from repository: central due to an error:

Possible problem when multiple developers depend on SNAPSHOT versions

2009-03-25 Thread Trevor Harmon
Consider this scenario: Alice and Bob are working independently on two different applications, AppA and AppB. Both applications depend on an in-house shared library, Foo, that Alice and Bob are working on together. They have both checked out Foo's trunk and are regularly committing changes

Re: archetype:generate gives Desired archetype does not exist

2009-03-25 Thread Trevor Harmon
On Mar 25, 2009, at 1:34 PM, Trevor Harmon wrote: Using Maven 2.0.10, if I do: mvn -e archetype:generate then press Enter when it prompts me for a number, I get errors: Found the problem. I'm using a local installation of Nexus as a mirror of central, but the local installation was down

Does a plugin with no executions need to be marked inherited?

2009-03-24 Thread Trevor Harmon
Hi, I have a parent POM that configures the Compiler plugin for Java 1.4. It modifies the plugin's configuration and does not define any goals or executions. In such a situation, does setting the plugin's inherited element to true have any effect? For example: plugin

Re: Extracting classpath for an application from maven

2009-03-07 Thread Trevor Harmon
On Mar 7, 2009, at 3:11 AM, Roman Kournjaev wrote: I have a maven based application, well now i want to run it in cmd mode, it means just executing the compiled class. I use exec:java for this. Trevor - To unsubscribe,

Re: executing maven-exec-plugin twice doesn't seem to work

2009-02-13 Thread Trevor Harmon
On Feb 12, 2009, at 3:42 PM, klimane wrote: I am trying to get a maven-exec-plugin to run two different main programs in a particular order within the same build. Have you looked at this? http://article.gmane.org/gmane.comp.java.maven-plugins.mojo.user/1307 Trevor

Re: slightly [ot] Help setting up a MAC for Maven

2009-02-13 Thread Trevor Harmon
On Feb 12, 2009, at 5:50 PM, David C. Hicks wrote: As far as I know, there is no Java6 for Mac, yet. There is, but the Apple-provided one is only for 64-bit Intel machines running Leopard. An alternative is SoyLatte: http://landonf.bikemonkey.org/static/soylatte/ Trevor

Re: slightly [ot] Help setting up a MAC for Maven

2009-02-13 Thread Trevor Harmon
On Feb 12, 2009, at 5:31 PM, Mick Knutson wrote: I am used to configuring Windows and Linux as a developer machine. But want to setup a mac now. And I am finding it tough to add maven 2.0.9 along with MAVEN_HOME, as well as a newer JDK 6 and JAVA_HOME so I can run command line builds on a

Re: Character encoding for APT files

2009-01-22 Thread Trevor Harmon
On Jan 22, 2009, at 4:50 PM, Hervé BOUTEMY wrote: Sorry, I was working on other things and missed this discussion. I just commented (and closed as Not A Bug :) ) the issue. I agree that autodetecting is not a bullet-proof feature, but an absolute guarantee is not required in this case. I

Re: Figures in APT require extension

2009-01-21 Thread Trevor Harmon
/references/doxia-apt.apt Trevor Harmon wrote: I'm running into bug DOXIA-99: http://jira.codehaus.org/browse/DOXIA-99 If I don't specify an extension, then the HTML is generated without one, causing the image to fail to load. If I do specify an extension, then the HTML has the extension

Re: Use of profiles

2009-01-19 Thread Trevor Harmon
On Jan 16, 2009, at 1:55 PM, Eric Rotick wrote: My requirement was simply to allow for common sections to be collected together to enhance the maintainability of the pom. Currently the verbose nature of the pom makes it far too easy to have subtle differences that ruin the test. We're

Hierarchical multi-module projects in a source code repository

2009-01-19 Thread Trevor Harmon
Hi, I have a multi-module project that is stored in a flat directory structure in our source code repository (Subversion). For example: repo parent trunk tags branches child1 trunk tags branches child2 trunk tags

Re: Use of profiles

2009-01-16 Thread Trevor Harmon
On Jan 15, 2009, at 7:09 AM, Eric Rotick wrote: So, the first question is, is this use of profiles correct? I can see that primary purpose of profiles is to set up, well profiles, of different scenarios for the build. In this respect the use of profiles for specific tests falls loosely into

APT into HTML without sidebar/header/footer

2009-01-15 Thread Trevor Harmon
Hi, I have some documents authored in APT that get bundled with the project web site when doing mvn site. This transforms the APTs into separate HTML files, but each one has a copy of the site's sidebar, header, and footer. This is fine when viewing the document as part of the site, but

Executing a plugin from another plugin

2009-01-15 Thread Trevor Harmon
Hi, I have a custom plugin that I've written, and I need it to call out to some other plugin. For example, I've got the following code in a POM: plugin artifactIdmaven-assembly-plugin/artifactId executions execution idinstaller/id

Character encoding for APT files

2009-01-12 Thread Trevor Harmon
When Doxia generates HTML from APT, it appears to force the HTML file to use ISO-8859-1, regardless of the original APT's encoding. I don't really understand why, since the Maven Doxia Converter supposedly generates all files in UTF-8:

Re: Block level elements do not appear in output

2009-01-12 Thread Trevor Harmon
On Jan 12, 2009, at 8:14 AM, Lukas Theussl wrote: You use 'mvn site' to generate apt files from apt source files? I guess you mean html? In this case the title and author end up in the html head, so you don't see them when you view the file with a browser. Yes, sorry, I meant that I'm

Project documentation (with Doxia)

2009-01-12 Thread Trevor Harmon
I'm getting started with Doxia but have run into some issues. 1) mvn site converts my APT files to HTML, but I want them converted to PDF as well. I know PDF generation is possible with the aptconvert utility, but how can I do it with Maven, preferably as part of the site phase? 2) Many

Block level elements do not appear in output

2009-01-09 Thread Trevor Harmon
Hi, My APT file declares block level elements such as a title and author, as defined by the APT format: http://maven.apache.org/doxia/references/apt-format.html However, when I run mvn site, the APT file that is generated is missing the block level elements. Is this a bug? Trevor

Re: Launching a stand-alone test program

2009-01-09 Thread Trevor Harmon
On Jan 7, 2009, at 5:01 PM, Kalle Korhonen wrote: If it's a manually run test application I'd create a separate module for it. You can set the main application as a dependency of this module, then spit out the required classpath with dependency:build-classpath and put the run parameters in

Book descriptor seems too complicated

2009-01-09 Thread Trevor Harmon
Hi, My goal is to generate a PDF of an APT file alongside the HTML that gets generated by default when running mvn site. It appears that writing a book descriptor is the only way to do this. However, the book descriptor mechanism seems way too complicated. It requires me to list

Launching a stand-alone test program

2009-01-07 Thread Trevor Harmon
Hi, In addition to the usual automated unit tests that run in Maven's test phase, I now need to add a special kind of test program. It's stand- alone, requires user interaction, and should be run only occasionally, not during every test phase. As for location, I assume I should just put

Re: Launching a stand-alone test program

2009-01-07 Thread Trevor Harmon
On Jan 7, 2009, at 12:20 PM, John Stoneham wrote: If you're just running a standalone program that doesn't really need to interact with anything that's in the POM or be tied to the Maven lifecycle or dependencies, no sense trying to couple it into Maven. I should have clarified what I meant

Re: Launching a stand-alone test program

2009-01-07 Thread Trevor Harmon
On Jan 7, 2009, at 12:56 PM, Wendy Smoak wrote: FWIW, I rely on my IDE to do this kind of thing. There's usually a Run configuration you can set up, and it figures out the classpath for you, lets you set parameters, etc. Setting up a Run configuration in an IDE is fine for a single user.

Deploying a customized plugin

2008-12-23 Thread Trevor Harmon
There's a plugin I'd like to use, but it has some bugs that prevent me from doing so. Fortunately, it's an open-source plugin, so I was able to fix the bugs, but I'm not sure how to make the fixes available to others on my team. Although I've submitted bug reports, there's no telling when

Re: Are Maven profiles like Ant targets?

2008-12-22 Thread Trevor Harmon
On Dec 19, 2008, at 4:24 PM, Baptiste MATHUS wrote: And I'm also really wondering why you try to use maven in what seems to me an ant-ish way. I made a mistake in even mentioning Ant. It seems to give a sense that I'm closed-minded and unable to think in the Maven way. I should have

Re: Are Maven profiles like Ant targets?

2008-12-22 Thread Trevor Harmon
On Dec 22, 2008, at 12:38 PM, Todd Thiessen wrote: I think the reason why you are having so much trouble with Maven is that you want to configure it to do what you want by giving it a specific command. But actually, I can give Maven a specific command to do what I want ... as long as a

Re: Are Maven profiles like Ant targets?

2008-12-17 Thread Trevor Harmon
On Dec 17, 2008, at 9:14 AM, Todd Thiessen wrote: This prints hello and goodbye as part of the clean phase. ... Doesn't this fit your needs? No, it doesn't fit my needs because it always prints both hello and goodbye. I want to print either hello or goodbye. For example, in the scenario

Re: Are Maven profiles like Ant targets?

2008-12-17 Thread Trevor Harmon
On Dec 17, 2008, at 3:33 AM, Martin Höller wrote: mvn -Pinstall4j package Why would you have to use a profile for this? Because it takes five minutes to run. I don't want to wait five minutes every time I package, install, or deploy my code. The install4j stuff only needs to happen

Re: Are Maven profiles like Ant targets?

2008-12-17 Thread Trevor Harmon
On Dec 17, 2008, at 12:18 PM, Martin Höller wrote: Ok. My approach would then be to create one profile which is only executed before releasing or when running in the contiuous-integration server. This profile would configure the antrun plugin to execute install4j, run integration tests, and

Re: Are Maven profiles like Ant targets?

2008-12-17 Thread Trevor Harmon
On Dec 17, 2008, at 3:54 AM, Martin Höller wrote: And BTW: Maven's primary goal is to help building and packaging software, not starting the developed piece of software, so IMHO the exec- plugin is not a good example here. Well I have to disagree with you there. Testing is also not about

Re: Are Maven profiles like Ant targets?

2008-12-17 Thread Trevor Harmon
On Dec 17, 2008, at 11:45 AM, Geoffrey Wiseman wrote: All I'm really trying to say (and I suspect what others are trying to say) is that the answer to your original question, Are profiles intended to play the same role as Ant targets? is No. They aren't. Yes, I was trying to simplify

Are Maven profiles like Ant targets?

2008-12-16 Thread Trevor Harmon
I'm coming from the Ant world, where targets are fundamental. Need to generate the JavaDocs and a JAR? Write targets called javadoc and jar then do: ant javadoc ant jar In Maven, these particular tasks have built-in plugins, so there's no need to write a target. Instead you just

Re: Are Maven profiles like Ant targets?

2008-12-16 Thread Trevor Harmon
On Dec 16, 2008, at 10:43 AM, Todd Thiessen wrote: You probably want to use a plugin. For instance you could use the DocBook plugin. http://maven-plugins.sourceforge.net/maven-sdocbook-plugin/index.html The sdocbook plugin does not work with Maven 2. I also tried the more recent docbook

Re: Are Maven profiles like Ant targets?

2008-12-16 Thread Trevor Harmon
On Dec 16, 2008, at 10:42 AM, Martin Höller wrote: You are doing it wrong. Maven has no targets like ant has. Maven has lifecylces [0] which is built of phases (e.g. 'compile', package', 'install'). Plugins are attached to phases and are executed whenever a phase is executed. Well, without

Re: Are Maven profiles like Ant targets?

2008-12-16 Thread Trevor Harmon
On Dec 16, 2008, at 2:54 PM, Todd Thiessen wrote: They are more powerful in the sense that you can still call any goal independantly But if I have two tasks implemented with AntRun, there's no way to call them independently because there's only one goal: run. I guess most of my problems

Re: Are Maven profiles like Ant targets?

2008-12-16 Thread Trevor Harmon
On Dec 16, 2008, at 5:24 PM, Todd Thiessen wrote: I believe there is. Plugin can have different executions. There is some documentation about that here: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycl e.html#Plugins But that doesn't work for the exec plugin. I'd be

Re: How does maven-compiler-plugin choose its defaults?

2008-11-19 Thread Trevor Harmon
On Nov 18, 2008, at 4:50 PM, Stephen Connolly wrote: 1.3 Ah... There is indeed a file in the Maven sources, JavacCompiler.java, that sets -source to 1.3 and -target to 1.1. It is in a bootstrap package, but I assume it somehow propagates to maven-compiler-plugin as well. Thanks for the

Re: Not happy with maven

2008-11-19 Thread Trevor Harmon
On Nov 19, 2008, at 1:44 PM, Martin von Gagern wrote: I would much prefer some kind of lib directory, where I could simply drop the library and start using it, to see if it is fit for the job I want to use it for in the first place. You can accomplish that by specifying the dependency with a

How does maven-compiler-plugin choose its defaults?

2008-11-18 Thread Trevor Harmon
When I do mvn help:effective-pom, it shows: plugin artifactIdmaven-compiler-plugin/artifactId version2.0.2/version inheritedtrue/inherited configuration source1.4/source target1.4/target /configuration /plugin I'm curious

Re: How does maven-compiler-plugin choose its defaults?

2008-11-18 Thread Trevor Harmon
On Nov 18, 2008, at 2:13 PM, Trevor Harmon wrote: I'm curious about the source and target settings. They're set to 1.4, but there's nothing in my POM that specifies 1.4. Oops, never mind about that, there was actually a parent POM that specified 1.4. So let me rephrase my question

Validate POM

2008-11-13 Thread Trevor Harmon
The Maven 1.x documentation describes a way to validate a POM file: http://maven.apache.org/maven-1.x/plugins/pom/validation.html This uses the XML schema to determine whether the POM is well-formed. However, the pom plugin apparently no longer exists in Maven 2.x. In that case, how does one

Sharing modules among multi-module projects

2008-11-13 Thread Trevor Harmon
There's an example in Chapter 6 of Maven: The Definitive Guide that shows how to set up and use a multi-module project. It's structured like this: \- Simple Parent Project +- Simple Weather API +- Simple Web Application Project With this setup, you can do mvn install on the parent

Why is pluginManagement necessary?

2008-11-13 Thread Trevor Harmon
I'm really confused about the pluginManagement section. It seems arbitrary and unnecessary. For instance, in the Chapter 6 example from Maven: The Definitive Guide, there is the following declaration: build pluginManagement plugins plugin

Re: Why is pluginManagement necessary?

2008-11-13 Thread Trevor Harmon
On Nov 13, 2008, at 10:40 AM, Nick Stolwijk wrote: Yes, take a look at multi module builds. The pluginManagement section will be valid for all child modules instead of only this module. This does not seem to be true. In the Chapter 6 example, if you remove the pluginManagement section,

Re: Validate POM

2008-11-13 Thread Trevor Harmon
On Nov 13, 2008, at 11:00 AM, Jason van Zyl wrote: mvn validate As a follow-up question, I am finding many cases where a seemingly invalid POM is not being flagged as invalid. For example: ... exclusions mainClassfoo.bar/mainClass /exclusions ... This is clearly invalid because the

Re: Sharing modules among multi-module projects

2008-11-13 Thread Trevor Harmon
On Nov 13, 2008, at 1:23 PM, Wayne Fay wrote: I would tend towards the first one if you require both projects to detect when a shared module is out-of-date as you have stated. That's actually the approach our team is using now. The problem is that we've got quite a large number of projects.

Re: Sharing modules among multi-module projects

2008-11-13 Thread Trevor Harmon
On Nov 13, 2008, at 5:26 PM, Wayne Fay wrote: Bear in mind that it is not sufficient to look at the file timestamps in target vs source and say target files are all newer than source, therefore no changes due to the possibilities of changes coming in via dependencies (including transitive

Re: Location of changelog, installer files?

2008-11-12 Thread Trevor Harmon
On Nov 10, 2008, at 6:28 PM, Chris wrote: Where in the standard maven directory layout should I put the changelog for my app (changelog.txt)? I'm not sure about a standard, but we put internal documentation in src/main/doc/development. Where should I put files that are used only by the

Re: No Cobertura, please

2008-11-03 Thread Trevor Harmon
On Nov 3, 2008, at 12:42 PM, Oleg Gusakov wrote: Strange, but true analogy - quantum cryptography is so interesting because of the same principle: we cannot observe a phenomena without changing it Otherwise known as the Heisenbug: http://en.wikipedia.org/wiki/Unusual_software_bug Trevor

How do I bind AntRun plugin to Assembly plugin?

2008-11-03 Thread Trevor Harmon
I've got a POM that packages up my code using the Assembly plugin, then it does some custom processing of the assembled code using the AntRun plugin. To accomplish this, I've got both plugins bound to the package phase so that they always run together. This works okay, except that whenever

  1   2   >