Re: How can I trigger a makefile through Maven? is there any plugin for this?

2012-04-26 Thread bettypop
It's not an issue with the makefile, coz' it executes properly when run independently. It compiles my source file and creates a .exe. *This is my makefile*: all: hello hello: helloWorld.o gcc helloWorld.o -o hello helloWorld.o: helloWorld.c gcc -c helloWorld.c clean: rm

Re: Maven 3.0.3 hanging / having timeouts often??

2012-04-26 Thread Arne Tøn
FYI: The situation described in this thread reminds me of my problem in the thread Initial Maven Install - repository download fails on large fileshttp://mail-archives.apache.org/mod_mbox/maven-users/201204.mbox/%3cCAGQXBeOOrzfe+Tw7H4zrBLXERD0Sx_or2NJ-8E6nAzMSxML=w...@mail.gmail.com%3e. It seems

Re: Assembly/Deploy/Ant Question

2012-04-26 Thread Nick
On 25/04/12 22:46, Wayne Fay wrote: Maven assemblies) and rebuilds the latex documentation (via Maven). The assemblies currently builds the zip distribution artifacts. However the multiple library jar files are currently inroot/lib (as opposed to root/target/...) I would like to be able to

Include extra dependencies without rebuild project

2012-04-26 Thread connie_law
Hi, I've been cracking my head to solve this for the past 2 days, hopefully someone with similar problems before can help me to solve it or give a workaround that works for them. Here's my scenario; I have a maven project with all the dependencies and resources packaged in one zip file, i use

Re: Include extra dependencies without rebuild project

2012-04-26 Thread Stephen Connolly
if you change your batch file to build up a classpath for you, it could add in any jars in the patches directory onto the classpath first. You might want to have a look at the batch files used to launch some of the common Java apps, e.g. ANT and Maven. Also take a look at the batch files generated

Re: Include extra dependencies without rebuild project

2012-04-26 Thread Jörg Schaible
Hi Connie, connie_law wrote: Hi, I've been cracking my head to solve this for the past 2 days, hopefully someone with similar problems before can help me to solve it or give a workaround that works for them. Here's my scenario; I have a maven project with all the dependencies and

Re: Include extra dependencies without rebuild project

2012-04-26 Thread connie_law
Thanks! It works, I used the first approach, which is building the classpath in the batch file. But using appassembler-maven-plugin seems like a more proper way, I'll check this out. Cheers! -- View this message in context:

Re: Include extra dependencies without rebuild project

2012-04-26 Thread connie_law
Thanks Stephen, I did the first approach, and it works just fine. I generated a sample of batch file using appassembler-maven-plugin and take the example from there. Cheers! -- View this message in context:

Re: How can I trigger a makefile through Maven? is there any plugin for this?

2012-04-26 Thread Wayne Fay
It's not an issue with the makefile, coz' it executes properly when run independently. It compiles my source file and creates a .exe. I assure you -- it is an issue with your makefile. You most likely just need to add a call to clean in there so make thinks it needs to build things again: all:

Re: How to replicate company internal repository?

2012-04-26 Thread Wayne Fay
I tried this list, it's not active. http://maven.40175.n5.nabble.com/Nexus-Maven-Repository-Manager-Users-List-f127899.html It is active, just not as active as you might like, or perhaps you didn't get a reply to your question yet for some reason. That in't sufficient justification to ask your

Re: How to replicate company internal repository?

2012-04-26 Thread Tamás Cservenák
You refer to this mail? http://maven.40175.n5.nabble.com/How-to-make-a-company-internal-repository-td5652959.html As it seems quite different than the question you are asking here.it is about copying stuff from Central, something that defies the purpose of proxy at start. Thanks, ~t~ On

Re: How to replicate company internal repository?

2012-04-26 Thread Tamás Cservenák
Ah, and nabble says This post has NOT been accepted by the mailing list yet. Did you send it over Nabble? You'd need to sign up to the list: http://www.sonatype.org/nexus/participate Thanks, ~t~ 2012/4/26 Tamás Cservenák ta...@cservenak.net: You refer to this mail?

RE: How can I trigger a makefile through Maven? is there any plugin for this?

2012-04-26 Thread Matt Walsh
You're getting a jar file because by omission of the packaging element, that's what you've asked for. There's nothing in that makefile that tells it to put anything in your target directory. I'd look for it beside the helloworld.c, wherever that is. -Original Message- From: bettypop

