Re: NullPointerException in maven assembly plugin

2012-04-25 Thread ernsyn
I had the same issue and after some digging, I found out the NPE was caused
by  tag in my settings.xml. I removed that entry and
the NPE is gone. 

Hope this helps.

--
View this message in context: 
http://maven.40175.n5.nabble.com/NullPointerException-in-maven-assembly-plugin-tp3556008p5663991.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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

2012-04-25 Thread bettypop
Hi I am using the maven-exec-plugin. But on trying to compile the build, I
get the following error:

[INFO] Scanning for projects...
[INFO]
[INFO]

[INFO] Building TestProjectMaven 1.0-SNAPSHOT
[INFO]

[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
nativeTest
ProjectMaven ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Program
Files\apache-maven-3.0.4\T
estProjectMaven\src\main\native\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
nativeTestPro
jectMaven ---
[INFO] No sources to compile
[INFO]
[INFO] --- exec-maven-plugin:1.1:exec (buildlib) @ nativeTestProjectMaven
---
[INFO] '"C:\Program
Files\apache-maven-3.0.4\TestProjectMaven\src\main\native\ma
kefile"' is not recognized as an internal or external command,
[INFO] operable program or batch file.
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 2.469s
[INFO] Finished at: Wed Apr 25 12:50:11 GMT+05:30 2012
[INFO] Final Memory: 4M/15M
[INFO]

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1:exec
(bui
ldlib) on project nativeTestProjectMaven: Result of cmd.exe /X /C
""C:\Program F
iles\apache-maven-3.0.4\TestProjectMaven\src\main\native\makefile""
execution is
: '1'. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
C:\Program Files\apache-maven-3.0.4\TestProjectMaven\src\main\native>
C:\Program Files\apache-maven-3.0.4\TestProjectMaven\src\main\native>



*My POM.xml looks like this:*
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/maven-v4_0_0.xsd";>
4.0.0

com.nds.TestProjectMaven
nativeTestProjectMaven
1.0-SNAPSHOT


TestProjectMaven
http://maven.apache.org


C:\Program
Files\apache-maven-3.0.4\maven-native-example\src\main\native
../../../target/native


   


${native.source.dir}

   
org.codehaus.mojo
exec-maven-plugin   
1.1  
 

   
buildlib
compile  
  

exec
   
C:\Program
Files\apache-maven-3.0.4\TestProjectMaven\src\main\native\makefile 
 
 

 






--
View this message in context: 
http://maven.40175.n5.nabble.com/How-can-I-trigger-a-makefile-through-Maven-is-there-any-plugin-for-this-tp5663921p5664177.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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

2012-04-25 Thread bettypop
Basically, it is not recognizing the makefile as an operable program at all

--
View this message in context: 
http://maven.40175.n5.nabble.com/How-can-I-trigger-a-makefile-through-Maven-is-there-any-plugin-for-this-tp5663921p5664179.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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

2012-04-25 Thread Thomas Sundberg
On Wed, Apr 25, 2012 at 10:24, bettypop  wrote:
> Basically, it is not recognizing the makefile as an operable program at all

Make files are not executables so this should not surprise anybody.

What you probably would want to do is execute 'make' and supply it
with the proper makefile as argument.

/Thomas


>
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/How-can-I-trigger-a-makefile-through-Maven-is-there-any-plugin-for-this-tp5663921p5664179.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>



-- 
Thomas Sundberg
M. Sc. in Computer Science

Mobile: +46 70 767 33 15
Blog: http://thomassundberg.wordpress.com/
Twitter: @thomassundberg

Better software through faster feedback

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



maven-rpm-plugin executes scripts to include during build

2012-04-25 Thread Maven

Hi all,

I have some problems using the maven-rpm-plugin. I want to include some scripts 
to be executed but these get executed during the build (preventing a 
successfull build because of permissions).

The question now is how can I include scripts which will NOT execute during 
build but gets executed during rpm -i

Here is my setup:

I have a java application (daemon) which is build by maven and packaged into an 
rpm using the maven-rpm-plugin.

I added a script to automatically start the daemon (by calling/etc/init.d/..)

Now I get errors from our build-server as this gets executed on the 
BUILD-Server (and is intended to only run on the destination machine where the 
rpm will be installed)

below is the used configuration:


  org.codehaus.mojo
  rpm-maven-plugin
  2.1-alpha-1
  true
  
${project.groupId}
deployAgent
${project.version}
false  
644
755
deployment
root

  internal-Java>= 1.6


 


  ln -fs /infrastructure/deployment/deployAgent/bin/startstop.sh 
/etc/init.d/deployAgent
  chown root ${userconf.dstRoot}
  chmod 0750 ${userconf.dstRoot}
  /etc/init.d/deployAgent start


  
/etc/init.d/deployAgent stop
  

  


The problem occurs in the prepareScriptlet which gets executed during build and 
failing because of missing permissions to do something in /etc/init.d on the 
build-server (which is correct as this does not make any sense there).

What do I have to do to execute this command during rpm-install/rpm-update but 
not during build?



Re: maven-rpm-plugin executes scripts to include during build

2012-04-25 Thread Anders Hammar
I'm somewhat guessing here, but I think you want to use one of the
install scriptlets:
http://mojo.codehaus.org/rpm-maven-plugin/adv-params.html#Scripts

The "prepareScriptlet" is for preparing the rpm build, whcih you've
noticed is not what you want.

/Anders

On Wed, Apr 25, 2012 at 10:36, Maven  wrote:
> Hi all,
>
> I have some problems using the maven-rpm-plugin. I want to include some
> scripts to be executed but these get executed during the build (preventing a
> successfull build because of permissions).
>
> The question now is how can I include scripts which will NOT execute during
> build but gets executed during rpm -i
>
> Here is my setup:
>
> I have a java application (daemon) which is build by maven and packaged into
> an rpm using the maven-rpm-plugin.
>
> I added a script to automatically start the daemon (by
> calling/etc/init.d/..)
>
> Now I get errors from our build-server as this gets executed on the
> BUILD-Server (and is intended to only run on the destination machine where
> the rpm will be installed)
>
> below is the used configuration:
>
> 
>  org.codehaus.mojo
>  rpm-maven-plugin
>  2.1-alpha-1
>  true
>  
>    ${project.groupId}
>    deployAgent
>    ${project.version}
>    false  
>    644
>    755
>    deployment
>    root
>    
>      internal-Java>= 1.6
>    
>    
>         
>    
>    
>      ln -fs /infrastructure/deployment/deployAgent/bin/startstop.sh
> /etc/init.d/deployAgent
>      chown root ${userconf.dstRoot}
>      chmod 0750 ${userconf.dstRoot}
>      /etc/init.d/deployAgent start
>    
>    
>      
>        /etc/init.d/deployAgent stop
>      
>    
>  
> 
>
> The problem occurs in the prepareScriptlet which gets executed during build
> and failing because of missing permissions to do something in /etc/init.d on
> the build-server (which is correct as this does not make any sense there).
>
> What do I have to do to execute this command during rpm-install/rpm-update
> but not during build?
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven 3.0.3 hanging / having timeouts often?

2012-04-25 Thread Henrik Arro
Thanks for the suggestion, but unfortunately the same behavior when running
Maven in a Windows command-line (cmd.exe).

Running "mvn -X" does not provide much useful information, as far as I can
tell, just a timeout after around 30 minutes:

[DEBUG] Using connector WagonRepositoryConnector with priority 0 for
http://repo.maven.apache.org/maven2
Downloading:
http://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar
[DEBUG] Writing resolution tracking file C:\Users\Henrik
Arro\.m2\repository\org\codehaus\groovy\groovy\1.8.3\groovy-1.8.3.jar.lastUpdated
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 30:02.959s
[INFO] Finished at: Wed Apr 25 09:35:49 CEST 2012
[INFO] Final Memory: 10M/105M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli)
on project standalone-pom: Execution default-cli of goal
org.apache.maven.plugins:maven-archetype-plugin:2.2:generate failed: Plugin
o   rg.apache.maven.plugins:maven-archetype-plugin:2.2 or one of its
dependencies could not be resolved: Could not transfer artifact
org.codehaus.groovy:groovy:jar:1.8.3 from/to central
(http://repo.maven.apache.org/maven2): GET request of:
org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar from central failed: Read
timed out -> [Help 1]

...

Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at
org.apache.maven.wagon.providers.http.httpclient.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:149)
at
org.apache.maven.wagon.providers.http.httpclient.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:110)
at
org.apache.maven.wagon.providers.http.httpclient.impl.io.AbstractSessionInputBuffer.read(AbstractSessionInputBuffer.java:195)
at
org.apache.maven.wagon.providers.http.httpclient.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:173)
at
org.apache.maven.wagon.providers.http.httpclient.conn.EofSensorInputStream.read(EofSensorInputStream.java:138)
at
java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:238)
at
java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:116)
at
org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:493)
at
org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:339)
... 9 more



