answer here:
http://www.sonatype.com/books/mvnref-book/reference/resource-filtering-sect-properties.html
--
View this message in context:
http://maven.40175.n5.nabble.com/how-does-Maven-determine-which-version-to-download-for-a-plugin-when-no-version-specified-tp512519p512544.html
Sent from the
Where are the variables (properties?) defined?
e.g. ${project.artifactId}-${project.version}
--
View this message in context:
http://maven.40175.n5.nabble.com/how-does-Maven-determine-which-version-to-download-for-a-plugin-when-no-version-specified-tp512519p512543.html
Sent from the Maven - Us
I exec'd 'mvn clean install':
[INFO] --- maven-antrun-plugin:1.3:run
(fix.eclipse:eclipse-eclipseEAR.applicationXML) @ com.echo.cis.gui.ear ---
[INFO] Executing tasks
[xslt] Processing
C:\projects\clean\com.echo.cis.gui\com.echo.cis.gui.ear\target\eclipseEar\META-INF\application.xml
to
C:\pr
also, must I use antrun to output (echo) to console? Does Maven not have a
way to do it itself?
--
View this message in context:
http://maven.40175.n5.nabble.com/maven-antrun-plugin-not-working-tp512535p512538.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---
Your xml snippet binds the antrun-plugin to the build lifecycle. Executing
mvn antrun:run
does not call teh lifecycle, but the plugin directly. Try
mvn install
/Anders
On Fri, Jul 2, 2010 at 08:01, asookazian wrote:
>
> I have the following XML snippet in my parent POM:
>
>
>
I have the following XML snippet in my parent POM:
maven-antrun-plugin
1.3
echodir
This svn path should help you figure that out:
http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml?view=markup
/Anders
On Fri, Jul 2, 2010 at 07:33, asookazian wrote:
>
> Thanks!
>
> I was able to locate the following rele
Thanks!
I was able to locate the following relevant XML snippet in pom-4.0.0.xml for
Maven 2.2.1 in the maven-2.2.1-uber.jar:
maven-antrun-plugin
1.3
For Maven 3 beta 1 there is no *uber.jar (it's modularized like Seam 3 and
Spring 3).
Where is the equivalent
When you don't specify the version of a plugin, Maven should download the
latest version. However, very often the version is defined through a
pluginManagement section. This could be either in your pom hierarchy or in
Maven's super-POM. In your case, the version of the antrun-plugin is defined
in t
Using Maven 3 beta 1...
I have the following XML snippet in my pom.xml:
env-dev
true
maven-antrun-plugin
Using Maven 3 beta 1...
I have the following XML snippet in my pom.xml:
env-dev
true
maven-antrun-plugin
On 7/1/10 3:48 PM, CassUser CassUser wrote:
> Hey,
>
> Is there a way in maven to get the local IP address of the box which it's
> running on?
>
In a Maven plugin? http://lmgtfy.com/?q=getting+local+ip+address+in+java
-
To unsub
most likely the pom you were copy&pasting from either inherited a
dependencyManagement section which is specifying the version in that pom.xml
-S.
On 1 July 2010 16:52, Konovalov, Oleg wrote:
> Hi,
>
>
>
> I am very new to Maven, writing my first POM file.
>
>
>
> I am getting errors like:
>
> [
Dont read the book Better Builds with Maven. It is horribly out of date.
Check out Maven: The Complete Reference or Maven By Example..
More here
http://www.sonatype.com/documentation/books
manfred
> Read the manuals is always good advice.
> Install another good idea is to get a Nexus repositor
Read the manuals is always good advice.
Install another good idea is to get a Nexus repository installed.
See below for a short answer.
Ron
On 01/07/2010 5:45 PM, Arnaud X Dostes wrote:
You will find answers to your questions by spending five minutes reading the
five minute tutorial :
http:
You have to specify a version for your dependencies, otherwise Maven
will not know which version you want to use.
Read more about the dependency mechanism here:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
On 2010-07-01 17:52, Konovalov, Oleg wrote:
> Hi
On 2010-07-01 18:11, Benjamin Wootton wrote:
> Ah indeed it was the project/URL. I didn't realise that was actually used as
> part of the site generation. Removing it from the default value fixes up the
> links.
>
> Out of interest, is there any document that describes how the URL works in
> re
You will find answers to your questions by spending five minutes reading the
five minute tutorial :
http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
There is also the "Getting Started" tutorial which will take you about 30
minutes : http://maven.apache.org/guides/gettin
From: Konovalov, Oleg
Sent: Thursday, July 01, 2010 11:52 AM
To: 'users@maven.apache.org'
Subject: Version is Missing in POM
Hi,
I am very new to Maven, writing my first POM file.
I am getting errors like:
[0] 'dependencies.dependency.version' is missing for
javax.mail:mail:jar
Hi,
I am very new to Maven, writing my first POM file.
I am getting errors like:
[0] 'dependencies.dependency.version' is missing for
javax.mail:mail:jar
[1] 'dependencies.dependency.version' is missing for
javax.activation:activation:jar
Here is a snippet from my POM:
Ah indeed it was the project/URL. I didn't realise that was actually used as
part of the site generation. Removing it from the default value fixes up the
links.
Out of interest, is there any document that describes how the URL works in
relation to sites. The pom reference describes it as "a nic
> Is there a way in maven to get the local IP address of the box which it's
> running on?
What possible reason do you have for needing this? You may find this
list is more helpful if you describe what your end-goal is instead of
asking for how to solve intermediate steps.
Wayne
-
On 01/07/2010 3:43 PM, Marshall Schor wrote:
Hi Ron,
Did you read the documentation for writing descriptors for the assembly
plugin?
For instance, it has this bit:
http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_dependencySet
Yes
with the parameter:
|useTransi
Hey,
Is there a way in maven to get the local IP address of the box which it's
running on?
Hi Ron,
Did you read the documentation for writing descriptors for the assembly
plugin?
For instance, it has this bit:
http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_dependencySet
with the parameter:
|useTransitiveDependencies| Determines whether transitive depen
I'm with Tamás here. Having something that works, is not always the correct
solution...
/Anders
2010/7/1 Tamás Cservenák
> While Kalle's solution will do the work, I can't emphasize how this
> approach
> is wrong, at least I think it is.
>
> For situations like this, a custom plugin (or better,
Heh! I like that!
I change mine to my usual "-K" signature that I've been using since the late
1980s. Before that I used my full name.
-K, who would like a larger screen than her iPhone, and is dithering between
several choices. My contract is up in September. I'm in Overland Park, KS, and
thu
AFAIK,
When I first got a device like that, Brian might even have been one of the
people who complained about the tag line (which I subsequently change to
"Send from my rhymes with myPod")
On 1 July 2010 18:33, Kathryn Huxtable wrote:
> BTW, "Sent from my iPad" (or iPhone) is the first thing I
While Kalle's solution will do the work, I can't emphasize how this approach
is wrong, at least I think it is.
For situations like this, a custom plugin (or better, custom packaging)
would be the best, since this solution will produce inconsistent data:
Deployed POM will have packaging "pom", and
The pom artifact is always produced regardless. Make your module type
pom and attach the assembly zip as an artifact with the help of
buildhelper plugin:
http://mojo.codehaus.org/build-helper-maven-plugin/usage.html.
Kalle
On Thu, Jul 1, 2010 at 9:56 AM, Andreas Sewe
wrote:
> Hi all,
>
> I have
You'll find out...
BTW, "Sent from my iPad" (or iPhone) is the first thing I change when I get a
device like that.
-K
On Jul 1, 2010, at 7:22 AM, Brian Fox wrote:
> Since the site stuff is fully decoupled from core, it shouldn't really
> matter if site is done. Most people run the site build s
Hi all,
I have a project which should produce a ZIP, with all contents of
${project.build.outputDirect} put into a base directory within the ZIP.
So far, the maven-assembly-plugin with fits the
bill perfectly.
There is one issue, however, which I haven't been able to solve: I can't
get the
Thanks for the response. I was looking at the wrong pom file, sorry.
Here is what i have as the plugin:
org.apache.maven.plugins
maven-war-plugin
src/main/resou
On Thu, Jul 1, 2010 at 12:19 PM, CassUser CassUser wrote:
> resource1.xml is in src/main/resources. The resulting WAR looks like this:
...
> I don't want resource1.xml again at the top level. Any way to remove that?
Was that file ever somewhere else in the project?
Have you run 'mvn clean' re
Don't know if this message went through to users @ maven, sending again...
Nope. I have no resources defined in , it is using the standard
maven directory structure to find resources (src/main/resources).
Nothing really interesting in the POM, it is using the war plugin defaults:
well one assumes that you have correctly defined the /project/url parameter.
there are a number of multi-module releases at apache and codehaus all of
which deploy their site via
mvn site-deploy
or via mvn release:perform
and I have not seen issues with the links in the deployed sites as long a
Hi Stephen
I am talking about the deployed site - though I'm actually deploying to a
file:// URL on the same server. Would this make a difference over an scp?
Thanks
Ben
On 1 Jul 2010, at 16:05, Stephen Connolly
wrote:
> On 1 July 2010 15:02, wrote:
>
>> I am experiencing the common proble
On 1 July 2010 15:02, wrote:
> I am experiencing the common problem of links broken in multi module
> sites with parent poms.
>
> I understand that* mvn site* builds individual module sites but doesn't
> link them, and the* mvn site:deploy* should repair the links. The latter
> however doesn't
Thanks Nick,
I had to fallback on fully qualified notation.
But this sometimes become annoying as I face similar exception using eclipse
pluginn. So if a user does not know much about Maven and is only interested
in using archytype:generate he would have dig out the latest stable version
and also
I am experiencing the common problem of links broken in multi module
sites with parent poms.
I understand that mvn site builds individual module sites but doesn't
link them, and the mvn site:deploy should repair the links. The latter
however doesn't happen.
>From here http://maven.apache.org/
Put it in your pluginmanagement with a fixed version. Or if you don't
have a pom, specify the GAV of the plugin:
mvn
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5:crawl
Hth,
Nick Stolwijk
~Java Developer~
IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.ipro
I am trying to run Maven archetype plugin using 'mvn archetype:crawl'
However it fails with a message
"[INFO] Unable to find resource
'org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-6-SNAPSHOT'
in repository central (http://central)"
Now I already have alpha-5 in my local
Such a notation would be much more useful if it were
1. standardized and
2. unambiguous
My personal preference would be "something like"
groupId:artifactId(classifier):version;extension[scope]
This way, the classifier, the extension, and the scope could be optional
simp
Since the site stuff is fully decoupled from core, it shouldn't really
matter if site is done. Most people run the site build separately from
a ci system anyway and for the time being you could use m2 if needed.
For all the goodness m3 provides, I don't think the site plugin which
has a separate re
If you need it for a company, then I would highly recommend a repository
manager like Nexus or Archiva + a decent data backup for the accumulated repo.
You will route () all your requests to public repos through your repo
manager and thus it will 'cache' your artifacts. So even if the repo on
ja
This posting describes some DNS resolver changes that one user found
they needed - something OS/distribution specific and not your OS, but
might be worth a check:
http://www.mail-archive.com/users@maven.apache.org/msg90647.html .
You're on Linux, so you might run tcpdump and see if Maven is callin
I think org.glassfish.embedded:glassfish-embedded-all:jar is obsolete
now, e.g. javax.ejb.embeddable.EJBContainer is contained in
javax.ejb.jar.
I drop the entry from my list and it worked.
However the question how to get reliable maven repositories is still
important for me.
Thomas
Am Thu, 1
Ok, I understand your concerns but what would be a reliable repository
which provides:
>snip
Missing:
--
1) org.glassfish.embedded:glassfish-embedded-all:jar:3.0
>snip
?
Thomas
Am Thu, 1 Jul 2010 09:41:13 +0100
schrieb Stephen Connolly :
> Well I consider that to fall under immutabili
Mark Struberg wrote:
> to back Stephens word: it's even worse - they recently dropped 'old' JSF-1
> artifacts from their repo without any noticing...
It's not the first time I wished that they would not even *try* to provide a
Maven repo ...
>
> So really only use the java.net maven repo via a
Well I consider that to fall under immutability of releases:
1. don't delete released artifacts (except possibly when there are legal
issues)
2. don't change released artifacts.
But I did not know about that example!
-Stephen
On 1 July 2010 09:31, Mark Struberg wrote:
> to back Stephens word:
to back Stephens word: it's even worse - they recently dropped 'old' JSF-1
artifacts from their repo without any noticing...
So really only use the java.net maven repo via a repo manager like Nexus or
Archiva.
LieGrue,
strub
- Original Message
> From: Stephen Connolly
> To: Maven U
Did u configure the proxy tag in settings.xml maven's file ?
Message original
Sujet : maven runtime error java.net.UnknownHostException: repo1.maven.org.
De : Andrew Bucknell
Pour : users@maven.apache.org
Date : 01/07/2010 03:13
I downloaded maven 2.2.1 on to my debian box and
Hye everybody,I'm trying to generate database schema using
hibernate3:hbm2ddl . When I see traces i see that plugin is reading the
mapping files twice.
Is there a reason for that, I've seen on the net many threads talking
about this issue and the solution is to disable class scanning. But in
my
Hye,
Did you define your resources in .
Can we see your pom file.
Message original
Sujet : WAR packaging question
De : CassUser CassUser
Pour : users@maven.apache.org
Date : 30/06/2010 22:48
When the maven war plugin packages the maven project, the war includes my
xml resource
It should be "alpha-7".
/Anders
On Thu, Jul 1, 2010 at 09:20, Kathryn Huxtable
wrote:
> Where is beta-7?
>
> As a side note, the developers had better not release version 3 until the
> site plugins and other major elements are actually ready. They did this with
> Maven 2 and it was hell. I know
Where is beta-7?
As a side note, the developers had better not release version 3 until the site
plugins and other major elements are actually ready. They did this with Maven 2
and it was hell. I know because I went through it.
On a side note, I decided that Tycho wasn't worth it for as simple a
ah, that is really overkill :-)
On Thu, Jul 1, 2010 at 12:08 AM, Andreas Sewe
wrote:
> Hi,
>
>> I need to invoke an external command using the Exec plugin, with one of
>> the
>> arguments equal to "${basedir}/target". The problem is that under Windows
>> this expands to "c:\\temp\\project/target"
Hi,
I need to invoke an external command using the Exec plugin, with one of the
arguments equal to "${basedir}/target". The problem is that under Windows
this expands to "c:\\temp\\project/target" because ${basedir} uses
Windows-style slashes whereas the rest of the argument uses Unix-style
slas
I am going to state this once and only once:
"Friends don't let friends use the java.net maven repositories" (at
least without protection (e.g. a maven repository manager))
It's fine for following a tutorial, but don't keep the bad habit when you
start writing real code.
-Stephen
P.S.
the
59 matches
Mail list logo