Antrun Classpath Issues [m2]

2006-08-24 Thread Allan Lewis
Hi all, I have an ant script that I need to call from a Maven build (a script provided by WebLogic for some WL-specific actions). The ant script defines some typedefs without issue, but when trying to use those types, ant complains that it can't find any regular expression matchers: jar:fi

[m2] Referencing System properties in an archetype pom

2006-01-17 Thread Allan Lewis
Is there a way to include additional system properties on the command line when running an archetype:create? We have an archetype that would need to include a (configurable) dependency. What we'd like to do is something like the following: mvn archetype:create -DarchetypeGroupId=... -Ddepende

[m2] Accessing resources packaged within plugins?

2006-01-10 Thread Allan Lewis
I have a plugin whose JAR file contains XML files that should be read by the plugin while performing the build (during the generate-soruces phase). Is there an easy way within the Mojo to access resources that are bundled within the plugin's JAR?

RE: [m2] Artifacts not available during the generate-sources phase?

2006-01-06 Thread Allan Lewis
able during the generate-sources phase? Add this to your mojo's annotation to allow your mojo to see all dependencies as if it is in test phase @requiresDependencyResolution test On 1/6/06, Allan Lewis <[EMAIL PROTECTED]> wrote: > > The following code in a Mojo: > > >

[m2] Artifacts not available during the generate-sources phase?

2006-01-06 Thread Allan Lewis
The following code in a Mojo: or (Iterator i = project.getArtifacts().iterator(); i.hasNext();) { Artifact a = (Artifact) i.next(); System.out.println(a.getFile()); } Produces a list of artifact files if executed during the 'test' phase, but not during the 'compile-sources' p