Wayne Fay wrote
> 
> Can you try building your projects with Maven 3.0.4 in Windows (not in
> the Cygwin environment) to see if there is any difference?
> 


--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-3-0-3-hanging-having-timeouts-often-tp4388958p5664251.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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

2012-04-25 Thread bettypop
Hi,
I did as you said. 
But it is not compiling the target which I have mentioned in the makefile.
My target is a C file and in the makefile I am just compiling the target. My
updated POM.xml and the result I got on execution- 






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/maven-v4_0_0.xsd";>
4.0.0

com.nds.TestProjectMaven
nativeTestProjectMaven
1.0-SNAPSHOT


TestProjectMaven
http://maven.apache.org


C:\Program
Files\apache-maven-3.0.4\maven-native-example\src\main\native
../../../target/native


   



   
org.codehaus.mojo
exec-maven-plugin   
1.1  
 

   
exe
compile  
  

exec
   
C:\Program 
Files\GnuWin32\bin\make 


C:\Program
Files\apache-maven-3.0.4\maven-native-example\src\main\makefile


 

 













C:\Program Files\apache-maven-3.0.4\maven-native-example>mvn install
[INFO] Scanning for projects...
[INFO]
[INFO]

[INFO] Building TestProjectMaven 1.0-SNAPSHOT
[INFO]

[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
nativeTest
ProjectMaven ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Program
Files\apache-maven-3.0.4\m
aven-native-example\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
nativeTestPro
jectMaven ---
[INFO] No sources to compile
[INFO]
[INFO] --- exec-maven-plugin:1.1:exec (exe) @ nativeTestProjectMaven ---
[INFO] make: Nothing to be done for `C:\Program
Files\apache-maven-3.0.4\maven-n
ative-example\src\main\makefile'.
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources)
@ na
tiveTestProjectMaven ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Program
Files\apache-maven-3.0.4\m
aven-native-example\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @
nativ
eTestProjectMaven ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @
nativeTestProjectMav
en ---
[INFO] No tests to run.
[INFO] Surefire report directory: C:\Program
Files\apache-maven-3.0.4\maven-nati
ve-example\target\surefire-reports

---
 T E S T S
---

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ nativeTestProjectMaven
---

[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
nativeTestProj
ectMaven ---
[INFO] Installing C:\Program
Files\apache-maven-3.0.4\maven-native-example\targe
t\nativeTestProjectMaven-1.0-SNAPSHOT.jar to C:\Documents and
Settings\yashaswin
is\.m2\repository\com\nds\TestProjectMaven\nativeTestProjectMaven\1.0-SNAPSHOT\n
ativeTestProjectMaven-1.0-SNAPSHOT.jar
[INFO] Installing C:\Program
Files\apache-maven-3.0.4\maven-native-example\pom.x
ml to C:\Documents and
Settings\yashaswinis\.m2\repository\com\nds\TestProjectMa
ven\nativeTestProjectMaven\1.0-SNAPSHOT\nativeTestProjectMaven-1.0-SNAPSHOT.pom
[INFO]

[INFO] BUILD SUCCESS
[INFO]

[INFO] Total time: 1.438s
[INFO] Finished at: Wed Apr 25 15:12:36 GMT+05:30 2012
[INFO] Final Memory: 5M/15M
[INFO]

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

2012-04-25 Thread bettypop
Hi, 
I did as you said. 
But it is not compiling the target which I have mentioned in the makefile.
My target is a C file and in the makefile I am just compiling the target. My
updated POM.xml and the result I got on execution- 




*POM.xml*

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/maven-v4_0_0.xsd";>
4.0.0

com.nds.TestProjectMaven
nativeTestProjectMaven
1.0-SNAPSHOT


TestProjectMaven
http://maven.apache.org


C:\Program
Files\apache-maven-3.0.4\maven-native-example\src\main\native
../../../target/native







org.codehaus.mojo
exec-maven-plugin
1.1  
  


exe
compile  
  
   
exec

   
C:\Program Files\GnuWin32\bin\make  

   
C:\Program
Files\apache-maven-3.0.4\maven-native-example\src\main\makefile


  

  











*On mvn install:*
C:\Program Files\apache-maven-3.0.4\maven-native-example>mvn install 
[INFO] Scanning for projects... 
[INFO] 
[INFO]
 
[INFO] Building TestProjectMaven 1.0-SNAPSHOT 
[INFO]
 
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
nativeTest 
ProjectMaven --- 
[debug] execute contextualize 
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, 
i.e. build is platform dependent! 
[INFO] skip non existing resourceDirectory C:\Program
Files\apache-maven-3.0.4\m 
aven-native-example\src\main\resources 
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
nativeTestPro 
jectMaven --- 
[INFO] No sources to compile 
[INFO] 
[INFO] --- exec-maven-plugin:1.1:exec (exe) @ nativeTestProjectMaven --- 
[INFO] make: Nothing to be done for `C:\Program
Files\apache-maven-3.0.4\maven-n 
ative-example\src\main\makefile'. 
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources)
@ na 
tiveTestProjectMaven --- 
[debug] execute contextualize 
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, 
i.e. build is platform dependent! 
[INFO] skip non existing resourceDirectory C:\Program
Files\apache-maven-3.0.4\m 
aven-native-example\src\test\resources 
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @
nativ 
eTestProjectMaven --- 
[INFO] No sources to compile 
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @
nativeTestProjectMav 
en --- 
[INFO] No tests to run. 
[INFO] Surefire report directory: C:\Program
Files\apache-maven-3.0.4\maven-nati 
ve-example\target\surefire-reports 