jvm arguments not making it to application and unit tests

2012-04-26 Thread billybacon
I previously posted this question on the jenkins forum group and was asked to move the topic to the maven forums because this is considered a maven issue, not a jenkins issue. Here is response and original post: Surefire does it's best to provide the forked test cases with a clean environment.

Re: jvm arguments not making it to application and unit tests

2012-04-26 Thread billybacon
We are also trying to remove profiles altogether, this is one of the reasons we are trying to using jvm command line arguments. After simplifying things a bit further and removing jenkins out of the picture, this does appear to be a maven topic. If I try the following command with maven 2.2.1,

dependency:build-classpath and new line as the pathSeparator ( -Dmdep.pathSeparator )

2012-04-26 Thread Jason Pyeron
I have driven myself bonkers on this one. I seem to be able to set the path separator as any value except the new line character. Is there a limitation I should be aware of? I am trying via the bash prompt. My tests with shell scripts seem to show I have actually passed in the new line, but maven

Re: Assembly/Deploy/Ant Question

2012-04-26 Thread Curtis Rueden
Hi Nick, Currently maven quite happily cleans and compiles (via Ant) Before you get too involved with the build-helper plugin, I just wanted to check whether you had considered using Maven to compile without altering your existing directory structure. In the majority of cases you can do this

Re: Directory/filename substitution for consecutive property names

2012-04-26 Thread adie
Ok, I've created separate archetype projects for each of modules and did some refactoring so now __ delimiters are always separated. This brings me to another question. *How to override filtering delimiters for fileSet filtering in archetype-metadata.xml?* Provided that I have following section

Re: how to copy-dependencies related to one profile

2012-04-26 Thread alesky
I did some test and i undestant that it take always the dependences of the profile that is configured has default activation activeByDefaulttrue/activeByDefault /activation in fact if i change the activation default in the production environment are copied only that dependences

how to copy-dependencies related to one profile

2012-04-26 Thread alesky
Hi guys i have a question related to the use of the copy-dependencies plugin. with the target to copy only the dependences of a related profile. In my project i have 2 profile one used for the develop and another one used for the production the develop is configure to be active by default the

Re: how to copy-dependencies related to one profile

2012-04-26 Thread Wayne Fay
but this doesn't resolve my problem becouse i have to change every time the pom file to generate the production version and put back after the generation. Perhaps instead of using profiles and 1 project, you should set this up to use more than 1 project (one for dev, one for prod) and get rid

Re: how to copy-dependencies related to one profile

2012-04-26 Thread Jörg Schaible
alesky wrote: I did some test and i undestant that it take always the dependences of the profile that is configured has default activation activeByDefaulttrue/activeByDefault /activation in fact if i change the activation default in the production environment are copied only that

Re: dependency:build-classpath and new line as the pathSeparator ( -Dmdep.pathSeparator )

2012-04-26 Thread Wayne Fay
I have driven myself bonkers on this one. I seem to be able to set the path separator as any value except the new line character. Is there a limitation I have no idea if there is a limitation or not, but it seems to me that using new line as a path separator is a bad character to use. Can you

First time compile, why looking for module POM on remote repo?

2012-04-26 Thread hujirong
*This is the first time I try to compile the project in my workstation. I am invoking the highest level of POM and it suppose to compile everything. Developers are doing that but they are using their own local repo. I am the build engineer so my Maven is pointing to the company central repo. But

creating a property and filtering the path only once

2012-04-26 Thread Ryan Wexler
I have a large library resource that is used during my build that is accessed from many of my modules. I have put that resource in the top level parent basedir /src/main/MySpecialResource. I want all the modules in my project to have access to the location of this resource. So I created a

Re: First time compile, why looking for module POM on remote repo?

2012-04-26 Thread Dave Wolf
Use mvn install, so that the various dependent modules will be installed into your local repository. Sent from Dave's iPhone 4. Dave Wolf On Apr 26, 2012, at 11:57 AM, hujirong jirong...@gmail.com wrote: *This is the first time I try to compile the project in my workstation. I am invoking

Re: creating a property and filtering the path only once

2012-04-26 Thread Ansgar Konermann
Common approach: put your special resource in a jar module. Let the modules which should have access to the resource define a dependency to that jar. If this approach does not work, please elaborate. Best regards, Ansgar Am 26.04.2012 20:36 schrieb Ryan Wexler r...@iridiumsuite.com: I have a

Re: creating a property and filtering the path only once

