Re: using maven.config

2016-06-02 Thread Derek
Nirish,
Update what in the configuration?  The only things I see there are choices 
for settings.xml and a repository location.

>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/15b84281-86af-4bb8-a97b-6eedc5eea18a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: using maven.config

2016-06-02 Thread niristotle okram
Navigate to manage jenkins - configure system & update the Maven
Configuration

On Thu, Jun 2, 2016 at 1:31 PM, Derek  wrote:

> I have been unable to get Jenkins to run maven in such a way that it
> honors the .mvn/maven.config properties file (introduced in maven
> 3.3).  I have tried running with a Maven project type and a Freestyle
> project type.  If I execute maven from the command line on the Jenkins
> slave in the workspace, it works fine.  Executing maven from Jenkins
> against the pom, builds the project but the maven.config is never
> picked up like it should be.
>
> Any ideas why I Maven run from Jenkins does not pickup maven.config?
>
> Using
> Jenkins ver. 1.642.1
> Maven 3.3.9
> Maven Plugin 2.7.1
>
> Example:
> .mvn/maven.config
> -Dmyproperty=HelloWorld
>
> 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/xsd/maven-4.0.0.xsd;>
>   4.0.0
>   my.test
>   jenkins-maven-config
>   1.0-SNAPSHOT
>   pom
>
>   
> ERROR: Not Set
>   
>
>   
> 
>   
> org.codehaus.mojo
> exec-maven-plugin
> 1.4.0
> 
>   
> echo parameter
> generate-sources
> 
>   exec
> 
> 
>   echo ${myproperty}
> 
>   
> 
>   
> 
>   
>
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAM0rHLz9Hm9zVLeMzfHKnxkkTxC6311vsk-L%2Bhv1EoHmMyzXiQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4gph2Hk0CanvRieKZ12mHdcCn3hDOKi%2BhoskHNgt45NhQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


using maven.config

2016-06-02 Thread Derek
I have been unable to get Jenkins to run maven in such a way that it
honors the .mvn/maven.config properties file (introduced in maven
3.3).  I have tried running with a Maven project type and a Freestyle
project type.  If I execute maven from the command line on the Jenkins
slave in the workspace, it works fine.  Executing maven from Jenkins
against the pom, builds the project but the maven.config is never
picked up like it should be.

Any ideas why I Maven run from Jenkins does not pickup maven.config?

Using
Jenkins ver. 1.642.1
Maven 3.3.9
Maven Plugin 2.7.1

Example:
.mvn/maven.config
-Dmyproperty=HelloWorld

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/xsd/maven-4.0.0.xsd;>
  4.0.0
  my.test
  jenkins-maven-config
  1.0-SNAPSHOT
  pom

  
ERROR: Not Set
  

  

  
org.codehaus.mojo
exec-maven-plugin
1.4.0

  
echo parameter
generate-sources

  exec


  echo ${myproperty}

  

  

  



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAM0rHLz9Hm9zVLeMzfHKnxkkTxC6311vsk-L%2Bhv1EoHmMyzXiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.