Actually, I would simply have added the profile in the child module and
activate it through some system property on the command-line:
mvn -Dbuild.dist=true package
dist
build.dist
maven-assembly-plugin
2.2.1
jar-with-dependencies
make-assembly
package
single
Guillaume
Thanks for suggestion - the "mvn versions:set" took 15s on m3, the
same as "mvn release:update-versions" on m2
Regards
Žilvinas Vilutis
Mobile: (+1) 623 330 6048
E-mail: cika...@gmail.com
On Mon, Jun 27, 2011 at 3:44 PM, Stephen Connolly
wrote:
> How does mvn versions:set -DnewVersion=..
No, you shouldn't be doing that in the parent project. As the parent project
needs to be built before the children, it will not work (or will require
some workaround). The profile you have is what I would suggest. Or, maybe
even keep this module outside of the build all together as a separate
proje
How does mvn versions:set -DnewVersion=... fair in benchmarking
between m2 and m3
On 27 June 2011 23:02, Zilvinas Vilutis wrote:
> Hi maven users!
>
> Today before I tried to migrate to maven3 from maven2 - I wanted to
> update all pom versions using the "update-versions" goal from the
> "release
Hi maven users!
Today before I tried to migrate to maven3 from maven2 - I wanted to
update all pom versions using the "update-versions" goal from the
"release" plugin.
It used to take ~15 seconds to update versions for ~140 modules in our
project with maven2, but with maven 3 it updated the first
after the source,
if ( source.length() != destination.length() )
{
final String message = "Failed to copy full contents from " +
source + " to " + destination;
throw new IOException( message );
}
did you try to write a unit test?
Regards,
Hervé
Read the source of one.
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-changes-plugin
On Mon, Jun 27, 2011 at 12:37 PM, Frers,Michael wrote:
> Hi
>
> can anyone help me out and sent me a simple "Hello World" maven report plugin
> example that works?
>
> I dont get a clue out of the d
Hi
can anyone help me out and sent me a simple "Hello World" maven report plugin
example that works?
I dont get a clue out of the documentation and I cant find a working example in
the web.
Thanks
Michael
-
To unsubscribe, e
sadly not yet
On 27 June 2011 15:53, Phillip Hellewell wrote:
> Is there any syntax for excluding all (transitive) dependencies?
>
> For example, I would like to be able to write something like this:
>
>
>
> mygroup
> mycomp
> 1.0
> *
>
>
> Thanks,
> Phillip
>
-
From what I undesrtand of Maven (I am not completely new but I never
read the code and other insights of it), when you call mvn some-goal on
a multi-module project, it is equivalent to calling this goal on every
module of the project (in the reactor order of course). Hence, when you
call assemb
Is there any syntax for excluding all (transitive) dependencies?
For example, I would like to be able to write something like this:
mygroup
mycomp
1.0
*
Thanks,
Phillip
I reported what I see some time agoe.
What ever I do with maven-2.2.1 and co
It fails when it has no reason to fail.
The greate thing is to say; when ever this copy full content error or
any similarcopy full content errors occur, the copy took place perfect
and diff doesn't show any diffs.
So wh
Good point, thanks. I tried to only add the distribution child module
for a given profile like this:
dist
distribution_project
So the assembly plugin is only run when setting the dist profile like:
mvn
The best I could do was to exclude the dependency itself (this works for me
because I needed a subset of the code that was not effected by the
exclusion)
org.apache.poi
poi-ooxml-schemas
Not sure if this would help you.
--
View this message in context:
http://maven.40175.n5.n
Could'nt you use a profile for that purpose?
http://maven.apache.org/guides/introduction/introduction-to-profiles.html
Cheers,
Guillaume
Le 27/06/2011 16:23, Jean-Pierre Bergamin a écrit :
Hello maven users
We are using the maven assembly plugin to copy all generated modules
and dependencies
Hello maven users
We are using the maven assembly plugin to copy all generated modules and
dependencies to one "central" folder. For this we created a dedicated
child module that used the assembly plugin as desribed in the FAQ
(http://maven.apache.org/plugins/maven-assembly-plugin/faq.html#mod
> http://localhost:8081/nexus/content/groups/public/ was cached in the local
> repository, resolution will not be reattempted until the update interval of
> central has elapsed or updates are forced -> [Help 1]
Try mvn -U to force Maven to check for updates in your repo.
Wayne
--
On Fri, Jun 24, 2011 at 1:33 AM, wasi_shez wrote:
> *First of all Thank you very much for your acknowledgement.*
> Suppose: Maven Downloaded Folder Structure--
>
> A
> --- B
> C
>
> and My Project's Source Code Structure is:-
>
> A
> --- B and Z
> C and Y
>
Hello,
I have uploaded liferay portal jar files to Sonatype using Artifacts Upload.
When I execute command "mvn compile war:war", it stiill can't find the
liferay files I uploaded.
Here is the error:
[INFO] BUILD FAILURE
[INFO]
-
*First of all Thank you very much for your acknowledgement.*
*Can you explain what you want to do? Maven doesn't need to understand
your code, it just compiles it.*
Maven always download its Repository Structure and Contains standard Folder
Structure for this.In my scenario ; My project Code's F
Did you ever figure this out. I am using a macbook pro, too and want to test
drive Berkeley DB XML; but I don't want to install the complete software. I
would rather start up Berkeley DB XML in memory right before maven's test
phase.
Any help and advance would be greatful.
Thank you.
--
View
Hi,
The Mojo team is pleased to announce the release of the
build-helper-maven-plugin version 1.6.
This plugin contains various small independent goals to assist with the Maven
build lifecycle.
http://mojo.codehaus.org/build-helper-maven-plugin/
To get this update, simply specify the
Hi All
I have got a problem in maven emma code coverage reporting,All that I want
is to eliminate some classes from final emma report generated,I have tried
using plugin in my POM file but it doesn't work out for me
http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
Hi All
I have got a problem in maven emma code coverage reporting,All that I want
is to eliminate some classes from final emma report generated,I have tried
using plugin (emma-maven-plugin) in my POM file but it doesn't work out for
me,still the filtered classes appear in emma report
4.0.0
c
Hi All
I would like to have your helping hand in resolving a problem in maven emma
code coverage reporting,All that I want is to eliminate some classes from
final emma report generated,I have tried using plugin (emma-maven-plugin)
in my POM file but it doesn't work out for me - the filtered class
Hello!!! I have a problem with the generation of wars with maven. The
problem is when I have no changes in java files or resources on my war,
the war is being built again.
This is the normal behavior?. I'm doing an automatic deployment to the
application server and do not want to make this depl
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/xsd/maven-4.0.0.xsd";>
4.0.0
localdomain.localhost
localtest
0.1-SNAPSHOT
src/main/resources
Indeed, this is probably what we should do, but yet (for some probably
poor reason) I would like to keep everything in the same folder
(actually the other resources will be embedded in an additional artifact
created with Maven assembly). My only question is why do I get
everything when I use th
> I am suggesting that you have a local aggregator pom one level up...
> you don't need to check that pom out at all. You just use that pom
> locally to group all the source you have checked out and construct a
> reactor from the checkout...
OK, but you have to write a pom just for the current re
I think you mis-understand how I am suggesting you use the aggregator pom
I am suggesting that you have a local aggregator pom one level up...
you don't need to check that pom out at all. You just use that pom
locally to group all the source you have checked out and construct a
reactor from th
Problems with aggregator is that it imposes the structure of your projects. I
would like to put my projects sources as I want and not as Maven aggregator
wants.
Another problem with aggregator is when a project is used within several
others projects (common dependencies). In this case, under which
What I would like to see is that when a project explicitly specifies
it's scm information, that m-release-p would treat that as a
separately releasable item... so that if you have an aggregator
project with no scm information, m-r-p would (perhaps with some
hinting) see that as not requiring a rele
Hi all,
We are looking for a way to perform maven releases (via maven-release-plugin
for example) on a project, and all its dependencies which are in a snapshot
version (internal dependencies).
Using a pom aggregator and ${project.version} in dependencyMgmt for all
internal dependencies allows su
If they are files that are not needed in the final package, don't keep
them in src/main/resources
On 27 June 2011 09:56, Guillaume Polet wrote:
> Ok, sorry about that but I did not see my e-mails coming back to my posting
> address so I thought the e-mails had been blacklisted for some reason; I
Ok, sorry about that but I did not see my e-mails coming back to my
posting address so I thought the e-mails had been blacklisted for some
reason; I didn't know that we don't receive the e-mails we send to the ML.
For the second part, I do want my files within META-INF to be embedded
in my fin
Please stop reposting the same question in a different thread. This is not
the way to get attention... even just replying to your initial question
would be better.
Includes are applied first followed by excludes to trim out the stuff you
added in the includes...
If you don't specify includes, the
Hi All,
I am working on a project were I would like to exclude all resources
except the ones located within META-INF. After reading carefuly the
documentation, it appears that excludes always beats includes, so
doing
what would only be natural, does not work:
src/main/res
37 matches
Mail list logo