--- 
 T E S T S 
--- 

Results : 

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 

[INFO] 
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ nativeTestProjectMaven
--- 

[WARNING] JAR will be empty - no content was marked for inclusion! 
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
nativeTestProj 
ectMaven --- 
[INFO] Installing C:\Program
Files\apache-maven-3.0.4\maven-native-example\targe 
t\nativeTestProjectMaven-1.0-SNAPSHOT.jar to C:\Documents and
Settings\yashaswin 
is\.m2\repository\com\nds\TestProjectMaven\nativeTestProjectMaven\1.0-SNAPSHOT\n
 
ativeTestProjectMaven-1.0-SNAPSHOT.jar 
[INFO] Installing C:\Program
Files\apache-maven-3.0.4\maven-native-example\pom.x 
ml to C:\Documents and
Settings\yashaswinis\.m2\repository\com\nds\TestProjectMa 
ven\nativeTestProjectMaven\1.0-SNAPSHOT\nativeTestProjectMaven-1.0-SNAPSHOT.pom 
[INFO]
 
[INFO] BUILD SUCCESS 
[INFO]
 
[INFO] Total time: 1.438s 
[INFO] Finished at: Wed Apr 25 15:12:36 GMT

Re: maven-rpm-plugin executes scripts to include during build

2012-04-25 Thread Maven

Hi Anders,

thanks a lot - indeed that was the problem...

I missed that point in the documentation.

Regards Michael

Am 25.04.2012 10:45, schrieb Anders Hammar:

I'm somewhat guessing here, but I think you want to use one of the
install scriptlets:
http://mojo.codehaus.org/rpm-maven-plugin/adv-params.html#Scripts

The "prepareScriptlet" is for preparing the rpm build, whcih you've
noticed is not what you want.

/Anders

On Wed, Apr 25, 2012 at 10:36, Maven  wrote:

Hi all,

I have some problems using the maven-rpm-plugin. I want to include some
scripts to be executed but these get executed during the build (preventing a
successfull build because of permissions).

The question now is how can I include scripts which will NOT execute during
build but gets executed during rpm -i

Here is my setup:

I have a java application (daemon) which is build by maven and packaged into
an rpm using the maven-rpm-plugin.

I added a script to automatically start the daemon (by
calling/etc/init.d/..)

Now I get errors from our build-server as this gets executed on the
BUILD-Server (and is intended to only run on the destination machine where
the rpm will be installed)

below is the used configuration:


  org.codehaus.mojo
  rpm-maven-plugin
  2.1-alpha-1
  true
  
${project.groupId}
deployAgent
${project.version}
false
644
755
deployment
root

  internal-Java>= 1.6


 


  ln -fs /infrastructure/deployment/deployAgent/bin/startstop.sh
/etc/init.d/deployAgent
  chown root ${userconf.dstRoot}
  chmod 0750 ${userconf.dstRoot}
  /etc/init.d/deployAgent start


  
/etc/init.d/deployAgent stop
  

  


The problem occurs in the prepareScriptlet which gets executed during build
and failing because of missing permissions to do something in /etc/init.d on
the build-server (which is correct as this does not make any sense there).

What do I have to do to execute this command during rpm-install/rpm-update
but not during build?


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven 3.0.3 hanging / having timeouts often?

2012-04-25 Thread Henrik Arro
Interesting. Do you have an example of another Java application that has
network connectivity problems? Then I could try it to see if it is the
combination Java / network hardware that is the culprit.

Just for the record, my JAVA_HOME is C:\Program Files\Java\jdk1.7.0_03, but
when I run "java -version", I get "java version "1.6.0_31"". The computer in
question is a Sony Vaio laptop, with an Atheros AR9285 wireless network
adapter.

/Henrik Arro


martin.eisengardt wrote
> 
> I got some similar problems.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=362418
> Seems that java itself or maven or any other thing is not liking my aviara
> firewall or my network device. There are some other java apps that
> sometime
> have the same connection problems resulting in timeouts. Are there any
> hints what maven is doing (activate debug option) or can you simply wait
> to
> see if it is the same network timeout issue?
> 


--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-3-0-3-hanging-having-timeouts-often-tp4388958p5664491.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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

2012-04-25 Thread Dave Wolf
If your goal is to compile / link c, c++, or fortran; then you might take a 
look at the maven-nar-plugin. We just began using it and so far, so good. 

Dave Wolf

On Apr 25, 2012, at 12:31 AM, "bettypop"  wrote:

> 
> 
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/How-can-I-trigger-a-makefile-through-Maven-is-there-any-plugin-for-this-tp5663921p5663921.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 

This electronic communication and any attachments may contain confidential and 
proprietary 
information of DigitalGlobe, Inc. If you are not the intended recipient, or an 
agent or employee 
responsible for delivering this communication to the intended recipient, or if 
you have received 
this communication in error, please do not print, copy, retransmit, disseminate 
or 
otherwise use the information. Please indicate to the sender that you have 
received this 
communication in error, and delete the copy you received. DigitalGlobe reserves 
the 
right to monitor any electronic communication sent or received by its 
employees, agents 
or representatives.



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

2012-04-25 Thread Wayne Fay
> But it is not compiling the target which I have mentioned in the makefile.
> My target is a C file and in the makefile I am just compiling the target. My
> updated POM.xml and the result I got on execution-

No, that isn't what is happening. Read the output from make in your
build log again:

