Maven supports Ant scripts as Maven plugins. Once you have your script
packaged as a Maven plugin, you can invoke it from the command line. See
section 5 of the Better Builds With Maven book.
Elliot Barlas wrote:
Hi all, I would like to define a ant task in a AntRun plugin configuration
I'm looking for a good way to surface external properties to Maven. For the
sake of brevity, these properties aren't in profiles.xml format but are in a
proprietary format. I was thinking I could create Profile instances as I
see fit and populate them such that the properties are available at
an instance of
my implementation class. Anyone?
ertnutler wrote:
I'm looking for a good way to surface external properties to Maven. For
the sake of brevity, these properties aren't in profiles.xml format but
are in a proprietary format. I was thinking I could create Profile
instances as I see fit
I've read through and followed this:
http://maven.apache.org/guides/introduction/introduction-to-plugin-prefix-mapping.html
I have a custom plugin whose groupId I've configured in a custom pluginGroup
in my m2_home/conf/settings.xml like so:
pluginGroups
i'm using the maven-ear-plugin to generate my application.xml. the problem i
have is that i would like to use a profile property as the value for the
webModule/contextRoot element. the catch is that sometimes i have a value
for this context root, sometimes i don't. for example, when we build
scp is an optional task. the fact that it fails on continuum but completes
normally in maven makes me think that the two are using different ant
distributions. the one that completes probably has ant-jsch.jar in its lib
directory, while the other probably doesn't. confirm that both
I have a plugin that does some generation, but I want to be able to print the
groupId/artifactId/version of the plugin to the file that gets generated. I
don't see anything in the docs that addresses this, and when I step through
my plugin in eclipse, the pluginContext Map is empty.
How do I
i'm trying to enforce a separation of concerns during my compile phase which
needs to be removed during the package phase. for example, if a developer
introduces a dependency on the persistence layer from the web layer, the
build should not compile. however, since we're currently deploying to a
Was this plugin ever produced? I'd like to get my hands on some similar
code.
Also, in the example below, where can I get the plexusContainer and settings
references? I assume this is being coded from within a plugin, but I don't
see where those collaborators live.
Emmanuel Venisse wrote:
hey, all. i've tried all the ways i can think of to dynamically disable
filtering, but none of them seem to work. what i'm looking for is a way to
disable filtering across a multi-project with a profile or a system
property, such that something like
filtering${enable.filtering}/filtering
can
i'm interested in using this plugin, but i can't checkout the source or
browse the repository from the project home page. has it been removed?
--
View this message in context:
http://www.nabble.com/Any-interest-in-a-maven-properties-plugin--tf2454363.html#a7011740
Sent from the Maven - Users
it works fine when i use a filter file, but i want to use properties defined
in profiles. the resources plugin uses them appropriately. any idea when
the war plugin will do the same?
--
View this message in context:
strange. i got it to work by changing the resource directory from
${basedir}/src/main/webapp/WEB-INF to ${basedir}/src/main/webapp. i can't
explain why it doesn't work for WEB-INF...
--
View this message in context:
I can't for the life of me figure out how to have the maven-war-plugin filter
my web.xml with properties from my profiles. i've read this thread:
http://www.nabble.com/War-plugin-and-filtering-webapp-files-t1617964.html
and i've tried all the configuration options mentioned there--except
i have a multi-module project that looks like this:
-- parent
|-- profiles.xml
|-- pom.xml
|-- childProjectJar
|--profiles.xml
|--pom.xml
|-- childProjectEjb
|-- profiles.xml
|-- pom.xml
one profile is defined in parent/profiles.xml, and environment
delete /org/codehaus/mojo/maven-weblogic-plugin from your local repository
and run your mvn command again. i don't know why, but if there's a pom in
that directory but no jar file, maven doesn't go to the remote repo again.
it just fails. deleting the local directory has always solved this
hey, all. i have an EJB project that builds an MDB with m2. my problem is
that when i use xdoclet in conjunction with this project, it doesn't
generate the appropriate deployment descriptors when my MDB bean class
inherits from a superclass. when i remove the extends clause and replace it
with
did this get resolved? i'm currently executing a custom ant script to copy
to the locations expected by the parent module...would love to get rid of
that if possible...
--
View this message in context:
am i missing something here? i may be exposing my relative newness to maven,
but why doesn't the javadoc plugin operate on transitive dependencies the
same way that the compiler plugin does?
--
View this message in context:
seems like something that could be scripted with minimal effort...have you
looked into that?
--
View this message in context:
http://www.nabble.com/Newbie-question-tf1879027.html#a5149890
Sent from the Maven - Users forum at Nabble.com.
has anybody worked out a solution to this? i'd like to do something very
similar, but at the very least i'd like to avoid redefining properties when
the values won't differ
--
View this message in context:
http://www.nabble.com/conditionally-loading-property-files-t1412492.html#a5017698
-Dsurefire.useFile=false doesn't do anything to show the actual stacktrace.
all this does is push the same output to the console. the way to solve this
is to pass -DstimTrackTrace=false.
--
View this message in context:
http://www.nabble.com/Surefire-Stacktrace-t1668865.html#a4764167
Sent from
that should be trimStackTrace
--
View this message in context:
http://www.nabble.com/Surefire-Stacktrace-t1668865.html#a4764172
Sent from the Maven - Users forum at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
for some reason when i create a new project from an existing archetype, the
pom.xml copied to the root of the new project has its project element
stripped of the xml namespace information and the empty dependencies
element is removed, as is the packaging element. this worked a couple of
days
wayne, thanks for your response. now that i think about it, i changed the
maven-archetype pom in my local repo as you suggested in the thread below
because i was having the problem described there:
Thanks for your response. I've pasted the stack trace below.
Build Error:
org.apache.maven.continuum.scm.ContinuumScmException: Error while
Hey, all. I can't for the life of me figure out why the CVS SCM provider
can't check out my source files from CVS. I noticed in a couple prior posts
that the CVSNT executable requires a login from the same shell prior to
starting Continuum. I've done this, yet I still get a build error with
27 matches
Mail list logo