2012-04-26 Thread Ryan Wexler
Well this item isn't an artifact and I don't want to make one out of it. I tried another approach which was to declare the resource w/o the basedir reference in my parent pom: properties myspecialresource.basedir\src\main\MySpecialResource/myspecialresource.basedir /properties Then I referenced

Re: creating a property and filtering the path only once

2012-04-26 Thread Ansgar Konermann
From my experience: that's a hard problem. I ended up making the resource an artifact, adding a provided-scoped dependency and switched off deployment using m-deploy-p's skip config parameter. Works, but is so ugly. Not sure if the provided dependency would be allowed in Maven Central though

Re: First time compile, why looking for module POM on remote repo?

2012-04-26 Thread Zilvinas Vilutis
I think Maven 3 has resolved this issue - it can read the artifacts from your source code rather than the repo, but probably at least packaging is required - please correct me if I'm wrong. - nothing is impossible -- View this message in context:

Re: creating a property and filtering the path only once

2012-04-26 Thread Ryan Wexler
I hear you, I just really wanted to avoid that because this is definitely not an artifact. On Thu, Apr 26, 2012 at 12:26 PM, Ansgar Konermann ansgar.konerm...@googlemail.com wrote: From my experience: that's a hard problem. I ended up making the resource an artifact, adding a provided-scoped

Re: jvm arguments not making it to application and unit tests

2012-04-26 Thread Stephen Connolly
You need to see this page: http://maven.apache.org/plugins/maven-surefire-plugin/examples/system-properties.html You will need to define system properties for each system property you want to pass through. Most likely your properties will look like systemPropertyVariables foo${foo}/foo

When using resources:resources, supply properties from jar

2012-04-26 Thread jaybytez
Is there a way when using resources:resources to supply a property file that is within a jar (dependency for the plugin) that is used during the filtering process of the resources files? -- View this message in context:

Re: First time compile, why looking for module POM on remote repo?

2012-04-26 Thread hujirong
Developer found a circular dependency there. Once removed, this error gone. Now comes another one (in a new post). Thanks Jirong -- View this message in context: http://maven.40175.n5.nabble.com/First-time-compile-why-looking-for-module-POM-on-remote-repo-tp5668263p5669002.html Sent from the

Caused by: java.lang.ClassNotFoundException: GenericObjectPool

2012-04-26 Thread hujirong
How to fix this error? Thanks Jirong [INFO] Surefire report directory: C:\Sandbox\MDM-CDIServiceMgmt\CdiInitiateService\target\surefire-reports java.lang.reflect.UndeclaredThrowableException at $Proxy0.invoke(Unknown Source) at

Anyone is actually use central repository?

2012-04-26 Thread hujirong
Hi I think most of company will set up its own internal repository, right? So we should always get a settings.xml like this, while nexus is the id of our internal repository: mirror idnexus/id mirrorOf*/mirrorOf

Re: When using resources:resources, supply properties from jar

2012-04-26 Thread Wayne Fay
Is there a way when using resources:resources to supply a property file that is within a jar (dependency for the plugin) that is used during the filtering process of the resources files? I don't know of any way out of the box to do what you are asking. It is possible that this feature could

Re: Caused by: java.lang.ClassNotFoundException: GenericObjectPool

2012-04-26 Thread Wayne Fay
Caused by: java.lang.ClassNotFoundException: GenericObjectPool at java.net.URLClassLoader.findClass(URLClassLoader.java:434) at java.lang.ClassLoader.loadClass(ClassLoader.java:653) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358) 1. Identify the class

Re: Anyone is actually use central repository?

2012-04-26 Thread Wayne Fay
How to consolidate these two settings? This is documented online under Advanced Mirror Specification: http://maven.apache.org/guides/mini/guide-mirror-settings.html Here's a hint: mirrorOf*,!central/mirrorOf The *,!central in the mirrorOf means mirror all except central. Wayne

Re: How to replicate company internal repository?

2012-04-26 Thread hujirong
The one I am using in my test environment is not professional, but a free one. I don't see anywhere a copy function. Is there a way to export/import or something like that to replicate data from production to my test environment. Thanks Jirong -- View this message in context:

Looking for example how to aggregate data in reactor build

2012-04-26 Thread Dan Tran
Hi I would like to traverse to all of my projects, collect some custom data from each project and aggregate collected custom data ( like dump to a file at top parent) any pointer to existing plugin code that does this pattern is greatly appreciated. Thanks again -Dan