> [INFO] --- exec-maven-plugin:1.1:exec (exe) @ nativeTestProjectMaven ---
> [INFO] make: Nothing to be done for `C:\Program
> Files\apache-maven-3.0.4\maven-n
> ative-example\src\main\makefile'.

"Nothing to be done". This is directly from make.

This is not something we (Maven Users) can help you with.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven 3.0.3 hanging / having timeouts often?

2012-04-25 Thread Wayne Fay
> Just for the record, my JAVA_HOME is C:\Program Files\Java\jdk1.7.0_03, but
> when I run "java -version", I get "java version "1.6.0_31"". The computer in

That simply means you have another java in your path before the
jdk1.7.0_03. Perhaps there is a "java.exe" file in c:\windows or
something like that.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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

2012-04-25 Thread Lyons, Roy
I would like to submit that the issue is that "make" already sees the built 
binaries and the sources have not modified so a re-build is not triggered.

http://maven.apache.org/plugins/maven-clean-plugin/examples/delete_additional_files.html

you will want to modify your pom to include these items in a clean, and add 
"clean" as your first maven target to force a build to take place.

-Original Message-
From: bettypop [mailto:yashu@gmail.com] 
Sent: Wednesday, April 25, 2012 4:56 AM
To: users@maven.apache.org
Subject: Re: How can I trigger a makefile through Maven? is there any plugin 
for this?

Hi,
I did as you said. 
But it is not compiling the target which I have mentioned in the makefile.
My target is a C file and in the makefile I am just compiling the target. My 
updated POM.xml and the result I got on execution- 




*POM.xml*

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/maven-v4_0_0.xsd";>
4.0.0

com.nds.TestProjectMaven
nativeTestProjectMaven
1.0-SNAPSHOT


TestProjectMaven
http://maven.apache.org


C:\Program
Files\apache-maven-3.0.4\maven-native-example\src\main\native
../../../target/native







org.codehaus.mojo
exec-maven-plugin
1.1  
  


exe
compile  
  
   
exec

   
C:\Program Files\GnuWin32\bin\make  

   
C:\Program
Files\apache-maven-3.0.4\maven-native-example\src\main\makefile


  

  











*On mvn install:*
C:\Program Files\apache-maven-3.0.4\maven-native-example>mvn install 
[INFO] Scanning for projects... 
[INFO] 
[INFO]
 
[INFO] Building TestProjectMaven 1.0-SNAPSHOT 
[INFO]
 
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
nativeTest 
ProjectMaven --- 
[debug] execute contextualize 
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, 
i.e. build is platform dependent! 
[INFO] skip non existing resourceDirectory C:\Program
Files\apache-maven-3.0.4\m 
aven-native-example\src\main\resources 
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
nativeTestPro 
jectMaven --- 
[INFO] No sources to compile 
[INFO] 
[INFO] --- exec-maven-plugin:1.1:exec (exe) @ nativeTestProjectMaven --- 
[INFO] make: Nothing to be done for `C:\Program
Files\apache-maven-3.0.4\maven-n 
ative-example\src\main\makefile'. 
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources)
@ na 
tiveTestProjectMaven --- 
[debug] execute contextualize 
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, 
i.e. build is platform dependent! 
[INFO] skip non existing resourceDirectory C:\Program
Files\apache-maven-3.0.4\m 
aven-native-example\src\test\resources 
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @
nativ 
eTestProjectMaven --- 
[INFO] No sources to compile 
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @
nativeTestProjectMav 
en --- 
[INFO] No tests to run. 
[INFO] Surefire report directory: C:\Program
Files\apache-maven-3.0.4\maven-nati 
ve-example\target\surefire-reports 

--- 
 T E S T S 
--- 

Results : 

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 

[INFO] 
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ nativeTestProjectMaven
--- 

[WARNING] JAR will be empty - no content was marked for inclusion! 
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
nativeTestProj 
ectMaven --- 
[INFO] Installing C:\Program
Files\apache-maven-3.0.4\maven-native-example\targe 
t\nativeTestProjectMaven-1.0-SNAPSHOT.jar to C:\Documents and
Settings\yashaswin 
is\.m2

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

2012-04-25 Thread Matt Walsh

>> [INFO] make: Nothing to be done for `C:\Program
>> Files\apache-maven-3.0.4\maven-n 
>> ative-example\src\main\makefile'

This looks like a makefile target/rule/dependency issue, not a Maven
issue.

> -Original Message-
> From: bettypop [mailto:yashu@gmail.com]
> Sent: Wednesday, April 25, 2012 3:56 AM
> To: users@maven.apache.org
> Subject: Re: How can I trigger a makefile through Maven? is there any
> plugin for this?
> 
> Hi,
> I did as you said.
> But it is not compiling the target which I have mentioned in the
> makefile.
> My target is a C file and in the makefile I am just compiling the
> target. My
> updated POM.xml and the result I got on execution-
> 
> 
> 
> 
> *POM.xml*
> 
> 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/maven-v4_0_0.xsd";>
> 4.0.0
> 
> com.nds.TestProjectMaven
> nativeTestProjectMaven
> 1.0-SNAPSHOT
> 
> 
> TestProjectMaven
> http://maven.apache.org
> 
> 
> C:\Program
> Files\apache-maven-3.0.4\maven-native-
> example\src\main\native
> 
> ../../../target/native
> 
> 
> 
> 
> 
> 
> 
> org.codehaus.mojo
> exec-maven-
> plugin
> 1.1
> 
> 
> 
> exe
> compile
> 
> exec
> 
> 
> C:\Program Files\GnuWin32\bin\make
> 
> 
> C:\Program
> Files\apache-maven-3.0.4\maven-native-
> example\src\main\makefile
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> *On mvn install:*
> C:\Program Files\apache-maven-3.0.4\maven-native-example>mvn install
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
>
---
> -
> [INFO] Building TestProjectMaven 1.0-SNAPSHOT
> [INFO]
>
---
> -
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
> nativeTest
> ProjectMaven ---
> [debug] execute contextualize
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources,
> i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory C:\Program
> Files\apache-maven-3.0.4\m
> aven-native-example\src\main\resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
> nativeTestPro
> jectMaven ---
> [INFO] No sources to compile
> [INFO]
> [INFO] --- exec-maven-plugin:1.1:exec (exe) @ nativeTestProjectMaven
--
> -
> [INFO] make: Nothing to be done for `C:\Program
> Files\apache-maven-3.0.4\maven-n
> ative-example\src\main\makefile'.
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:testResources (default-
> testResources)
> @ na
> tiveTestProjectMaven ---
> [debug] execute contextualize
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources,
> i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory C:\Program
> Files\apache-maven-3.0.4\m
> aven-native-example\src\test\resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-
> testCompile) @
> nativ
> eTestProjectMaven ---
> [INFO] No sources to compile
> [INFO]
> [INFO] --- maven-surefire-plugin:2.10:test (default-test) @
> nativeTestProjectMav
> en ---
> [INFO] No tests to run.
> [INFO] Surefire report directory: C:\Program
> Files\apache-maven-3.0.4\maven-nati
> ve-example\target\surefire-reports
> 
> ---
>  T E S T S
> ---
> 
> Results :
> 
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> 
> [INFO]
> [INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @
> nativeTestProjectMaven
> ---
> 
> [WARNING] JAR will be empty - no content was marked for inclusion!
> [INFO]
> [INFO] --- maven-install-plugin:2.3.1:install (default-install) @
> nativeTestProj
> ectMaven ---
> [INFO] Installing C:\Program
> Files\apache-maven-3.0.4\maven-native-example\targe
> t\nativeTestProjectMaven-1.0-SNAPSHOT.jar to C:\Documents and
> Settings\yashaswin
> is\.m2\repository\com\nds\TestProjectMaven\nativeTestProjectMaven\1.0-
> SNAPSHOT\n
> ativeTestProjectMaven-1.0-SNAPSHOT.jar
> [INFO] Installing C:\Program
> Files\apache-maven-3.0.4\maven-native-example\pom.x
> ml to C:\Documents and
> Settings\yashaswinis\.m2\repository\com\nds\TestProjectMa
> ven\nativeTestProjectMaven\1.0-SNAPSH

Best practice declaring transitive dependencies used only for test

2012-04-25 Thread Gabriel Belingueres
Hi:

In my last web app, I have the following dependency problem:

Declared the following dependency in my pom:
struts2-spring-plugin:2.3.1.2 with runtime scope,
  which have a transitive dependency to struts2-core:2.3.1.2 (runtime),
which have a transivite dependency with commons-io:2.0.1 (runtime).

Now, in one of my unit tests I actually use some class from commons-io
as a helper, so running 'mvn dependency:analyze' tell me that I'm
using and not declaring commons-io as a runtime dependency.

However, I'm only interested in commons-io ONLY for my test, I don't
have any need to fix a commons-io version used by struts2 dependencies
since whatever version that works for them I'm ok with it.
If I declare commons-io with test scope, then the generated .war file
will not include the required common-io.jar file.
If I declare commons-io with runtime scope, and if tomorrow the
transitive dependency from struts2 change the version of commons-io to
a newer one, then I could mistakenly include the previous one declared
in my pom.

Is there any best practice to manage this? benefits and drawbacks?

My current strategy for the moment is NOT including it in my pom.

Thanks in advance,
Gabriel

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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

2012-04-25 Thread Manfred Moser
Look at the exec plugin in the extreme case that there is no more suitable
plugin to do you native build.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Custom plugin - how to resolve wildcards in excludes/includes

2012-04-25 Thread jaybytez
So I am creating a custom plugin that we are using for compiling things like
Drools Rules.

I have successfully injected and used excludes to help exclude files from
this compilation.

I would like to take advantage of the wildcarding commonly used in
includes/excludes like "**/*.xls".

Is there a Maven/Mojo class that can be used to help resolve or match a
String to these expressions, as I assume these aren't standard regular
expressions.

That way if I have multiple files, I could use this helper class in my
custom plugin to match resources files with the exclusion list.

Thanks...

--
View this message in context: 
http://maven.40175.n5.nabble.com/Custom-plugin-how-to-resolve-wildcards-in-excludes-includes-tp5665480p5665480.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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

2012-04-25 Thread Karl Heinz Marbaise

Hi,

i would suggest to take a deeper look into the maven-nar-plugin


--
SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen   http://www.soebes.de

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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

2012-04-25 Thread Karl Heinz Marbaise

Hi,

sorry forgot the link.


i would suggest to take a deeper look into the maven-nar-plugin


http://duns.github.com/maven-nar-plugin/

Kind regards
Karl Heinz Marbaise
--
SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen   http://www.soebes.de

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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

2012-04-25 Thread Manfred Moser
Get you Maven installed into a folder without spaces in it and get the
project into a different folder..

that should do the trick.

manfred

On Wed, April 25, 2012 1:22 am, bettypop wrote:
> Hi I am using the maven-exec-plugin. But on trying to compile the build, I
> get the following error:
>
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> 
> [INFO] Building TestProjectMaven 1.0-SNAPSHOT
> [INFO]
> 
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
> nativeTest
> ProjectMaven ---
> [debug] execute contextualize
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources,
> i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory C:\Program
> Files\apache-maven-3.0.4\T
> estProjectMaven\src\main\native\src\main\resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
> nativeTestPro
> jectMaven ---
> [INFO] No sources to compile
> [INFO]
> [INFO] --- exec-maven-plugin:1.1:exec (buildlib) @ nativeTestProjectMaven
> ---
> [INFO] '"C:\Program
> Files\apache-maven-3.0.4\TestProjectMaven\src\main\native\ma
> kefile"' is not recognized as an internal or external command,
> [INFO] operable program or batch file.
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 2.469s
> [INFO] Finished at: Wed Apr 25 12:50:11 GMT+05:30 2012
> [INFO] Final Memory: 4M/15M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.codehaus.mojo:exec-maven-plugin:1.1:exec
> (bui
> ldlib) on project nativeTestProjectMaven: Result of cmd.exe /X /C
> ""C:\Program F
> iles\apache-maven-3.0.4\TestProjectMaven\src\main\native\makefile""
> execution is
> : '1'. -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e
> swit
> ch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please
> rea
> d the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
> xception
> C:\Program Files\apache-maven-3.0.4\TestProjectMaven\src\main\native>
> C:\Program Files\apache-maven-3.0.4\TestProjectMaven\src\main\native>
>
>
>
> *My POM.xml looks like this:*
> 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/maven-v4_0_0.xsd";>
> 4.0.0
>
>   com.nds.TestProjectMaven
>   nativeTestProjectMaven
>   1.0-SNAPSHOT
>
>
>   TestProjectMaven
>   http://maven.apache.org
>
>   
> C:\Program
> Files\apache-maven-3.0.4\maven-native-example\src\main\native
>   ../../../target/native
> 
>
>
>
> 
>   ${native.source.dir}
> 
> 
>   org.codehaus.mojo
>   exec-maven-plugin
>   1.1
>   
>   
>
>   buildlib
>   compile
>   exec
>   
>   C:\Program
> Files\apache-maven-3.0.4\TestProjectMaven\src\main\native\makefile
>   
>   
>   
>   
> 
> 
>
> 
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/How-can-I-trigger-a-makefile-through-Maven-is-there-any-plugin-for-this-tp5663921p5664177.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Custom plugin - how to resolve wildcards in excludes/includes

2012-04-25 Thread Tim Drury
Take a look at PlexusUtils' FileUtils class:
http://plexus.codehaus.org/plexus-utils/apidocs/org/codehaus/plexus/util/FileUtils.html

Look at the getFileName() methods and variants.  They use DirectoryScanner
which handles "**" wildcards and such.

-tim

On Wed, Apr 25, 2012 at 1:17 PM, jaybytez  wrote:

> So I am creating a custom plugin that we are using for compiling things
> like
> Drools Rules.
>
> I have successfully injected and used excludes to help exclude files from
> this compilation.
>
> I would like to take advantage of the wildcarding commonly used in
> includes/excludes like "**/*.xls".
>
> Is there a Maven/Mojo class that can be used to help resolve or match a
> String to these expressions, as I assume these aren't standard regular
> expressions.
>
> That way if I have multiple files, I could use this helper class in my
> custom plugin to match resources files with the exclusion list.
>
> Thanks...
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Custom-plugin-how-to-resolve-wildcards-in-excludes-includes-tp5665480p5665480.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


How to remove comments with Maven

2012-04-25 Thread rcbandit
Hi,
  I have a WAR package with JSF pages, JavaScript files, CSS files and Maven
POM file. I'm interested can I configure Maven to delete all comments into
the source code files before packaging the files?

Best Wishes
Peter

--
View this message in context: 
http://maven.40175.n5.nabble.com/How-to-remove-comments-with-Maven-tp5665768p5665768.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How to remove comments with Maven

2012-04-25 Thread Wayne Fay
>   I have a WAR package with JSF pages, JavaScript files, CSS files and
> Maven
> POM file. I'm interested can I configure Maven to delete all comments into
> the source code files before packaging the files?

If you can point me at a tool (ideally written in Java, but this is
not required) which can strip comments from source code, then I can
tell you how to turn it into a Maven plugin. Does Tidy have this
functionality for HTML?

I've never heard of such a tool myself. I'm not sure why you would
want to do this either. Most people just obfuscate things.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How to remove comments with Maven

2012-04-25 Thread Manfred Moser
For Java use proguard either directly or via the ant task or the proguard
maven plugin.

For javascript and css used related compression tools with potentially the
exec plugin or some other invocation of them natively. There is probably
something like that already part of the javascript plugin actually.

manfred

On Wed, April 25, 2012 12:30 pm, rcbandit wrote:
> Hi,
>   I have a WAR package with JSF pages, JavaScript files, CSS files and
> Maven
> POM file. I'm interested can I configure Maven to delete all comments into
> the source code files before packaging the files?
>
> Best Wishes
> Peter
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/How-to-remove-comments-with-Maven-tp5665768p5665768.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How to remove comments with Maven

2012-04-25 Thread rcbandit
Here you are:
http://onlinefundb.com/forum/index.php?topic=2531.0

--
View this message in context: 
http://maven.40175.n5.nabble.com/How-to-remove-comments-with-Maven-tp5665768p5665845.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



help needed: problems with eclipse, m2e and wst

2012-04-25 Thread Jörg Hohwiller
Hi there,

I have problems running/debugging a WAR module out of a maven based multi-module
project in Eclipse using WST and Tomcat.

The problem is that the classpath is wrong.
When I build the WAR and manually deploy to a local tomcat webapps directory all
works fine. However in Eclipse I get these ClassNotFoundExceptions.

When I expand the JEE sub-modules of the WAR module in servers view,
I can see that there are modules missing. If I select the WAR module
in Projects view and check
Properties > Java Build Path > Libraries > Maven Dependencies
everything is there...

Maven > Update Project... does not help either. Nor removing the WAR module from
Tomcat and adding once again. Nor cleaning Tomcat.

This lead me to the config file .settings/org.eclipse.wst.common.component
When I manually patched this file by adding the missing modules and refreshed
the project the problem goes away.

Searching the web I found this one:
https://issues.sonatype.org/browse/MECLIPSEWTP-146

However this is fixed already in 0.14.0 and I am running
m2e 1.1.0.20120130-216 with m2e wtp in 0.14.0.20110928-2045

Anyhow the entries with the JAR including Version still can be found
in my org.eclipse.wst.common.component

Mybe the fix did not make it into 0.14.0 ?

Any ideas but going back to "mvn eclipse:eclipse" ?
I always avoided m2e before and now just started loving it until I ran into
these problems...

Regards
  Jörg

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How to get an URL encoded version of a property?

2012-04-25 Thread Jörg Hohwiller
On 04/24/2012 08:09 PM, Mirko Friedenhagen wrote:
> Hello,

Hi Mirko,

> 
> say I want to reuse some POM or system property as parameter in another
> place in the POM but need it URL encoded. Does anyone know a Maven "magic"
> to achieve this?
> 
> Programming a plugin to encode a given list of properties  and provide them
> under a different name seems no biggy, but I would like to know if there
> are other, better or easier options :-D .

I also do not know any other way, but I might be missing something (e.g. new
features invented in m3).
Compared to jelly hacking in m1 I prefer writing a plugin though...

> 
> Regards Mirko

Regards Jörg

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How to remove comments with Maven

2012-04-25 Thread Wayne Fay
> Here you are:
> http://onlinefundb.com/forum/index.php?topic=2531.0

Chapter 11 of the book Maven: The Definitive Guide will help you turn
this Java code into a Maven plugin:
http://books.sonatype.com/books/mvnref-book/reference/writing-plugins.html

Also refer to this documentation:
http://maven.apache.org/plugin-developers/index.html
http://maven.apache.org/guides/introduction/introduction-to-plugins.html
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Best practice declaring transitive dependencies used only for test

2012-04-25 Thread Jörg Hohwiller
Hi Gabriel,

I typically have large projects with many modules.
This requires some way to manage test dependencies and infrastructure.
My approach is to have one (or for complex scenarios multiple) test module(s).
This test module(s) contain test dependencies (junit, easymock, xmlunit, dbunit,
etc.) as *compile* scope and do have test helper stuff (AbstractMyprojectTest,
etc.) in src/main
I typically have the version of that module(s) fixed to SNAPSHOT.

Now in the regular modules I have a parent POM that adds a dependency
on the test-module with the *test* scope.
This way I have test dependencies and infrastructure consistently in central 
place.

Eclipse is a little bad with test dependencies as it can not distinguish the
scope of a dependency like maven does. In that case you can potentially
get a conflict with a version of a dependent artifact that is used both
for test as for runtime/compile but with different versions.
However I never had this problem in practice...

BTW The golden rule to maven is also to use dependencyManagement.

Regards
  Jörg

> Hi:
> 
> In my last web app, I have the following dependency problem:
> 
> Declared the following dependency in my pom:
> struts2-spring-plugin:2.3.1.2 with runtime scope,
>   which have a transitive dependency to struts2-core:2.3.1.2 (runtime),
> which have a transivite dependency with commons-io:2.0.1 (runtime).
> 
> Now, in one of my unit tests I actually use some class from commons-io
> as a helper, so running 'mvn dependency:analyze' tell me that I'm
> using and not declaring commons-io as a runtime dependency.
> 
> However, I'm only interested in commons-io ONLY for my test, I don't
> have any need to fix a commons-io version used by struts2 dependencies
> since whatever version that works for them I'm ok with it.
> If I declare commons-io with test scope, then the generated .war file
> will not include the required common-io.jar file.
> If I declare commons-io with runtime scope, and if tomorrow the
> transitive dependency from struts2 change the version of commons-io to
> a newer one, then I could mistakenly include the previous one declared
> in my pom.
> 
> Is there any best practice to manage this? benefits and drawbacks?
> 
> My current strategy for the moment is NOT including it in my pom.
> 
> Thanks in advance,
> Gabriel
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How to remove comments with Maven

2012-04-25 Thread Jörg Hohwiller
Hi Manfred,

great hints on this.

However Peter may not want to do this on his files in src/main/
but on copies of these in target/...

Copying and invoking the stripping of comments on the copies is no
problem (antrun plugin) but how to make the maven standard plugins to build the
*-sources.jar from the modified copies?

http://maven.apache.org/plugins/maven-source-plugin/jar-mojo.html


Regards
  Jörg

> For Java use proguard either directly or via the ant task or the proguard
> maven plugin.
> 
> For javascript and css used related compression tools with potentially the
> exec plugin or some other invocation of them natively. There is probably
> something like that already part of the javascript plugin actually.
> 
> manfred
> 
> On Wed, April 25, 2012 12:30 pm, rcbandit wrote:
>> Hi,
>>   I have a WAR package with JSF pages, JavaScript files, CSS files and
>> Maven
>> POM file. I'm interested can I configure Maven to delete all comments into
>> the source code files before packaging the files?
>>
>> Best Wishes
>> Peter
>>
>> --
>> View this message in context:
>> http://maven.40175.n5.nabble.com/How-to-remove-comments-with-Maven-tp5665768p5665768.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Assembly/Deploy/Ant Question

2012-04-25 Thread Nick


Hi,

I have a legacy Ant project that has a pom wrapper to 'partly' mavenize 
(until time is found to reorganize the source to fit into the standard 
directory structure).


Currently maven quite happily cleans and compiles (via Ant), packages 
(via 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 in /lib (as opposed 
to /target/...) I would like to be able to deploy those jar files.


What would be the recommended way to use (attach?) them to the project 
so I can deploy (and possibly GPG sign them) ?


Thanks

Nick

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How to get an URL encoded version of a property?

2012-04-25 Thread Jörg Hohwiller
Hi Mirko,

you do not have to write a plugin:
http://ant-contrib.sourceforge.net/tasks/tasks/urlencode.html

http://maven.apache.org/plugins/maven-antrun-plugin/

Cheers
  Jörg

> On 04/24/2012 08:09 PM, Mirko Friedenhagen wrote:
>> Hello,
> 
> Hi Mirko,
> 
>>
>> say I want to reuse some POM or system property as parameter in another
>> place in the POM but need it URL encoded. Does anyone know a Maven "magic"
>> to achieve this?
>>
>> Programming a plugin to encode a given list of properties  and provide them
>> under a different name seems no biggy, but I would like to know if there
>> are other, better or easier options :-D .
> 
> I also do not know any other way, but I might be missing something (e.g. new
> features invented in m3).
> Compared to jelly hacking in m1 I prefer writing a plugin though...
> 
>>
>> Regards Mirko
> 
> Regards Jörg
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Assembly/Deploy/Ant Question

2012-04-25 Thread Wayne Fay
> 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 in /lib (as opposed to
> /target/...) I would like to be able to deploy those jar files.
>
> What would be the recommended way to use (attach?) them to the project so I
> can deploy (and possibly GPG sign them) ?

build-helper @ mojo can probably help with your needs.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Bad error message on maven-release-plugin

2012-04-25 Thread Matt Walsh
Hi.

 

D'oh! Just spent half an hour trying to figure out why I couldn't do a
release. Hopefully this will keep someone else from doing the same.

 

Kept getting the following error message:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-release-plugin:2.2.1:perform
(default-cli) on project parent: No SCM URL was provided to perform the
release from -> [Help 1]

 

Of course, all I'm looking at is the "No SCM URL ..." part of the
message and pulling my hair out because the scm url is in the pom.

 

The problem was I was thinking "prepare" but typing "perform".

 

Perhaps a more useful message would be the above plus ... "HAVE YOU DONE
A PREPARE?" - given that the release.properties file doesn't exist until
you run release:perform.

 

I know I'm not the only one to run into this problem, cause there's lots
of hits on Google. 

 

Matt


__
This message, including any attachments, is confidential and contains 
information intended only for the person(s) named above. Any other 
distribution, copying or disclosure is strictly prohibited. If you are not the 
intended recipient or have received this message in error, please notify us 
immediately by reply email and permanently delete the original transmission 
from all of your systems and hard drives, including any attachments, without 
making a copy.

RE: Bad error message on maven-release-plugin

2012-04-25 Thread Matt Walsh
See -- Did it again! :-(

>  - given that the release.properties file doesn't exist
> until
> you run release:perform.
>

I mean to say " ... until you do a release:prepare".

> -Original Message-
> From: Matt Walsh [mailto:mwa...@chartwelltechnology.com]
> Sent: Wednesday, April 25, 2012 3:51 PM
> To: Maven Users List
> Subject: Bad error message on maven-release-plugin
> 
> Hi.
> 
> 
> 
> D'oh! Just spent half an hour trying to figure out why I couldn't do a
> release. Hopefully this will keep someone else from doing the same.
> 
> 
> 
> Kept getting the following error message:
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-release-plugin:2.2.1:perform
> (default-cli) on project parent: No SCM URL was provided to perform
the
> release from -> [Help 1]
> 
> 
> 
> Of course, all I'm looking at is the "No SCM URL ..." part of the
> message and pulling my hair out because the scm url is in the pom.
> 
> 
> 
> The problem was I was thinking "prepare" but typing "perform".
> 
> 
> 
> Perhaps a more useful message would be the above plus ... "HAVE YOU
> DONE
> A PREPARE?" - given that the release.properties file doesn't exist
> until
> you run release:perform.
> 
> 
> 
> I know I'm not the only one to run into this problem, cause there's
> lots
> of hits on Google.
> 
> 
> 
> Matt
> 
> 
> __
> This message, including any attachments, is confidential and contains
> information intended only for the person(s) named above. Any other
> distribution, copying or disclosure is strictly prohibited. If you are
> not the intended recipient or have received this message in error,
> please notify us immediately by reply email and permanently delete the
> original transmission from all of your systems and hard drives,
> including any attachments, without making a copy.

__
This message, including any attachments, is confidential and contains 
information intended only for the person(s) named above. Any other 
distribution, copying or disclosure is strictly prohibited. If you are not the 
intended recipient or have received this message in error, please notify us 
immediately by reply email and permanently delete the original transmission 
from all of your systems and hard drives, including any attachments, without 
making a copy.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How to remove comments with Maven

2012-04-25 Thread Manfred Moser
I think I would just create another module that depends on the original.
It could download the sources, strip them and them use them as source for
the current project..

manfred

On Wed, April 25, 2012 2:25 pm, Jörg Hohwiller wrote:
> Hi Manfred,
>
> great hints on this.
>
> However Peter may not want to do this on his files in src/main/
> but on copies of these in target/...
>
> Copying and invoking the stripping of comments on the copies is no
> problem (antrun plugin) but how to make the maven standard plugins to
> build the
> *-sources.jar from the modified copies?
>
> http://maven.apache.org/plugins/maven-source-plugin/jar-mojo.html
>
>
> Regards
>   Jörg
>
>> For Java use proguard either directly or via the ant task or the
>> proguard
>> maven plugin.
>>
>> For javascript and css used related compression tools with potentially
>> the
>> exec plugin or some other invocation of them natively. There is probably
>> something like that already part of the javascript plugin actually.
>>
>> manfred
>>
>> On Wed, April 25, 2012 12:30 pm, rcbandit wrote:
>>> Hi,
>>>   I have a WAR package with JSF pages, JavaScript files, CSS files and
>>> Maven
>>> POM file. I'm interested can I configure Maven to delete all comments
>>> into
>>> the source code files before packaging the files?
>>>
>>> Best Wishes
>>> Peter
>>>
>>> --
>>> View this message in context:
>>> http://maven.40175.n5.nabble.com/How-to-remove-comments-with-Maven-tp5665768p5665768.html
>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Maven 3.0.3 hanging / having timeouts often?

2012-04-25 Thread Bob Wang

Hi,

You can use "where java" in the command line to check where your java is.

-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com] 
Sent: Wednesday, April 25, 2012 9:45 PM
To: Maven Users List
Subject: Re: Maven 3.0.3 hanging / having timeouts often?

> Just for the record, my JAVA_HOME is C:\Program 
> Files\Java\jdk1.7.0_03, but when I run "java -version", I get "java 
> version "1.6.0_31"". The computer in

That simply means you have another java in your path before the jdk1.7.0_03. 
Perhaps there is a "java.exe" file in c:\windows or something like that.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven 3.0.3 hanging / having timeouts often?

2012-04-25 Thread Wayne Fay
> Interesting. Do you have an example of another Java application that has
> network connectivity problems? Then I could try it to see if it is the
> combination Java / network hardware that is the culprit.

Problems like this on Windows are frequently related to some antivirus
or firewall (Windows or another). Try disabling your antivirus and any
firewalls you may be running (including the built-in Windows
firewall).

If you are running this on a computer "at work" there can also be
transparent Internet proxies (Squid) or antivirus appliances etc
between your machine and the download site. This is less common "at
home" but I know some ISPs are caching hits etc.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How to replicate company internal repository?

2012-04-25 Thread hujirong
I tried this list, it's not active.

http://maven.40175.n5.nabble.com/Nexus-Maven-Repository-Manager-Users-List-f127899.html

--
View this message in context: 
http://maven.40175.n5.nabble.com/How-to-replicate-company-internal-repository-tp5663623p5666516.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How to replicate company internal repository?

2012-04-25 Thread hujirong
The current company one is created by another group. It's production one. Our
group wants to use the same approach but need some time to try out.

Jirong

--
View this message in context: 
http://maven.40175.n5.nabble.com/How-to-replicate-company-internal-repository-tp5663623p5666517.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How to get an URL encoded version of a property?

2012-04-25 Thread Mirko Friedenhagen
Hello Jörg,

thanks for your suggestion. Though I always feel a litte bit like cheating
when using ant inside of Maven ;-) .

Regards Mirko
-- 
Sent from my phone
http://illegalstateexception.blogspot.com
http://github.com/mfriedenhagen/
https://bitbucket.org/mfriedenhagen/
On Apr 25, 2012 11:46 PM, "Jörg Hohwiller"  wrote:

> Hi Mirko,
>
> you do not have to write a plugin:
> http://ant-contrib.sourceforge.net/tasks/tasks/urlencode.html
>
> http://maven.apache.org/plugins/maven-antrun-plugin/
>
> Cheers
>  Jörg
>
> > On 04/24/2012 08:09 PM, Mirko Friedenhagen wrote:
> >> Hello,
> >
> > Hi Mirko,
> >
> >>
> >> say I want to reuse some POM or system property as parameter in another
> >> place in the POM but need it URL encoded. Does anyone know a Maven
> "magic"
> >> to achieve this?
> >>
> >> Programming a plugin to encode a given list of properties  and provide
> them
> >> under a different name seems no biggy, but I would like to know if there
> >> are other, better or easier options :-D .
> >
> > I also do not know any other way, but I might be missing something (e.g.
> new
> > features invented in m3).
> > Compared to jelly hacking in m1 I prefer writing a plugin though...
> >
> >>
> >> Regards Mirko
> >
> > Regards Jörg
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: How to replicate company internal repository?

2012-04-25 Thread Manfred Moser
On Wed, April 25, 2012 7:23 pm, hujirong wrote:
> I tried this list, it's not active.
>
> http://maven.40175.n5.nabble.com/Nexus-Maven-Repository-Manager-Users-List-f127899.html

Not true. It is just fine. In terms of replicating your nexus..

You could just copy the sonatype work nexus folder to the test environment
.. that would be then the same as the original.. from the on they would be
separate.

However imho it does not make sense to create this isolated environment..

manfred

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How to replicate company internal repository?

2012-04-25 Thread Dan Tran
nexus professional allows you to replicate across nodes.

Or you can do rsync between nodes.

-D

On Wed, Apr 25, 2012 at 10:28 PM, Manfred Moser  wrote:
> On Wed, April 25, 2012 7:23 pm, hujirong wrote:
>> I tried this list, it's not active.
>>
>> http://maven.40175.n5.nabble.com/Nexus-Maven-Repository-Manager-Users-List-f127899.html
>
> Not true. It is just fine. In terms of replicating your nexus..
>
> You could just copy the sonatype work nexus folder to the test environment
> .. that would be then the same as the original.. from the on they would be
> separate.
>
> However imho it does not make sense to create this isolated environment..
>
> manfred
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Initial Maven Install - repository download fails on large files

2012-04-25 Thread Arne Tøn
I have just installed:

C:\workspaces>mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: C:\apps\apache-maven-3.0.4\bin\..
Java version: 1.7.0_03, vendor: Oracle Corporation
Java home: C:\Java\jdk1.7.0_03\jre
Default locale: no_NO, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

Next I try to create a project according to "Get Started" guide. As warned,
you have to restart the "mvn archetype:generate"  some times, as it fails,
or rather hangs, due to download timeouts,especially on large files. After
running it some 20-30 times maybe, I'm stuck in download on a particular
large file:

C:\workspaces>scripts\mvn-arc-cre
C:\workspaces>SET MAVEN_OPTS=-Dmaven.artifact.threads=1
C:\workspaces>mvn archetype:generate -DgroupId=net.innovatec.zaet.mavtst1
-DartifactId=mav-test-1 -DarchetypeArtifactId=maven-archetype-quickstart
-DinteractiveMode=false
[INFO] Scanning for projects...
[INFO]
[INFO]

[INFO] Building Maven Stub Project (No POM) 1
[INFO]

[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @
standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @
standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @
standalone-pom ---
Downloading:
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar
75/5394 KB
Avbryte satsvis jobb (J/N)? n
C:\workspaces>

That is, download stops and never resumes, I tried waiting for 3 hours
without any further progress. Rerunning, I can results like:
...
374/5394 KB
845/5394 KB
51/5394 KB

I've reached as far as 2216/5394 KB ,  but still its not even half of the
file size.
I've tried different mirrors, Wi-Fi and LAN connection,  different settings
for "-Dmaven.artifact.threads=", and entering proxy settings (which should
not be necessary according to what I know, and I had to guess what to set -
it didn't work either). The local network is quite fast, but heavily
loaded, meaning xfer can stop for some seconds now and then, typically
visible on videos on youtube ;-) , but it always recovers after a while .
I've successfully downloaded large files (Gigabyte Zip's) using Google
Chrome and Firefox.  I have unfortunately no possibility to try  the
computer on another network.

Effectively, I cannot even get started using maven, since mvn stalls before
it's created my project. Anyone got an idea how I can proceed?

--arneT


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

2012-04-25 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 -rf *o hello


*Now, I want to trigger this makefile through Maven. The compilation will be
done by the makefile and not Maven. Maven should just trigger it.*
When I run 'mvn install', This is what I see in the target folder:
  http://maven.40175.n5.nabble.com/file/n5666817/untitled.bmp 

It creates a .jar file. I am confused!

--
View this message in context: 
http://maven.40175.n5.nabble.com/How-can-I-trigger-a-makefile-through-Maven-is-there-any-plugin-for-this-tp5663921p5666817.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org