Re: maven.plugin.validation

2023-10-07 Thread Martin Gainty
Hi Eric

surefire version is listed as 3.1.0 and not 3.1.2 in the dependencies list for 
the maven-project-info-reports-plugin pom

https://repo1.maven.org/maven2/org/apache/maven/plugins/maven-project-info-reports-plugin/3.4.5/maven-project-info-reports-plugin-3.4.5.pom

I am curious as to value of your $maven.site.path as seen here:



apache.website

scm:svn:https://svn.apache.org/repos/asf/maven/website/components/${maven.site.path}




?

From: Eric Kolotyluk 
Sent: Saturday, October 7, 2023 5:57 PM
To: users@maven.apache.org 
Subject: maven.plugin.validation

When I run

|mvn clean site -Dmaven.plugin.validation=VERBOSE|

I get verbose output, but when I put the following in my pom.xml

   
VERBOSE
   

and run

|mvn clean site|

  I do not. Instead, I just get

[WARNING]
[WARNING] Plugin validation issues were detected in 3 plugin(s)
[WARNING]
[WARNING]  * org.apache.maven.plugins:maven-site-plugin:4.0.0-M8
[WARNING]  * org.apache.maven.plugins:maven-surefire-report-plugin:3.1.2
[WARNING]  *
org.apache.maven.plugins:maven-project-info-reports-plugin:3.4.5
[WARNING]
[WARNING] For more or less details, use 'maven.plugin.validation'
property with one of the values (case insensitive): [BRIEF, DEFAULT,
VERBOSE]
[WARNING]

Can someone please help me understand what is going on here?

Here is some context...

$ mvn -version
Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546)
Maven home: C:\Program Files (Open)\Apache\apache-maven-3.9.5
Java version: 21, vendor: Oracle Corporation, runtime: C:\Program
Files\java\jdk-21
Default locale: en_CA, platform encoding: UTF-8
OS name: "windows 10", version: "10.0", arch: "amd64", family:
"windows"

Cheers, Eric


Re: Maven fails to resolve version range for import

2022-07-27 Thread Martin Gainty
ok


From: [Quipsy] Markus Karg 
Sent: Wednesday, July 27, 2022 7:41 AM
To: Maven Users List 
Subject: Maven fails to resolve version range for import

I think I found a bug in Maven, but I am not sure. Maybe I am doing something 
wrong, so Maven Committers, please judge the following case:

A version range in a dependency like...


 org.glassfish.jersey.core
 jersey-server
 [2.0.0, 3.0.0)


mvn dependency:tree

...results in a correctly resolved output...

...
+- org.glassfish.jersey.core:jersey-server:jar:3.0.0-RC2:compile
...

But when instead using the same version range IN AN IMPORTED BOM, then...


 
   org.glassfish.jersey
   jersey-bom
   [2.0.0, 3.0.0)
   pom
   import
 



 org.glassfish.jersey.core
 jersey-server


mvn dependency:tree

...results in this error message as it was not resolved:

downloading from xxx: 
http://xxx:8081/content/groups/public/org/glassfish/jersey/jersey-bom/%5B2.0.0,%203.0.0)/jersey-bom-%5B2.0.0,%203.0.0).pom

MG>which tree will only see if your repository has already been declared in 
parent pom
MG>the beauty of the configuration for repository in parent-pom is visibility 
will not depend on a specific build profile
Maven – Guide to using Multiple Repositories 
(apache.org)
Maven – Guide to using Multiple 
Repositories
In fact the -P option will take a CSV list of profiles to activate if you wish 
to activate multiple profiles simultaneously.. Note: The settings descriptor 
documentation can be found on the Maven Local Settings Model Website.. 
Repository Order. Remote repository URLs are queried in the following order for 
artifacts until one returns a valid result: ...
maven.apache.org


Non-resolvable import POM: Could not find artifact 
org.glassfish.jersey:jersey-bom:pom:[2.0.0, 3.0.0)

In fact, calling curl -i 
http://nexus:8081/content/groups/public/org/glassfish/jersey/jersey-bom/%5B2.0.0,%203.0.0)/jersey-bom-%5B2.0.0,%203.0.0).pom
 tells us that such a URL does not exist: HTTP/1.1 400 Invalid repository path.

So am I doing or assuming something wrong here (e. g. possibly includes 
deliberately will not resolve version ranges) or is that simply a bug in Maven 
(which I should report in the issue tracker)?
MG>OTOH if you are setting up repo under a profile then you will need to 
activate the repo

 myprofile
 
   
..

MG>then activate the profile containing the repository with
MG>mvn -Pmyprofile
Maven – Guide to using Multiple Repositories 
(apache.org)

MG>nexus is particular about which nx-user can access what repo...have you 
tried to contact the creator of nexus repository to find out which user curl 
should use to resolve repository-path ?
Users 
(sonatype.com)
Users - 
Sonatype
Figure: Creating or Editing a User. The ID can be defined upon initial creation 
and remains fixed thereafter. In addition you can specify the users First Name, 
Last Name and Email address.You also must enter and confirm a Password.. The 
Status allows you to set an account to be Disabled or Active.The Roles control 
allows you to add and remove defined roles to the user and therefore control 
the ...
help.sonatype.com


Maven – Guide to using Multiple 
Repositories
In fact the -P option will take a CSV list of profiles to activate if you wish 
to activate multiple profiles simultaneously.. Note: The settings descriptor 
documentation can be found on the Maven Local Settings Model Website.. 
Repository Order. Remote repository URLs are queried in the following order for 
artifacts until one returns a valid result: ...
maven.apache.org
MG>IN CONCLUSION
MG>if you are using correct nexus nx-user
MG>AND you are not referencing a repository which is specific only to 1 build
MG>then you have indeed found a bug with version range and should report bug 
with your full test-case !

Thanks!
-Markus
MG>gruss~


Re: java.lang.ClassNotFoundException: com.google.common.base.Preconditions

2022-07-25 Thread Martin Gainty

Ability to add additional jars are configured with these 2 parameters


true 


true 



full example located at
java - Maven exec:exec - Need additional classpath elements for plugin - Stack 
Overflow<https://stackoverflow.com/questions/43239253/maven-execexec-need-additional-classpath-elements-for-plugin>
[https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-i...@2.png?v=73d79a89bded]<https://stackoverflow.com/questions/43239253/maven-execexec-need-additional-classpath-elements-for-plugin>
Maven exec:exec - Need additional classpath elements for 
plugin<https://stackoverflow.com/questions/43239253/maven-execexec-need-additional-classpath-elements-for-plugin>
Turns out there are 2 options that you can use with Maven when using exec:java 
(which is what I wanted). You can specify true/false for each:
stackoverflow.com
Gruss
martin~

From: Siddharth Jain 
Sent: Monday, July 25, 2022 11:22 AM
To: Maven Users List 
Subject: Re: java.lang.ClassNotFoundException: 
com.google.common.base.Preconditions

I understand that. But we have been using maven exec:java for other
projects and did not run into this exception with them. *So we want to
understand why its not working here?* the debug log also shows that guava
is added to the classpath. how can we debug this issue further? could this
be a bug in maven? thanks.

On Mon, Jul 25, 2022 at 3:49 AM Martin Gainty  wrote:

> He advised you to not use exec:java which uses a configured classloader
> He advised you use exec:exec
>
> Directions to use exec:exec provided here
> Exec Maven Plugin – exec:exec (mojohaus.org)<
> https://www.mojohaus.org/exec-maven-plugin/exec-mojo.html>
>
> Exec Maven Plugin - MojoHaus<
> https://www.mojohaus.org/exec-maven-plugin/exec-mojo.html>
> The executable. Can be a full path or the name of the executable. In the
> latter case, the executable must be in the PATH for the execution to work.
> www.mojohaus.org<http://www.mojohaus.org>
> gruss
> Martin
> 
> From: Siddharth Jain 
> Sent: Sunday, July 24, 2022 8:13 PM
> To: Maven Users List 
> Subject: Re: java.lang.ClassNotFoundException:
> com.google.common.base.Preconditions
>
> could you explain this to me? we have tried running without configuring any
> agent
> mvn exec:java -X -Dexec.mainClass=com.example.App
>
> and the exception is still there. and maven:exec works for other projects.
>
> On Sun, Jul 24, 2022 at 1:19 PM Bernd Eckenfels 
> wrote:
>
> > Since exec:java executes in the running JVM it does not reconfigure the
> > (boot)classpath but provides a configured classloader. It looks like the
> > measuring agent does not like that. In that Case you need either
> > exec:exec or a plug-in for that purpose.
> >
> > Gruss
> > Bernd
> >
> >
> > --
> > http://bernd.eckenfels.net
> > 
> > Von: Siddharth Jain 
> > Gesendet: Sunday, July 24, 2022 8:46:04 PM
> > An: users@maven.apache.org 
> > Betreff: java.lang.ClassNotFoundException:
> > com.google.common.base.Preconditions
> >
> > we are running into the dreaded ClassNotFoundException in a project. Here
> > is the setup. Using JDK 11 and Maven 3.8.5. Trying to create sample test
> > project that uses memory-measurer
> > <https://github.com/DimitrisAndreou/memory-measurer> to measure memory.
> > First we mvn packaged and installed the memory-measurer artifact into M2
> > repository. Then we created a test project in which we add dependency on
> > memory-measurer. The project compiles fine but gives error on running (we
> > run using mvn exec:java plugin):
> >
> > Caused by: java.lang.ClassNotFoundException:
> > com.google.common.base.Preconditions
> > at jdk.internal.loader.BuiltinClassLoader.loadClass
> > (BuiltinClassLoader.java:581)
> > at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass
> > (ClassLoaders.java:178)
> > at java.lang.ClassLoader.loadClass (ClassLoader.java:521)
> > at objectexplorer.InstrumentationGrabber.checkSetup
> > (InstrumentationGrabber.java:20)
> > at objectexplorer.InstrumentationGrabber.instrumentation
> > (InstrumentationGrabber.java:25)
> > at objectexplorer.MemoryMeasurer. (MemoryMeasurer.java:24)
> > at com.example.App.main (App.java:20)
> > at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:254)
> > at java.lang.Thread.run (Thread.java:834)
> >
> >
> > What have we tried? Here is output of mvn dependency:build-classpath:
> >
> >
> >
> /Users/xxx/.m2/repository/objectexplorer/memory-measure

Re: java.lang.ClassNotFoundException: com.google.common.base.Preconditions

2022-07-25 Thread Martin Gainty
He advised you to not use exec:java which uses a configured classloader
He advised you use exec:exec

Directions to use exec:exec provided here
Exec Maven Plugin – exec:exec 
(mojohaus.org)

Exec Maven Plugin - 
MojoHaus
The executable. Can be a full path or the name of the executable. In the latter 
case, the executable must be in the PATH for the execution to work.
www.mojohaus.org
gruss
Martin

From: Siddharth Jain 
Sent: Sunday, July 24, 2022 8:13 PM
To: Maven Users List 
Subject: Re: java.lang.ClassNotFoundException: 
com.google.common.base.Preconditions

could you explain this to me? we have tried running without configuring any
agent
mvn exec:java -X -Dexec.mainClass=com.example.App

and the exception is still there. and maven:exec works for other projects.

On Sun, Jul 24, 2022 at 1:19 PM Bernd Eckenfels 
wrote:

> Since exec:java executes in the running JVM it does not reconfigure the
> (boot)classpath but provides a configured classloader. It looks like the
> measuring agent does not like that. In that Case you need either
> exec:exec or a plug-in for that purpose.
>
> Gruss
> Bernd
>
>
> --
> http://bernd.eckenfels.net
> 
> Von: Siddharth Jain 
> Gesendet: Sunday, July 24, 2022 8:46:04 PM
> An: users@maven.apache.org 
> Betreff: java.lang.ClassNotFoundException:
> com.google.common.base.Preconditions
>
> we are running into the dreaded ClassNotFoundException in a project. Here
> is the setup. Using JDK 11 and Maven 3.8.5. Trying to create sample test
> project that uses memory-measurer
>  to measure memory.
> First we mvn packaged and installed the memory-measurer artifact into M2
> repository. Then we created a test project in which we add dependency on
> memory-measurer. The project compiles fine but gives error on running (we
> run using mvn exec:java plugin):
>
> Caused by: java.lang.ClassNotFoundException:
> com.google.common.base.Preconditions
> at jdk.internal.loader.BuiltinClassLoader.loadClass
> (BuiltinClassLoader.java:581)
> at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass
> (ClassLoaders.java:178)
> at java.lang.ClassLoader.loadClass (ClassLoader.java:521)
> at objectexplorer.InstrumentationGrabber.checkSetup
> (InstrumentationGrabber.java:20)
> at objectexplorer.InstrumentationGrabber.instrumentation
> (InstrumentationGrabber.java:25)
> at objectexplorer.MemoryMeasurer. (MemoryMeasurer.java:24)
> at com.example.App.main (App.java:20)
> at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:254)
> at java.lang.Thread.run (Thread.java:834)
>
>
> What have we tried? Here is output of mvn dependency:build-classpath:
>
>
> /Users/xxx/.m2/repository/objectexplorer/memory-measurer/1.0-SNAPSHOT/memory-measurer-1.0-SNAPSHOT.jar:/Users/xxx/.m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar:/Users/xxx/.m2/repository/com/google/guava/guava/19.0/guava-19.0.jar:/Users/xxx/.m2/repository/junit/junit/4.11/junit-4.11.jar:/Users/xxx/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
>
> we unpacked guava-19.0.jar in a temp directory and can see
>
> -rw-r--r--  1 xxx  staff  5252 Aug 25  2014
> /Users/xxx/temp/com/google/common/base/Preconditions.class
>
> in it. The next thing we tried is printing
> System.getProperty("java.class.path"). This gives:
>
> /Library/Downloads/apache-maven-3.8.5/boot/plexus-classworlds-2.6.0.jar
>
> above does not contain the classpath calculated by mvn dependency plugin.
> Question 1: Why?
>
> Question 2: When we printed System.getProperty("java.class.path") in
> another working project we got same result. It seems the classpath when
> using mvn exec:java is always
>
> /Library/Downloads/apache-maven-3.8.5/boot/plexus-classworlds-2.6.0.jar
>
> How is the other project able to load classes from above classpath? Why is
> mvn
> exec:java not using correct classpath? How do we fix this?
>
>
> Here 
> is
> output of maven with the -X switch. You can see following debug info:
>
>
> [DEBUG] Adding project dependency artifact: memory-measurer to classpath
> [DEBUG] Adding project dependency artifact: jsr305 to classpath
> *[DEBUG] Adding project dependency artifact: guava to classpath* here
>  is
> pom.xml. would be great if someone could help us out.
>


Re: Need help for maven site plugin for Apache Helix

2021-11-17 Thread Martin Gainty
caused by outdated reference to a dead codehaus repo
setting codehaus repository enabled=false should mitigate e.g.




HTH
martin

From: Junkai Xue 
Sent: Wednesday, November 17, 2021 6:04 PM
To: users@maven.apache.org 
Subject: Need help for maven site plugin for Apache Helix

Hi,

I was trying to deploy Apache Helix project website for new releases. Got
exception on

*SiteToolException: The site descriptor cannot be resolved from the
repository: ArtifactResolutionException: Unable to locate site descriptor:
Could not transfer artifact org.apache:apache:xml:site_en:13 from/to
mvnrepository.com  (https://mvnrepository.com
): Access denied to:
https://mvnrepository.com/org/apache/apache/13/apache-13-site_en.xml
 ,
ReasonPhrase:Forbidden.*

[*ERROR*] *  org.apache:apache:xml:13*

[*ERROR*]

[*ERROR*] *from the specified remote repositories:*

[*ERROR*] *  restlet.talend.com 
(https://maven.restlet.talend.com ,
releases=true, snapshots=false),*

[*ERROR*] *  mvnrepository.com 
(https://mvnrepository.com , releases=true,
snapshots=false),*

[*ERROR*] *  central (https://repo.maven.apache.org/maven2
, releases=true, snapshots=false),*

[*ERROR*] *  apache.snapshots (http://repository.apache.org/snapshots
, releases=false, snapshots=true)*


Was this recent change? I tried to upgrade to maven site plugin to 3.9.1.
It got error on parsing:

*SiteToolException: Error parsing site descriptor*: TEXT must be
immediately followed by END_TAG and not START_TAG (position: START_TAG seen
...\n  

Re: How do you get "import in3.*;" to work in a Java program when using Maven?

2021-01-17 Thread Martin Gainty
did you try simplifying version to numeric version
2.5.4
Sent: Sunday, January 17, 2021 4:46 PM
To: users@maven.apache.org 
Subject: How do you get "import in3.*;" to work in a Java program when using 
Maven?

I have a working pom.xml file, and I want to use Incubed in3.  I added these 
lines to my Maven pom.xml file:


  it.slock
  in3
  v2.5.4



I was trying to follow the directions here: 
https://github.com/blockchainsllc/in3/packages/72045?version=v2.5.4

I tried different versions of in3 too.  Whenever I ran "mvn install", I got an 
error like this:

Could not resolve dependencies for project org.foobar:jar:0.1.0: Could not find 
artifact it.slock:in3:jar:2.5.4 in central 
(https://repo.maven.apache.org/maven2)

I looked on different Maven repositories for "in3" or "it.slock", but I could 
not find anything.  How do you use pom.xml to build in3 for Java?


Re: jfx library location with javafx.scene.layout.Region

2020-11-01 Thread Martin Gainty
that pointed me in the right direction specifically
https://repo1.maven.org/maven2/org/openjfx/javafx-graphics/16-ea+3/

thanks Greg!
~martin~


From: Greg Chabala 
Sent: Sunday, November 1, 2020 12:32 PM
To: Maven Users List 
Subject: Re: jfx library location with javafx.scene.layout.Region

JavaFX has been removed from the JDK for some time now:
https://blogs.oracle.com/java-platform-group/the-future-of-javafx-and-other-java-client-roadmap-updates

This is the artifact you want:
https://search.maven.org/artifact/org.openjfx/javafx-graphics


org.openjfx
javafx-graphics
15.0.1


On Sun, Nov 1, 2020 at 7:08 AM Martin Gainty  wrote:

> attempting to locate jar for javafx.scene.layout.Region
>
> from what i see jfx.scene.layout is part of jfx library
>
> but from some reason jfx was not included in OpenJDK
>
> any clues where to find binaries for jfx?
>
> Thanks!
> martin
>


jfx library location with javafx.scene.layout.Region

2020-11-01 Thread Martin Gainty
attempting to locate jar for javafx.scene.layout.Region

from what i see jfx.scene.layout is part of jfx library

but from some reason jfx was not included in OpenJDK

any clues where to find binaries for jfx?

Thanks!
martin


Re: Velocity and Struts dependencies causing vulnerabilities

2020-02-18 Thread Martin Gainty
usha could you repost this issue to u...@struts.apache.org?

if struts-taglib has a security vulnerability Lukasz and the Struts Team should 
be able to fix it

Bon Chance
martin-


From: Hervé BOUTEMY 
Sent: Tuesday, February 18, 2020 4:45 PM
To: Maven Users List 
Subject: Re: Velocity and Struts dependencies causing vulnerabilities

Hi,

We have a plan: instead of upgrading, we'll remove the dependencies, see
https://issues.apache.org/jira/browse/DOXIASITETOOLS-215

Doxia Sitetools 1.9.2 release is planned in a few days, then we'll need to
release every reporting plugin after.

Notice that these components are vulnerable, but they are used in Maven
plugins, not in a web application, then the vulnerability is not really
accessible: there is no real issue other than unused dependencies pulled by
reporting plugins.

Regards,

Hervé

Le mardi 18 février 2020, 21:44:15 CET Kotamarti, Usha a écrit :
> Hello,
>
> We have an issue with version of the Velocity and Struts taglib, tiles and
> core jars that Maven maven-pmd-plugin and maven-checkstyle-plugin are
> using. Velocity version 2.0 and Struts 1.3.8 have security vulnerabilities.
>
> These 2 plugins need to be upgraded to use velocity-tools version 3.0 and
> Struts 2.3.x or 2.5.x.   Do you have a plan to do that ?  If not, would you
> please let us know if there is a workaround to explicitly specify which
> versions of Velocity and Struts we would like pmd-plugiun and
> checkstyle-plugin to use?
>
> Thank you!
> Usha Kotamarti
>
>
>
> --
> This message, and any attachments, is for the intended recipient(s) only,
> may contain information that is privileged, confidential and/or proprietary
> and subject to important terms and conditions available at
> http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended
> recipient, please delete this message.





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



Re: maven-jarsigner-plugin 3.0.0 rename fails on WIndows, is ok on linux

2019-04-03 Thread Martin Gainty
see below


From: Marlow, Andrew 
Sent: Tuesday, April 2, 2019 3:36 AM
To: users@maven.apache.org
Cc: marlow.age...@gmail.com
Subject: maven-jarsigner-plugin 3.0.0 rename fails on WIndows, is ok on linux


Hello everyone,



I am trying to use the maven jarsigner to sign my jars. I’ve added the pom 
fragment shown below. It works on linux. However on windows I get the error:



Jarsigner: attempt to rename jarname to jarname.orig failed.



Any ideas what I’m doing wrong? I’m using Oracle JDK8 and maven 3.6.0. I’ve 
googled and some people say they got this error and removing the verify step 
made it work. I tried that and it didn’t work for me.

MG>first enable write permission to the maven user jarsigning the affected jar
MG>drop to command line and type
MG>dir /X *.jar
AXIOM-~1.JAR  axiom-dom-1.3.jar


MG>so in my case i can use jarsigner on shortened axiom-dom-1.3.jar located in 
current folder provided i grant write access for mgainty to AXIOM-~1
cacls AXIOM-~1.JAR /G mgainty:W
Are you sure (Y/N)?yes
axiom-dom-1.3.0.jar

MG>hth





org.apache.maven.plugins

maven-jarsigner-plugin

3.0.0





sign



sign







verify-jars



verify











mykeystore

myalias

mystorepass

url-of-timestamp-service 







Andrew Marlow

Consultant developer, Apex

38th Floor, 25 Canada Square,

Canary Wharf, London E14 5LQ

T:  020-8081-2367 / 07966-451-521
E: andrew.mar...@fisglobal.com
FIS | Empowering the Financial World [cid:image001.png@01D112FA.C4A77D90] 
 [cid:image002.png@01D112FA.C4A77D90] 
 [cid:image003.png@01D112FA.C4A77D90] 


FIS Apex (UK) Limited * Registered in England and Wales No. 3573008 * 
Registered Office: 38th floor, 25 Canada Square, London, E14 5LQ, United Kingdom

[50_3]



The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. FIS is a trading name of the following 
companies: Fidelity Information Services Ltd (registered in England 
No.02225203), FIS Payments (UK) Ltd (No.04215488), FIS Asiapacrim Holdings Ltd 
(No.06707320), Certegy Card Services Ltd (No.03517639) and Efunds International 
Ltd (No.01930117), all with their registered office at Floor 1, 51/53 Hagley 
Road, Birmingham B16 8TU, United Kingdom; and FIS Payments (Ireland) Ltd 
(registered in Ireland No.126879), with its registered office at 25/28 North 
Wall Quay, Dublin 1, D01 H104, Ireland. FIS Payments (UK) Ltd is authorised and 
regulated by the Financial Conduct Authority; some services are covered by the 
Financial Ombudsman Service (in the UK). Calls to and from the companies may be 
recorded for quality purposes. All of the above companies are part of FIS 
(Fidelity National Information Services Inc.).


Re: Schemagen NullPointerException

2018-12-20 Thread Martin Gainty


From: Joshua Raymond 
Sent: Wednesday, December 19, 2018 3:06 PM
To: users@maven.apache.org
Subject: Schemagen NullPointerException

Hello,

I'm having some issues with the schemagen of the maven plugin. The error
says it's a NullPointerException and gives instructions on how to find out
more information about the error. So I follow the instructions to cd to the
directory and run a command to see the full -error. Which I run and the
results of that are "error: package javax.persistence does not exist"
MG>you need to have javax.persistence groupId package dependency is on your 
classpath added to dependencies

 
   javax.persistence
  javax.persistence
 
 
   javax.persistence
   javax.persistence-api
  
  
   javax.persistence
   persistence-api
 
 
   javax.persistence
   persistence-jdbc
  

MG>also any resources/java files that are generated need to be included in 
downstream plugins..in your case
http://www.mojohaus.org/jaxb2-maven-plugin/Documentation/v2.2/schemagen-mojo.html
MG>for your schemagen the value of attribute 'outputDirectory' would need to be 
included in downstream plugins
JAXB-2 Maven Plugin – jaxb2:schemagen - 
MojoHaus
Mojo that creates XML schema(s) from compile-scope Java sources or binaries by 
invoking the JAXB SchemaGenerator. This implementation is tailored to use the 
JAXB Reference Implementation from project Kenai.
www.mojohaus.org

MG>hth

and
so on. Which seems like it's not finding the compiled classes at all. It
compiles and runs just fine with the schemagen part removed.

Any help would be appreciated, I'm processing a single class that links to
a few other classes. I also can produce xml based on the class just fine.

Maven 3.6
jaxb2-maven-plugin 2.4
JDK 1.8.0_192

StackTrace below
--- jaxb2-maven-plugin:2.4:schemagen (schemagen) @ Project ---
Created EpisodePath
[C:\Users\jraymond\Documents\NetBeansProjects\Project\target\generated-resources\schemagen\META-INF\JAXB]:
true
Created EpisodePath
[C:\Users\jraymond\Documents\NetBeansProjects\Project\target\generated-resources\schemagen\META-INF\JAXB]:
true
Execution failed.

[Exception]: java.lang.NullPointerException
[Message]: null

com.sun.tools.javac.model.JavacTypes.getDeclaredType(JavacTypes.java:218)
 com.sun.tools.jxc.model.nav.ApNavigator.use(ApNavigator.java:221)
 com.sun.tools.jxc.model.nav.ApNavigator.use(ApNavigator.java:82)

com.sun.xml.bind.v2.model.impl.TypeInfoSetImpl.getClassInfo(TypeInfoSetImpl.java:265)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:237)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:227)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:375)

com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:96)

com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:73)

com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:78)

com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:76)
 java.util.AbstractList$Itr.next(AbstractList.java:358)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:275)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:227)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:375)

com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:96)

com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:73)

com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:78)

com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:76)
 java.util.AbstractList$Itr.next(AbstractList.java:358)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:275)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:227)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:375)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:390)

com.sun.tools.jxc.api.impl.j2s.JavaCompilerImpl.bind(JavaCompilerImpl.java:95)

com.sun.tools.jxc.ap.SchemaGenerator.process(SchemaGenerator.java:110)

com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)

com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:705)

com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)

com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)

com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)

com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)


Re: Schemagen NullPointerException

2018-12-20 Thread Martin Gainty


From: Joshua Raymond 
Sent: Wednesday, December 19, 2018 3:06 PM
To: users@maven.apache.org
Subject: Schemagen NullPointerException

Hello,

I'm having some issues with the schemagen of the maven plugin. The error
says it's a NullPointerException and gives instructions on how to find out
more information about the error. So I follow the instructions to cd to the
directory and run a command to see the full -error. Which I run and the
results of that are "error: package javax.persistence does not exist" and
so on. Which seems like it's not finding the compiled classes at all. It
compiles and runs just fine with the schemagen part removed.

Any help would be appreciated, I'm processing a single class that links to
a few other classes. I also can produce xml based on the class just fine.

Maven 3.6
jaxb2-maven-plugin 2.4
JDK 1.8.0_192

StackTrace below
--- jaxb2-maven-plugin:2.4:schemagen (schemagen) @ Project ---
Created EpisodePath
[C:\Users\jraymond\Documents\NetBeansProjects\Project\target\generated-resources\schemagen\META-INF\JAXB]:
true
Created EpisodePath
[C:\Users\jraymond\Documents\NetBeansProjects\Project\target\generated-resources\schemagen\META-INF\JAXB]:
true
Execution failed.

[Exception]: java.lang.NullPointerException
[Message]: null

com.sun.tools.javac.model.JavacTypes.getDeclaredType(JavacTypes.java:218)
 com.sun.tools.jxc.model.nav.ApNavigator.use(ApNavigator.java:221)
 com.sun.tools.jxc.model.nav.ApNavigator.use(ApNavigator.java:82)

com.sun.xml.bind.v2.model.impl.TypeInfoSetImpl.getClassInfo(TypeInfoSetImpl.java:265)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:237)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:227)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:375)

com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:96)

com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:73)

com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:78)

com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:76)
 java.util.AbstractList$Itr.next(AbstractList.java:358)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:275)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:227)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:375)

com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:96)

com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:73)

com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:78)

com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:76)
 java.util.AbstractList$Itr.next(AbstractList.java:358)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:275)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:227)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:375)

com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:390)

com.sun.tools.jxc.api.impl.j2s.JavaCompilerImpl.bind(JavaCompilerImpl.java:95)

com.sun.tools.jxc.ap.SchemaGenerator.process(SchemaGenerator.java:110)

com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)

com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:705)

com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)

com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)

com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)

com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)

com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)
 com.sun.tools.javac.main.Main.compile(Main.java:523)

com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
 com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)

com.sun.tools.jxc.SchemaGenerator$Runner.compile(SchemaGenerator.java:266)
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 java.lang.reflect.Method.invoke(Method.java:498)
 com.sun.tools.jxc.SchemaGenerator.run(SchemaGenerator.java:166)

org.codehaus.mojo.jaxb2.schemageneration.AbstractXsdGeneratorMojo.performExecution(AbstractXsdGeneratorMojo.java:405)

org.codehaus.mojo.jaxb2.AbstractJaxbMojo.execute(AbstractJaxbMojo.java:315)


Re: javadoc generics snafu

2018-12-19 Thread Martin Gainty
doclint:-reference suppresses ALL errors on @param


org.apache.maven.plugins
maven-javadoc-plugin>
 
 -Xdoclint:-reference
 -Xdoclint:-reference/access


so in the end all @param errors are bypassed
instead of just bypassing faulty  declarations

its a 5min hack that will have to hold while i'm looking for more appropriate 
solution
MX


From: Martin Gainty 
Sent: Wednesday, December 19, 2018 7:10 PM
To: users@maven.apache.org
Subject: javadoc generics snafu

i am attempting to have maven-javadoc-plugin to skip generation of doc for  
generics here is the error:

[DEBUG] Configuring mojo org.apache.maven.plugins:maven-javadoc-plugin:2.8:jar 
from plugin realm 
ClassRealm[plugin>org.apache.maven.plugins:maven-javadoc-plugin:2.8, parent: 
sun.misc.Launcher$AppClassLoader@33909752]
[DEBUG] Configuring mojo 
'org.apache.maven.plugins:maven-javadoc-plugin:2.8:jar' with basic configurator 
-->
[DEBUG]   (f) aggregate = false
[DEBUG]   (f) attach = true
[DEBUG]   (f) author = true
[DEBUG]   (f) bootclasspathArtifacts = []
[DEBUG]   (f) bottom = Copyright  {inceptionYear}-{currentYear} 
{organizationName}. All Rights Reserved.
[DEBUG]   (f) breakiterator = true
[DEBUG]   (f) debug = false
[DEBUG]   (f) defaultManifestFile = 
/spring/spring-hateoas/target/classes/META-INF/MANIFEST.MF
[DEBUG]   (f) detectJavaApiLink = true
[DEBUG]   (f) detectLinks = false
[DEBUG]   (f) detectOfflineLinks = true
[DEBUG]   (f) docfilessubdirs = true
[DEBUG]   (f) docletArtifact = groupId = 'null'
artifactId = 'null'
version = 'null'
[DEBUG]   (f) docletArtifacts = []
[DEBUG]   (f) doctitle = Spring Hateoas 0.9.0.RELEASE API
[DEBUG]   (f) encoding = UTF-8
[DEBUG]   (f) failOnError = true
[DEBUG]   (f) finalName = spring-hateoas-0.9.0.RELEASE
[DEBUG]   (f) groups = []
[DEBUG]   (f) header = Spring Hateoas
[DEBUG]   (f) includeDependencySources = false
[DEBUG]   (f) includeTransitiveDependencySources = false
[DEBUG]   (f) isOffline = true
[DEBUG]   (f) jarOutputDirectory = /spring/spring-hateoas/target
[DEBUG]   (f) javaApiLinks = {}
[DEBUG]   (f) javadocDirectory = /spring/spring-hateoas/src/main/javadoc
[DEBUG]   (f) javadocOptionsDir = 
/spring/spring-hateoas/target/javadoc-bundle-options
[DEBUG]   (f) keywords = false
[DEBUG]   (f) links = 
[http://static.springframework.org/spring/docs/3.1.x/javadoc-api, 
http://download.oracle.com/javase/1.5.0/docs/api]
[DEBUG]   (f) linksource = false
[DEBUG]   (f) localRepository =   id: local
  url: file:///etc/MGainty/.m2/repository/
   layout: default
snapshots: [enabled => true, update => always]
 releases: [enabled => true, update => always]

[DEBUG]   (f) nocomment = false
[DEBUG]   (f) nodeprecated = false
[DEBUG]   (f) nodeprecatedlist = false
[DEBUG]   (f) nohelp = false
[DEBUG]   (f) noindex = false
[DEBUG]   (f) nonavbar = false
[DEBUG]   (f) nooverview = false
[DEBUG]   (f) nosince = false
[DEBUG]   (f) notimestamp = false
[DEBUG]   (f) notree = false
[DEBUG]   (f) offlineLinks = []
[DEBUG]   (f) old = false
[DEBUG]   (f) outputDirectory = /spring/spring-hateoas/target/apidocs
[DEBUG]   (f) overview = /spring/spring-hateoas/src/main/javadoc/overview.html
[DEBUG]   (f) project = MavenProject: 
org.springframework.hateoas:spring-hateoas:0.9.0.RELEASE @ 
/spring/spring-hateoas/pom.xml
[DEBUG]   (f) quiet = true
[DEBUG]   (f) reactorProjects = [MavenProject: 
org.springframework.hateoas:spring-hateoas:0.9.0.RELEASE @ 
C:\spring\spring-hateoas\pom.xml]
[DEBUG]   (f) remoteRepositories = [  id: spring-libs-release
  url: http://repo.spring.io/libs-release
   layout: default
snapshots: [enabled => true, update => daily]
 releases: [enabled => true, update => daily]
,   id: central
  url: https://repo.maven.apache.org/maven2
   layout: default
snapshots: [enabled => false, update => daily]
 releases: [enabled => true, update => daily]
]
[DEBUG]   (f) resourcesArtifacts = []
[DEBUG]   (f) serialwarn = false
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@2e185cd7
[DEBUG]   (f) settings = org.apache.maven.execution.SettingsAdapter@7b1b1784
[DEBUG]   (f) show = protected
[DEBUG]   (f) skip = false
[DEBUG]   (f) source = 1.5
[DEBUG]   (f) sourceDependencyCacheDir = 
/spring/spring-hateoas/target/distro-javadoc-sources
[DEBUG]   (f) splitindex = false
[DEBUG]   (f) stylesheet = java
[DEBUG]   (f) stylesheetfile = 
/spring/spring-hateoas/src/main/javadoc/spring-javadoc.css
[DEBUG]   (f) tagletArtifact = groupId = 'null'
artifactId = 'null'
version = 'null'
[DEBUG]   (f) tagletArtifacts = []
[DEBUG]   (f) taglets = []
[DEBUG]   (f) tags = []
[DEBUG]   (f) use = true
[DEBUG]   (f) useDefaultManifestFile = false
[DEBUG]   (f) useStandardDocletOptions = true
[DEBUG]   (f) validateLinks = false
[DEBUG]   (f) verbose = false
[DEBUG]   (f) version = true
[DEBUG]   (f) windowtitle = Spring Hateoas 0.9.0.RELEASE API
[DEBUG] -- end configuration --
[DEBUG] Found Jav

javadoc generics snafu

2018-12-19 Thread Martin Gainty
i am attempting to have maven-javadoc-plugin to skip generation of doc for  
generics here is the error:

[DEBUG] Configuring mojo org.apache.maven.plugins:maven-javadoc-plugin:2.8:jar 
from plugin realm 
ClassRealm[plugin>org.apache.maven.plugins:maven-javadoc-plugin:2.8, parent: 
sun.misc.Launcher$AppClassLoader@33909752]
[DEBUG] Configuring mojo 
'org.apache.maven.plugins:maven-javadoc-plugin:2.8:jar' with basic configurator 
-->
[DEBUG]   (f) aggregate = false
[DEBUG]   (f) attach = true
[DEBUG]   (f) author = true
[DEBUG]   (f) bootclasspathArtifacts = []
[DEBUG]   (f) bottom = Copyright  {inceptionYear}-{currentYear} 
{organizationName}. All Rights Reserved.
[DEBUG]   (f) breakiterator = true
[DEBUG]   (f) debug = false
[DEBUG]   (f) defaultManifestFile = 
/spring/spring-hateoas/target/classes/META-INF/MANIFEST.MF
[DEBUG]   (f) detectJavaApiLink = true
[DEBUG]   (f) detectLinks = false
[DEBUG]   (f) detectOfflineLinks = true
[DEBUG]   (f) docfilessubdirs = true
[DEBUG]   (f) docletArtifact = groupId = 'null'
artifactId = 'null'
version = 'null'
[DEBUG]   (f) docletArtifacts = []
[DEBUG]   (f) doctitle = Spring Hateoas 0.9.0.RELEASE API
[DEBUG]   (f) encoding = UTF-8
[DEBUG]   (f) failOnError = true
[DEBUG]   (f) finalName = spring-hateoas-0.9.0.RELEASE
[DEBUG]   (f) groups = []
[DEBUG]   (f) header = Spring Hateoas
[DEBUG]   (f) includeDependencySources = false
[DEBUG]   (f) includeTransitiveDependencySources = false
[DEBUG]   (f) isOffline = true
[DEBUG]   (f) jarOutputDirectory = /spring/spring-hateoas/target
[DEBUG]   (f) javaApiLinks = {}
[DEBUG]   (f) javadocDirectory = /spring/spring-hateoas/src/main/javadoc
[DEBUG]   (f) javadocOptionsDir = 
/spring/spring-hateoas/target/javadoc-bundle-options
[DEBUG]   (f) keywords = false
[DEBUG]   (f) links = 
[http://static.springframework.org/spring/docs/3.1.x/javadoc-api, 
http://download.oracle.com/javase/1.5.0/docs/api]
[DEBUG]   (f) linksource = false
[DEBUG]   (f) localRepository =   id: local
  url: file:///etc/MGainty/.m2/repository/
   layout: default
snapshots: [enabled => true, update => always]
 releases: [enabled => true, update => always]

[DEBUG]   (f) nocomment = false
[DEBUG]   (f) nodeprecated = false
[DEBUG]   (f) nodeprecatedlist = false
[DEBUG]   (f) nohelp = false
[DEBUG]   (f) noindex = false
[DEBUG]   (f) nonavbar = false
[DEBUG]   (f) nooverview = false
[DEBUG]   (f) nosince = false
[DEBUG]   (f) notimestamp = false
[DEBUG]   (f) notree = false
[DEBUG]   (f) offlineLinks = []
[DEBUG]   (f) old = false
[DEBUG]   (f) outputDirectory = /spring/spring-hateoas/target/apidocs
[DEBUG]   (f) overview = /spring/spring-hateoas/src/main/javadoc/overview.html
[DEBUG]   (f) project = MavenProject: 
org.springframework.hateoas:spring-hateoas:0.9.0.RELEASE @ 
/spring/spring-hateoas/pom.xml
[DEBUG]   (f) quiet = true
[DEBUG]   (f) reactorProjects = [MavenProject: 
org.springframework.hateoas:spring-hateoas:0.9.0.RELEASE @ 
C:\spring\spring-hateoas\pom.xml]
[DEBUG]   (f) remoteRepositories = [  id: spring-libs-release
  url: http://repo.spring.io/libs-release
   layout: default
snapshots: [enabled => true, update => daily]
 releases: [enabled => true, update => daily]
,   id: central
  url: https://repo.maven.apache.org/maven2
   layout: default
snapshots: [enabled => false, update => daily]
 releases: [enabled => true, update => daily]
]
[DEBUG]   (f) resourcesArtifacts = []
[DEBUG]   (f) serialwarn = false
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@2e185cd7
[DEBUG]   (f) settings = org.apache.maven.execution.SettingsAdapter@7b1b1784
[DEBUG]   (f) show = protected
[DEBUG]   (f) skip = false
[DEBUG]   (f) source = 1.5
[DEBUG]   (f) sourceDependencyCacheDir = 
/spring/spring-hateoas/target/distro-javadoc-sources
[DEBUG]   (f) splitindex = false
[DEBUG]   (f) stylesheet = java
[DEBUG]   (f) stylesheetfile = 
/spring/spring-hateoas/src/main/javadoc/spring-javadoc.css
[DEBUG]   (f) tagletArtifact = groupId = 'null'
artifactId = 'null'
version = 'null'
[DEBUG]   (f) tagletArtifacts = []
[DEBUG]   (f) taglets = []
[DEBUG]   (f) tags = []
[DEBUG]   (f) use = true
[DEBUG]   (f) useDefaultManifestFile = false
[DEBUG]   (f) useStandardDocletOptions = true
[DEBUG]   (f) validateLinks = false
[DEBUG]   (f) verbose = false
[DEBUG]   (f) version = true
[DEBUG]   (f) windowtitle = Spring Hateoas 0.9.0.RELEASE API
[DEBUG] -- end configuration --
[DEBUG] Found Java API link: http://download.oracle.com/javase/6/docs/api/
[DEBUG] Trying to add links for modules...
[WARNING] Unable to find the resource 
'/spring/spring-hateoas/src/main/javadoc/spring-javadoc.css'. Using default 
Javadoc resources.
[DEBUG] /JDK18~1.0_1/jre/../bin/javadoc.exe @options @packages
[INFO]
7 errors
96 warnings
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 17.722 s
[INFO] Finished at: 

Re: custom maven plugin - how to determine current project module?

2018-10-09 Thread Martin Gainty
MG>not obvious see below

From: Bear Giles 
Sent: Thursday, October 4, 2018 5:13 PM
To: Maven Users List
Subject: Q: custom maven plugin - how to determine current project module?

This is probably mindnumbingly obvious and my google and SO skills are
horrible but here goes

I'm working on a complex project with multiple tiers of modules. In some
cases I want to build one module, plus its dependencies (-am), and upload
it to a server via a REST call. I didn't have a problem writing the maven
plugin with a hard-coded path. Or I'll want to build several related
modules and upload all of them.

I want to be able to upload a path relative to the module I'm building. I
haven't written a plug-in to dump all system properties and environment
variables yet so it's probably something as simple as, the pom.xml
properties, e.g., $project.name, also being available as system properties.
But it's not documented and I'm paranoid about things that aren't
documented since they often change without warning.

So:

1. is that the case?

2. is there a reason the "write a custom maven plugin" pages don't mention
it early and often, at least on the page that discusses how to get
information from your custom plugin's configuration stanza?

... a related question. If one plugin sets a system property, e.g., that
'buildId' I mentioned earlier, will it be visible to all of the other maven
plugins during that run? Even if the build is multi-threaded?

MG>starting with maven 3 you can request n-number thread allocation per 
cpu-core directive in maven
https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3
Parallel builds in Maven 3 - Apache Maven - Apache 
...
Maven 3.x has the capability to perform parallel builds. The command is as 
follows: mvn -T 4 clean install # Builds with 4 threads mvn -T 1C clean install 
# 1 thread per cpu core mvn -T 1.5C clean install # 1.5 thread per cpu core. 
This build-mode analyzes your project's dependency graph and schedules modules 
that can be built in parallel according to the dependency graph of your project.
cwiki.apache.org


 In this case
there would be one custom plugin that generates the build id and uploads
the artifact but it would set a value that could then be used by other
plugins during the build. Basically a -Dname=value, but doing it via a
plugin instead of the command line.
MG>from what little you have shared i believe maven-resources-plugin 
(resources:resources) will handle property
MG>manipulation
https://maven.apache.org/plugins/maven-resources-plugin/resources-mojo.html
Apache Maven Resources Plugin – 
resources:resources
Copy resources for the main source code to the main output directory. Always 
uses the project.build.resources element to specify the resources to copy.
maven.apache.org

MG>keep in mind these implementations are classloader-dependent
MG>not such a big deal with launch but later plugin invocations may use their 
own classloaders
MG>so your forked classloader *eg surefire-plugin* may not see maven 
classloader properties
MG>unless you configure SystemPropertyVariables  for that plugin
http://maven.apache.org/surefire/maven-surefire-plugin/examples/system-properties.html
Maven Surefire Plugin – Using System 
Properties
The string ${project.build.outputDirectory} will be passed on literally because 
the type of that expression is a File, not a String.. To inherit the 
systemProperties collection from the parent configuration, you will need to 
specify combine.children="append" on the systemProperties node in the child pom:
maven.apache.org



Thanks,

Bear


Re: Confused about resolution of test-jar to WorkspaceRepository

2018-08-25 Thread Martin Gainty
fwik

 you can disable release/snapshot lookup for any repository from your 
settings.xml :



joinup-dss-thirdparty
http://joinup.ec.europa.eu/site/sd-dss/maven2

false


false


https://github.com/nowina-solutions/nexu/blob/master/pom.xml
[https://avatars0.githubusercontent.com/u/13678937?s=400=4]

nexu/pom.xml at master · nowina-solutions/nexu · 
GitHub
GitHub is where people build software. More than 28 million people use GitHub 
to discover, fork, and contribute to over 85 million projects.
github.com


if you need finer grain control over repositories you may want to consider 
repo-manager:
nexus, cloudera, artifactory
M-

From: lorenzo 
Sent: Friday, August 24, 2018 12:51 PM
To: users@maven.apache.org
Subject: Confused about resolution of test-jar to WorkspaceRepository

Hi,

I'm working on a Maven plugin[0] that interacts with the maven plugin
API v3.3.3.

The problem I'm encountering is that of these[1] two dependencies, the
former is resolved as a belonging to a RemoteRepository, whereas the
latter (the test-jar) to a WorkspaceRepository.

I don't understand why that is. Both are hosted on a remote Maven repo.

Is there something intrinsic in the test-jar type, or the test scope,
that causes the ArtifactDescriptorResult.getRepository()[2] method to
return objects of different classes?

Thanks!
Lorenzo

[0]:
https://github.com/ttuegel/mvn2nix-maven-plugin/tree/resolve-local-to-remote-repository
[1]:
https://github.com/kframework/k/blob/ad751f6c82cd2368cb5a9a33edbb91f8a0a1eea7/java-backend/pom.xml#L23-L34
[2]:
https://github.com/ttuegel/mvn2nix-maven-plugin/blob/resolve-local-to-remote-repository/src/main/java/org/nixos/mvn2nix/Mvn2NixMojo.java#L472

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



Re: From where to download Maven?

2018-05-13 Thread Martin Gainty
follow anders recommendation of maven install (latest version of ) location:

https://maven.apache.org/download.cgi

Maven – Download Apache Maven
maven.apache.org
Apache Maven 3.5.3 is the latest release and recommended version for all users. 
Disk Approximately 10MB is required for the Maven installation itself. In 
addition to that, additional disk space will be used for your local Maven 
repository. The size of your local repository will vary depending on ...




tar xzvf apache-maven-3.5.3-bin.tar.gz


Alternatively use your preferred archive extraction tool.

  *   Add the bin directory of the created directory apache-maven-3.5.3 to the 
PATH environment variable
Add M2_HOME environment variable to point to base location of maven

  *   Confirm with mvn -v in a new shell. The result should look similar to

$M2_HOME/conf/settings.xml will usually have repositories listed for snapshots, 
plugins and dependencies if not you can use something like:
be aware that everyone who uses maven will have these settings

  

  codehausSnapshots
  Codehaus Snapshots
  
false
always
warn
  
  
true
never
fail
  
  http://snapshots.maven.codehaus.org/maven2
  default

  

if you want to specify repository locations for your OWN usage of maven try 
updating repositories @
${user.home}/.m2/settings.xml


HTH

Martin
__




From: Andrew M 
Sent: Sunday, May 13, 2018 11:04 AM
To: users@maven.apache.org
Subject: From where to download Maven?

Hi Guys,

I have started with Continuous Integration with Jenkins and there is a 
precursor to Chapter 2/Module 2.

It states about refreshing knowledge about Maven Ant and war deployments, I 
have a question in regards to Maven download and installation:

I went to the below url:
http://apache.mirror.amaze.com.au/maven/

>From the above URL there is a list of so many directories, what exactly to 
>download and how to install?

http://maven.apache.org/download.cgi#Installation <-- Unfortunately doesn't 
indicate installation steps.

Any guidance would be much appreciated.

Thank you



Re: Maven Project Creation Error

2018-05-12 Thread Martin Gainty
C:\Users\i716181\.m2\repository\org\apache\maven\archetypes\maven-archetype-quickstart\1.1\m2e-lastUpdated.properties
 (Access is denied)

MG>if you uncheck read-only attribute for m2e-lastUpdated.properties?



Failed to read artifact descriptor for 
org.seleniumhq.selenium:selenium-java:jar:3.12.0


  1.  
  2.  
  3.  repo1
  4.  repo1
  5.  http://repo1.maven.org
  6.  

MG>and if you specify accessible repository such as repo1 in
${user.home}/.m2/settings.xml
so now maven can reference:org.seleniumhq.selenium:selenium-java:jar:3.12.0 ?

MG>see below
__




From: Bhattacharjee, V. (Vani) 
Sent: Saturday, May 12, 2018 5:37 AM
To: users@maven.apache.org
Subject: Maven Project Creation Error

Hi ,

I am kind of new to Maven.

I have following JDK and Maven version


C:\Users\iXX>java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) Client VM (build 25.171-b11, mixed mode)

C:\Users\iXX>mvn -version
Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T14:49:0
5-05:00)
Maven home: C:\Users\iXX\Documents\apache-maven-3.5.3\bin\..
Java version: 1.8.0_171, vendor: Oracle Corporation
Java home: C:\Program Files (x86)\Java\jdk1.8.0_171\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"

I have also set the Environment variables - JAVA_HOME, M2_HOME and edited the 
path variable to both the bin folders.

I am trying to create a new Maven Project in Eclipse in two ways but not 
successful


1.   I am getting following error when I try to  create from File --> New 
--> Maven Project --> Entering Group Id and Artifact Id --> Finish.

Could not resolve archetype 
org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the 
configured repositories.
Could not write artifact lastUpdated status
C:\Users\i716181\.m2\repository\org\apache\maven\archetypes\maven-archetype-quickstart\1.1\m2e-lastUpdated.properties
 (Access is denied).



2.   I tried to create a simple project and then convert to Maven. This is 
successful but when I try to add dependency for selenium using the Add 
dependency wizard - I get this error

"Failed to read artifact descriptor for 
org.seleniumhq.selenium:selenium-java:jar:3.12.0

org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read 
artifact descriptor for org.seleniumhq.selenium:selenium-java:jar:3.12.0
at 
org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:282)
at 
org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:198)
at 
org.eclipse.aether.internal.impl.DefaultDependencyCollector.resolveCachedArtifactDescriptor(DefaultDependencyCollector.java:535)
at 
org.eclipse.aether.internal.impl.DefaultDependencyCollector.getArtifactDescriptorResult(DefaultDependencyCollector.java:519)
at 
org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:409)
at 
org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:363)
at 
org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:351)
at 
org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:254)
at 
org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:316)
at 
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:172)
at 
org.apache.maven.project.DefaultProjectBuilder.resolveDependencies(DefaultProjectBuilder.java:215)
at 
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:188)
at 
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:119)
at 
org.eclipse.m2e.core.internal.embedder.MavenImpl.readMavenProject(MavenImpl.java:636)
at 
org.eclipse.m2e.core.internal.project.registry.DefaultMavenDependencyResolver.resolveProjectDependencies(DefaultMavenDependencyResolver.java:63)
at 
org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refreshPhase2(ProjectRegistryManager.java:530)
at 
org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager$3.call(ProjectRegistryManager.java:492)
at 
org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager$3.call(ProjectRegistryManager.java:1)
at 

Re: Building and unit-testing MR Jars, easily

2018-04-13 Thread Martin Gainty
MG3>agreed please see below


From: Russell Gold <russell.g...@oracle.com>
Sent: Friday, April 13, 2018 9:07 AM
To: Maven Users List
Subject: Re: Building and unit-testing MR Jars, easily



> On Apr 13, 2018, at 8:34 AM, Martin Gainty <mgai...@hotmail.com> wrote:
>
> MG2>quick comment below
>
> MG2>from your website:
> MG2>
> "JEP-238<http://openjdk.java.net/jeps/238 
> <http://openjdk.java.net/jeps/238>>. A problem, though, is that more than two 
> years after this feature was announced, the tools still don’t actually 
> provide much in the way of support. My next post will explore the current 
> options"
JEP 238: Multi-Release JAR Files<http://openjdk.java.net/jeps/238>
openjdk.java.net
Extend the JAR file format to allow multiple, Java-release-specific versions of 
class files to coexist in a single archive. Support multi-release modular JAR 
files for goals 1 to 3. Preserve performance: The performance of tools and 
components that use multi-release JAR files must not be ...



> MG2>
> MG2>can you suggest current tools options which support JEP-238?

I haven’t found any as yet. That’s why the numerous Maven workarounds. I think 
it is a chicken-and-egg problem. Until maven (and possibly Gradle) support the 
feature with an agreed-upon directory layout, it is unlikely that the IDEs will 
support it. And until the IDEs support it naturally, it becomes painful for 
people to create projects with them.

Jetbrains has blogged about their workaround 
<https://blog.jetbrains.com/idea/2017/10/creating-multi-release-jar-files-in-intellij-idea/>,
 but that solution bypasses the build tools.

MG3>agree with pretty much everything there except:

MG3>when creating MR jar for jar'ing JDK 9 classes one would need -release 
option
MG3>jar NameOfJar.jar --release 9   ?

MG3>when JDK9 jar command creates jar with manifest one would need specify 
-manifest MANIFEST.MF
MG3>jar -c NameOfJar.jar --manifest MANIFEST.MF * --release 9 ?

MG3>the objective is to incorporate MANIFEST.MF which includes Multi-Release 
directive
MG3>MANIFEST.MF would be included (which includes Multi-Release: true directive)

...
Main-Class: com.foo.Hello
Multi-Release: true

MG3>we can implement compile via different profiles for compile-java8 and for 
compile-java9



compile-java8



org.apache.maven.plugins
maven-compiler-plugin
3.7.0


default-compile

compile


1.8
1.8

**/*Java8.java









compile-java9

   





MG3>the remaining detail would be to handle creation of META-INF/versions/9

MG3>then populating META-INF/versions/9 with JDK-9 compiled classes with 
maven-resources-plugin
MG3>

  1.  
  2.  
  3.
  4.  maven-resources-plugin
  5.  3.0.2
  6.  
  7.
  8.  copy-resources-jdk9
  9.  
  10. validate
  11. 
  12.   copy-resources
  13. 
  14. 
  15.   
${basedir}/target/classes/META-INF/versions/9
  16.   
  17. 
  18.   ${basedir}/target/classes
  19.   true
  20. 
  21.   
  22. 
  23.   
  24. 
  25.   
  26. 

MG3>likely that we will need to separate JDK1.8 and JDK1.9 to separate child 
pom.xml with:

parent pom.xml
  JDK18 folder (compile, copy and jar all JDK1.8 classes)
  JDK19 folder (compile, copy and jar all JDK1.9 classes using 
META-INF/versions/9 folder)

MG3>WDYT?

> 
> From: Russell Gold <russell.g...@oracle.com <mailto:russell.g...@oracle.com>>
> Sent: Thursday, April 12, 2018 2:43 PM
> To: Maven Users List
> Subject: Re: Building and unit-testing MR Jars, easily
>
>
>
>> On Apr 12, 2018, at 1:58 PM, Martin Gainty <mgai...@hotmail.com> wrote:
>>
>>>   
>>>   org.apache.maven.plugins
>>>   maven-antrun-plugin
>>>   
>>>   
>>>   compile-java9
>>>   compile
>

Re: Building and unit-testing MR Jars, easily

2018-04-13 Thread Martin Gainty
MG2>quick comment below



From: Russell Gold <russell.g...@oracle.com>
Sent: Thursday, April 12, 2018 2:43 PM
To: Maven Users List
Subject: Re: Building and unit-testing MR Jars, easily



> On Apr 12, 2018, at 1:58 PM, Martin Gainty <mgai...@hotmail.com> wrote:
>
>>
>>org.apache.maven.plugins
>>maven-antrun-plugin
>>
>>
>>compile-java9
>>compile
>>
>>
>>
>>> destdir="${java9.build.outputDirectory}"
>>classpath="${project.build.outputDirectory}" 
>> includeantruntime="false" />
>>
>>
>>
>>run
>>
>>
>>
>>
> MG>looks similar to maven-compiler-plugin with srcdir / destdir /classpath 
> attrs..a bit more intuitive than maven-compiler-plugin
> maven-compiler-plugin
> 
> 
>  default-compile
>  
>   
>"${java9.sourceDirectory}
>"${java9.build.outputDirectory}"
>${project.build.outputDirectory}
>   


Part of that, I suspect, is ant’s use of attributes, which Maven generally 
shuns. If the Maven pom were recast to use attributes, and to infer groups, it 
could look something like:







but that wasn’t the direction the designers took.

> 
> MG>
>
>
> If you are actively working on adding MR capabilities to the compiler plugin, 
> is there something I can do to help?
>
> MG>initial evaluation would include what are advantages/disadvantages of MR

To a large extent, it is necessitated by the more rapid JDK changes which 
commenced with Jigsaw’s introduction in Java 9. Until then, while APIs were 
deprecated, they didn’t tend to go away a lot, and developers got used to using 
both deprecated APIs and internal ones. With Jigsaw, the JDK team started not 
only hiding the internal APIs, but also speeding up the pace of removal of 
features.

I’ve given an example at http://www.russgold.net/sw/2018/03/ch-ch-ch-changes/ 
<http://www.russgold.net/sw/2018/03/ch-ch-ch-changes/>

The basic problem is that some code that works in, say, Java 8, is no longer 
supported in Java 11, and the replacement isn’t available until Java 9. That 
means that you often cannot write one implementation that works for all JDK 
versions that mean to support. Nor can you use a conditional in your code, 
since the alternative implementations don’t even necessarily compile in the 
same JDK (the replacement feature just mentioned doesn’t compile in Java 8, and 
if you compile it for release 9, you cannot run it with Java 8. That means that 
you have to use some tricky reflection - or MR Jars.

I don’t know how common they will be. I maintainer nearly two dozen modules 
across several projects, and only two of them have needed this so far. It will 
really depend on how many more APIs get removed.

A related use case, of course, is that sometimes there are serious advantages 
in performance or resilience in using newer APIs, and MR Jars allow you to do 
that without dropping support for older JDK versions.

The main disadvantage, then, has been tool support. Maven doesn’t support them 
natively (nor does Gradle, and I cannot even imagine a clean way to add it 
there). Neither do any of the IDEs, which are almost certainly waiting on build 
tools to take the lead in defining the code layout. The workarounds have 
generally been partial solutions, counting on Maven to add support, but it has 
been painful to use them. That’s why I created this approach, which is mostly 
only painful when it comes to updating the parent POM.

MG2>from your website:
MG2>
"JEP-238<http://openjdk.java.net/jeps/238>. A problem, though, is that more 
than two years after this feature was announced, the tools still don’t actually 
provide much in the way of support. My next post will explore the current 
options"
MG2>
MG2>can you suggest current tools options which support JEP-238?

I should also note a disappointment with the JDK. Java 9 has a -release switch, 
which is intended to replace -source and -target, but it doesn’t quite match 
its intended use. If you run with -release 1.8, for example, you cannot compile 
against the Unsafe class, which is my approach needs to use toolchains. I 
expect that not everyone will have to do that, but it is a clear pain point for 
projects like Mockito, ByteBuddy, SimpleStub, and a number of others, which 
have been designed to do tricky code generation or field a

Re: Building and unit-testing MR Jars, easily

2018-04-12 Thread Martin Gainty



I’m afraid I don’t understand what you are asking. That solution 
<http://in.relation.to/2017/02/13/building-multi-release-jars-with-maven/> 
doesn’t use a build.xml. It uses the ant-plugin in its pom.xml:
[https://www.gravatar.com/avatar/8e25c0ca4bf25113bd9c0ccc5d118164?s=65]<http://in.relation.to/2017/02/13/building-multi-release-jars-with-maven/>

Building Multi-Release JARs with Maven - In Relation 
To<http://in.relation.to/2017/02/13/building-multi-release-jars-with-maven/>
in.relation.to
Java 9 comes with a new feature very useful to library authors: multi-release 
JARs (JEP 238). A multi-release JAR (MR JAR) may contain multiple variants of 
one and the same class, each targeting a specific Java version. At runtime, the 
right variant of the class will be loaded automatically ...




> 
> org.apache.maven.plugins
> maven-antrun-plugin
> 
> 
> compile-java9
> compile
> 
> 
> 
>  destdir="${java9.build.outputDirectory}"
> classpath="${project.build.outputDirectory}" 
> includeantruntime="false" />
> 
> 
> 
> run
> 
> 
> 
> 
MG>looks similar to maven-compiler-plugin with srcdir / destdir /classpath 
attrs..a bit more intuitive than maven-compiler-plugin
maven-compiler-plugin

 
  default-compile
  
   
"${java9.sourceDirectory}
"${java9.build.outputDirectory}"
${project.build.outputDirectory}
   

MG>

which doesn’t do anything that is missing from the compiler plugin. It was 
actually my realization that I could do the exact thing with a separate 
execution that led me to the approach I have described.
MG>yes but your maven-antrun-plugin is more intuitive than preceding 
maven-compiler-plugin

If you are actively working on adding MR capabilities to the compiler plugin, 
is there something I can do to help?

MG>initial evaluation would include what are advantages/disadvantages of MR

> On Apr 12, 2018, at 10:44 AM, Martin Gainty <mgai...@hotmail.com> wrote:
>
> MG>one-off request with ant only approach to compiling MR jars
>
> 
> From: Russell Gold <russell.g...@oracle.com <mailto:russell.g...@oracle.com>>
> Sent: Thursday, April 12, 2018 7:00 AM
> To: Robert Scholte
> Cc: Maven Users List
> Subject: Re: Building and unit-testing MR Jars, easily
>
>
>
>> On Apr 11, 2018, at 12:36 PM, Robert Scholte <rfscho...@apache.org> wrote:
>>
>> On Wed, 11 Apr 2018 14:25:37 +0200, Russell Gold <russell.g...@oracle.com> 
>> wrote:
>>
>>> Hi Robert,
>>>
>>> I used properties because I need to trigger multiple profiles, depending on 
>>> whether we’re building the MR jar, and what JDK versions will be needed - 
>>> and I can use them to turn profiles off, which I could not do by simply 
>>> turning on a profile, as far as I know.
>>
>> Yes, you can turn off profiles by prefixing it with !,e.g. -P!someprofile
>
> That’s good to know. In this case, there are two profiles which are mutually 
> exclusive. he multi-jar profile is activated when building an MR jar, and the 
> test-toolchains-bypass profiles is run when NOT building an MR jar. I can do 
> that with a single property. Is there a way to do that with a single -P 
> switch?
>>
>>>
>>> I didn’t consider test jars, and am not familiar with how they are used. 
>>> Can you tell me more about them?
>>
>> https://maven.apache.org/plugins/maven-jar-plugin/examples/create-test-jar.html
> How to create a jar containing test classes - Apache 
> Maven<https://maven.apache.org/plugins/maven-jar-plugin/examples/create-test-jar.html
>  
> <https://maven.apache.org/plugins/maven-jar-plugin/examples/create-test-jar.html>>
> maven.apache.org <http://maven.apache.org/>
> When you want to create a jar containing test-classes, you would probably 
> want to reuse those classes. There are two ways to solve this: Create an 
> attached jar with the test-classes from the current project and loose its 
> transitive test-scoped dependencies. Create a separate project with the test 
> ...
>
>
>
>> The issue was exposed with 
>> https://issues.apache.org/jira/browse/MCOMPILER-308 
>> <https://issues.apache.org/jira/browse/MCOMPILER-308> 
>> <https://issues.apache.org/jira/browse/MCOMPILER-308 
>> &l

Re: Building and unit-testing MR Jars, easily

2018-04-12 Thread Martin Gainty
MG>one-off request with ant only approach to compiling MR jars


From: Russell Gold 
Sent: Thursday, April 12, 2018 7:00 AM
To: Robert Scholte
Cc: Maven Users List
Subject: Re: Building and unit-testing MR Jars, easily



> On Apr 11, 2018, at 12:36 PM, Robert Scholte  wrote:
>
> On Wed, 11 Apr 2018 14:25:37 +0200, Russell Gold  
> wrote:
>
>> Hi Robert,
>>
>> I used properties because I need to trigger multiple profiles, depending on 
>> whether we’re building the MR jar, and what JDK versions will be needed - 
>> and I can use them to turn profiles off, which I could not do by simply 
>> turning on a profile, as far as I know.
>
> Yes, you can turn off profiles by prefixing it with !,e.g. -P!someprofile

That’s good to know. In this case, there are two profiles which are mutually 
exclusive. he multi-jar profile is activated when building an MR jar, and the 
test-toolchains-bypass profiles is run when NOT building an MR jar. I can do 
that with a single property. Is there a way to do that with a single -P switch?
>
>>
>> I didn’t consider test jars, and am not familiar with how they are used. Can 
>> you tell me more about them?
>
> https://maven.apache.org/plugins/maven-jar-plugin/examples/create-test-jar.html
How to create a jar containing test classes - Apache 
Maven
maven.apache.org
When you want to create a jar containing test-classes, you would probably want 
to reuse those classes. There are two ways to solve this: Create an attached 
jar with the test-classes from the current project and loose its transitive 
test-scoped dependencies. Create a separate project with the test ...



> The issue was exposed with 
> https://issues.apache.org/jira/browse/MCOMPILER-308 
> 

That should be easy to fix. I just need to limit the configuration to the jar 
goal.

>
>>
>> At present, the parent POM supports only up to JDK11, and doesn’t handle 
>> well cases where the main jar would be, say, JDK11. To some extent I see 
>> this as a stop gap. It is not clear to me if a better approach would start 
>> with an extension, or if there is any real long-term alternative to putting 
>> the changes into the compiler, surefire, and jar plugins.
>>
>> Unit testing is the default behavior. Toolchains are used to compile each 
>> version of the code with the correct compiler (since the source/target and 
>> release flags don’t quite duplicate doing so), and then surefire runs the 
>> tests with the jdk used to run Maven itself. Clearly, the documentation is 
>> lacking. But yes, you do need to run the build multiple times, since the 
>> code actually run can vary. If you are using Travis CI, that means that you 
>> need to configure the toolchains explicitly. I have not yet figured out how 
>> to do this with both oracle and open jdk options, since the toolchains seem 
>> to require you to make that choice in the pom, not just the JDK.
>
> Not sure if I understand. But you can add as much entries to both  
> in the toolchain.xml and inside the  element of the 
> maven-toolchains-plugin configuration. Only version has a special meaning.
> e.g. you can add oracle or openjdk to the 
> toolchain.xml and the plugin configuration. By adding it to the plugin you 
> say that at least version+vendor must be specified in the toolchain.xml with 
> matching values. The  might have more elements, but these are 
> ignored.

Thank you. There are some things I will experiment with, to see if I can handle 
more cases.

BTW, I have posted a list of the other MR solutions that I know of at 
http://www.russgold.net/sw/2018/03/looking-for-mr-good-jar/ 
,
MG>With regards to "Use of the ant-plugin to compile the JDK 9 code"
MG>do you have a build.xml target we can use to backport features and functions 
of this target into maven-compiler-plugin
MG>possible trigger could be maven-compiler-plugin configuration of
MG>1.9 and/or
MG>1.9

along with my comments. As far as I know, mine is the only one that allows unit 
testing of the code for each JDK version.

>
> thanks,
> Robert
>
>>
>> Thanks,
>> Russ
>>
>>> On Apr 4, 2018, at 3:11 PM, Robert Scholte  wrote:
>>>
>>> Hi Russell, interesting approach.
>>>
>>> The difference between library developers and application developers 
>>> becomes more and more clear and this concept might be useful for library 
>>> builders.
>>> We should probably have a separate page for all the available solutions and 
>>> menion the pro's and cons.
>>>
>>> Just a few remarks: why are you using property enabled profiles instead of 
>>> -Pmulti-release?
>>> Be aware that you can also create test-jars, which should NOT have the 
>>> multi-release flag set in the MANIFEST.
>>>
>>> It will mean that you 

Re: Dependency is missed while using maven-assembly-plugin

2018-04-02 Thread Martin Gainty
ran mvn package against pom.xml from supplied project.zip with no missing 
dependencies:


[DEBUG] Goal:  
org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (default)
[DEBUG] Style: Regular
[DEBUG] Configuration: 

  ${appendAssemblyId}
  ${attach}
  
  ${classifier}
  ${descriptor}
  ${descriptorId}
  
src/main/assembly/assembly-descriptor.xml
  
  ${assembly.dryRun}
  
  
  ${ignoreMissingDescriptor}
  ${includeSite}
  
  ${session}
  
  
  
  
  ${runOnlyAtExecutionRoot}
  
  ${skipAssembly}
  ${tarLongFileMode}
  
  

[DEBUG] ===
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=1972051, 
ConflictMarker.markTime=738132, ConflictMarker.nodeCount=84, 
ConflictIdSorter.graphTime=1371731, ConflictIdSorter.topsortTime=935252, 
ConflictIdSorter.conflictIdCount=24, ConflictIdSorter.conflictIdCycleCount=3, 
ConflictResolver.totalTime=8674975, ConflictResolver.conflictItemCount=82, 
DefaultDependencyCollector.collectTime=137005478, 
DefaultDependencyCollector.transformTime=16792725}
[DEBUG] ru.spi2.test:sbercap-dependencies:jar:1.0-SNAPSHOT
[DEBUG]org.apache.xmlgraphics:batik-transcoder:jar:1.7:compile
[DEBUG]   org.apache.xmlgraphics:fop:jar:0.94:compile
[DEBUG]  org.apache.xmlgraphics:xmlgraphics-commons:jar:1.2:compile
[DEBUG]  commons-logging:commons-logging:jar:1.0.4:compile
[DEBUG]  commons-io:commons-io:jar:1.1:compile
[DEBUG]  
org.apache.avalon.framework:avalon-framework-api:jar:4.3.1:compile
[DEBUG]  
org.apache.avalon.framework:avalon-framework-impl:jar:4.3.1:compile
[DEBUG]   org.apache.xmlgraphics:batik-awt-util:jar:1.7:compile
[DEBUG]   org.apache.xmlgraphics:batik-bridge:jar:1.7:compile
[DEBUG]  org.apache.xmlgraphics:batik-anim:jar:1.7:compile
[DEBUG]  org.apache.xmlgraphics:batik-css:jar:1.7:compile
[DEBUG]  org.apache.xmlgraphics:batik-ext:jar:1.7:compile
[DEBUG]  org.apache.xmlgraphics:batik-parser:jar:1.7:compile
[DEBUG]  org.apache.xmlgraphics:batik-script:jar:1.7:compile
[DEBUG] org.apache.xmlgraphics:batik-js:jar:1.7:compile


I am baffled why your dependency manager is skipping batik-js:1.7?


with same pom.xml can you
mvn dependency:tree >output

and send us output
?

Martin
__




From: Сергей Вайсман 
Sent: Monday, April 2, 2018 10:24 AM
To: users@maven.apache.org
Subject: Dependency is missed while using maven-assembly-plugin

Hello.

I have a problem using maven-assembly-plugin.

I want to get during package phase a directory with all project dependencies.
But I have a transitive dependency with compile scope which is missed from
assembly output directory.

The missed jar is batik-js-1.7.jar. Here is a dependency tree for this jar

[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ 
sbercap-dependencies ---
[INFO] ru.spi2.test:sbercap-dependencies:jar:1.0-SNAPSHOT
[INFO] \- org.apache.xmlgraphics:batik-transcoder:jar:1.7:compile
...
[INFO]+- org.apache.xmlgraphics:batik-bridge:jar:1.7:compile
[INFO]|  +- org.apache.xmlgraphics:batik-anim:jar:1.7:compile
[INFO]|  +- org.apache.xmlgraphics:batik-css:jar:1.7:compile
[INFO]|  +- org.apache.xmlgraphics:batik-ext:jar:1.7:compile
[INFO]|  +- org.apache.xmlgraphics:batik-parser:jar:1.7:compile
[INFO]|  +- org.apache.xmlgraphics:batik-script:jar:1.7:compile
[INFO]|  |  \- org.apache.xmlgraphics:batik-js:jar:1.7:compile
...

When assembly plugin is finished, others dependencies (batik-anim-1.7.jar,
batik-css-1.7.jar) are added to output directory successfully. The 
batik-js-1.7.jar
is missed (screenshot no-batik-js-in-assembly-output.png attached).

On the other side, if I try to copy all dependencies using 
maven-dependency-plugin,
the batik-js-1.7.jar is successfully added to the folder (screenshot
batik-js-in-dependencies attached).

Here is my dependencies and build blocks from pom.xml



org.apache.xmlgraphics
batik-transcoder
1.7






org.apache.maven.plugins
maven-dependency-plugin


copy
package

copy-dependencies



${project.build.directory}/dependency-libs







org.apache.maven.plugins
maven-assembly-plugin


package

single

   

Re: json-schema-generator-maven-plugin has NPE fault

2018-03-24 Thread Martin Gainty
the failure occurs in 
io.gravitee.maven.plugins.json.schema.generator.mojo.JsonSchemaGeneratorMojo :


  Config config = new Config(
new Globs(getIncludes(), getExcludes()),
getBuildDirectory(),
getOutputDirectory(),
getLog()
);
// Then run mapper
Mapper mapper = new Mapper(config);
List schemas = mapper.generateJsonSchemas();
// Finally write JSON Schemas to the configured output directory
Output output = new Output(config);
output.write(schemas); //schemas must be a valid schema based on 
 parameters
..
}

in   what is
includes
excludes
buildDirectory
outputDirectory

?

Martin
__




From: David Hoffer 
Sent: Friday, March 23, 2018 2:10 PM
To: Maven Users List
Subject: Fwd: json-schema-generator-maven-plugin has NPE fault

json-schema-generator-maven-plugin v1.3.0 generates and NPE.  Just trying
to get feedback to developers.

[ERROR] Failed to execute goal io.gravitee.maven.plugins:
json-schema-generator-maven-plugin:1.3.0:generate-json-schemas
(json-schema-generator) on project odin-messaging: Execution
json-schema-generator of goal io.gravitee.maven.plugins:jso
n-schema-generator-maven-plugin:1.3.0:generate-json-schemas failed.:
NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal io.gravitee.maven.plugins:json-schema-gen
erator-maven-plugin:1.3.0:generate-json-schemas (json-schema-generator) on
project odin-messaging: Execution json-schema
-generator of goal io.gravitee.maven.plugins:json-schema-generator-maven-
plugin:1.3.0:generate-json-schemas failed.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:81)
at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.jav
a:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch
(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main
(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
json-schema-generator of goal io.gravitee.maven.p
lugins:json-schema-generator-maven-plugin:1.3.0:generate-json-schemas
failed.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:145)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:81)
at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.jav
a:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
at 

Re: [HEADS UP] Spring cleanup JIRA

2018-03-10 Thread Martin Gainty
MG>Hello Michael


From: Michael Osipov 
Sent: Saturday, March 10, 2018 3:08 PM
To: users@maven.apache.org
Subject: [HEADS UP] Spring cleanup JIRA

NOTE: This has been already announced at dev@ and accepted, informing
users also!

We have currently almost 400 open issues which haven't been touched for
more than three (3) years.

The last two times I autoclosed them with a message. People could
request a reopen, only a few did.

If you think any of those is worth keeping, please drop a comment "still
valid".

JIRA query:
https://issues.apache.org/jira/issues/?jql=category%20%3D%20Maven%20AND%20updated%20%3C%3D%20-156w%20AND%20resolution%20%3D%20Unresolved%20ORDER%20BY%20created%20DESC

Issue will be autoclosed by 2018-03-16 22:00 UTC.

Regards,

Michael

MG>a serious issue with tomcat-maven-plugin hardcode of TLS protocol vs TLSv1.2
https://issues.apache.org/jira/browse/MTOMCAT-309?jql=project%20%3D%20MTOMCAT%20AND%20component%20%3D%20tomcat7G
MG>since Im the only person that noticed I would be more than happy to fix
MG>unless of course Oliver can fix MTOMCAT-309 by EOM?


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



Re: Euro Symbol € by Scala

2018-02-25 Thread Martin Gainty



From: Martin Gainty <mgai...@hotmail.com>
Sent: Saturday, February 17, 2018 9:56 PM
To: users@maven.apache.org
Subject: Euro Symbol € by Scala


 /** A setting that defines a URL to be concatenated with source locations and 
show a link to source files.
   * If needed the sourcepath option can be used to exclude undesired initial 
part of the link to sources */
  val docsourceurl = StringSetting (
"-doc-source-url",
"url",
s("A URL pattern used to link to the source file; the following variables 
are available: €{TPL_NAME}, €{TPL_OWNER} and respectively €{FILE_PATH}. For 
example, for `scala.collection.Seq`, the variables will be expanded to `Seq`, 
`scala.collection` and respectively `scala/collection/Seq` (without the 
backquotes). To obtain a relative path for €{FILE_PATH} instead of an absolute 
one, use the ${sourcepath.name} setting.",
"")
  )


Does scala treat €{TPL_NAME} as a parameter substitution for TPL_NAME?

if so where would TPL_NAME be defined?
when i incorporate euro symbol € into string literal what directive to Scala to 
use to render €  'as is' ?

MG>to answer my question from week ago you need an escaped Unicode literal to 
render '€' symbol as in
MG>'\u20AC'

MG>followup scala queston has a hardcoded reference to Enum.enumOf which 
generates error in JDK1.8


/scala-compiler/src/main/scala/org/scalastuff/scalabeans/types/ScalaType.scala:511:
 value enumOf is not a member of object java.lang.Enum
[error] else Enum.enumOf[AnyRef](mf.erasure) match {

which (JDK) implementation of java.lang.Enum contains enumOf ?
MG>thanks


*thanks*

martin

__



Re: maven creates a ? directory instead of .m2 repository

2018-02-20 Thread Martin Gainty
mg>diag advice below



From: Dan Pungă 
Sent: Monday, February 19, 2018 4:00 PM
To: users@maven.apache.org
Subject: maven creates a ? directory instead of .m2 repository

Hello all!

I'm trying to get a Java app deployed in an OpenShift container and I'm
experiencing a strange behaviour.

At build time (firs build), maven is creating a ? directory inside the
context from which it's called (so in my project's root folder) to
create the repository directory and download the build time
dependencies. I'd really want to know why it does that, and make it use
the .m2 location from the home folder. I have a feeling it has to do
with some sort of fishy user permission, but I'm not sure if it's
actually the case or where am I doing wrong.

That's the short description of the problem. My working system is like this:
- on a OpenShift/docker virtual machine running centos 7
- I've installed maven version 3.3.9 from
https://www.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
- I've setup a $HOME directory which contains a .m2 directory that
contains my settings.xml to make maven use a local/cached repository
- this was done under root, but I've recursively changed ownership and
permission to the common user 1001 for what's related to maven

mg>did you follow the steps for useradd here?
https://www.ehowstuff.com/how-to-add-user-to-root-group-on-centos-5-7/
How to Add User to root Group on CentOS 5/CentOS 
6
www.ehowstuff.com
useradd is a low-level utility to create new users to the system. When used 
without the -D option, useradd command will create a new user account using the 
command ...

mg>what happens when you look at user groups..do you see new user (whatever 
name you used)
mg>grep PossibleIncorrectlyInterpretedUserNameInRootGroup /etc/group


- my sources come on this system with a bit if an awkward set of
permissions so that the owner is user (1001), but the group is root

When I run maven with just the targets used for the project, it doesn't
read from the settings.xml, but instead tries to connect to the global
repository.

mg> -o option tells maven to run offline

When running maven with the "-s $HOME/.m2/settings.xml" option, it does
take it into consideration and the build works fine, but it is
downloadying all the repository artifacts into ?/repository folder under
the local dir (app folder, the one which holds the pom.xml file).

Any idea what would be the reason for this behaviour?

Thank you in advance!



Euro Symbol € by Scala

2018-02-17 Thread Martin Gainty
 /** A setting that defines a URL to be concatenated with source locations and 
show a link to source files.
   * If needed the sourcepath option can be used to exclude undesired initial 
part of the link to sources */
  val docsourceurl = StringSetting (
"-doc-source-url",
"url",
s("A URL pattern used to link to the source file; the following variables 
are available: €{TPL_NAME}, €{TPL_OWNER} and respectively €{FILE_PATH}. For 
example, for `scala.collection.Seq`, the variables will be expanded to `Seq`, 
`scala.collection` and respectively `scala/collection/Seq` (without the 
backquotes). To obtain a relative path for €{FILE_PATH} instead of an absolute 
one, use the ${sourcepath.name} setting.",
"")
  )


Does scala treat €{TPL_NAME} as a parameter substitution for TPL_NAME?

if so where would TPL_NAME be defined?
when i incorporate euro symbol € into string literal what directive to Scala to 
use to render €  'as is' ?

*thanks*

martin

__



Re: Metadata multiplicity of maven-script-ant plugins

2018-02-06 Thread Martin Gainty



From: Paul Benedict 
Sent: Tuesday, February 6, 2018 7:00 PM
To: users@maven.apache.org
Subject: Metadata multiplicity of maven-script-ant plugins

I have a question based on these two references:

*)
https://maven.apache.org/plugin-tools-archives/plugin-tools-3.2/maven-plugin-plugin/examples/ant-mojo.html

*) https://books.sonatype.com/mcookbook/reference/ch04s04.html

The Maven Cookbook - 
Sonatype.com
books.sonatype.com
While Maven is an improvement on Ant, Ant can still be useful when describing 
parts of the build process. Ant provides a set of tasks which ...




In each reference, the reader is directed to create one xxx.build.xml and
xxx.mojos.xml where "xxx" represents the plugin name. I have done that.
However, is there an implication here that ONLY ONE plugin can be defined?
Am I able to also include a yyy.build.xml and yyy.mojos.xml?

MG>parroting the referenced doc the short answer is yes you need xxx.mojos.xml 
and xxx.build.xml
MG>mojos.xml analogous to maven mojo plugin.xml
MG>build.xml  of course is the execution script
MG>my *one-off* question is where is the taskdef declaration?

Cheers,
Paul
MG>ibid.


Re: [WARNING] No Archetype IT projects: root 'projects' directory not found.

2018-01-14 Thread Martin Gainty



From: Rolf Schumacher 
Sent: Saturday, January 13, 2018 12:37 PM
To: Maven Users List
Subject: [WARNING] No Archetype IT projects: root 'projects' directory not 
found.

When I install my own created archetype to my local repository I get
this warning:

[INFO] --- maven-archetype-plugin:3.0.1:integration-test
(default-integration-test) @ prjbase ---
[WARNING] No Archetype IT projects: root 'projects' directory not found.

However, everything seems to work.

Do you know where the maven-archetype-plugin likes to point me to?

MG>"archetype.test.projectsDirectory", defaultValue = 
"${project.build.testOutputDirectory}/projects"

MG>in other words if ${project.build.testOutputDirectory}/projects doesnt exist 
then specify at command line as follows:

mvn -Darchtype.test.projectsDirectory=NameOfExistingFolderWhereProjectsLive 
integration-test

Regards


Rolf

MG>BR
MG>Martin

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



Re: Running tomcat maven plugin in a multi modules project

2018-01-14 Thread Martin Gainty
FWIK of TC

anything you pack into war deployed to $TOMCAT_HOME will be unpacked when TC 
autodeploy feature is true

if you may have something like contents of webapp1:
webapp1/WEB-INF/classes/AllWebapp1*.class

  ./WEB-INF/lib/dependencyA.jar

  ./WEB-INF/lib/dependencyB.jar

  ./WEB-INF/web.xml

  ./WEB-INF/index.jsp

*when TC HTTPClient issues request to 
http://server:8080/reload?path=webapp1.war will reload (when autodeploy=true)*

$TOMCAT_HOME/webapps/webapp1/WEB-INF/classes/AllWebapp1*.class

 
./WEB-INF/lib/dependencyA.jar

 
./WEB-INF/lib/dependencyB.jar

 ./WEB-INF/web.xml

 ./WEB-INF/index.jsp

so the effort here is to fatpack your webapp war with all dependencies will 
need before issuing HTTPClient request to tc


does this conform to your understanding?

Martin
__




From: Thomas Broyer 
Sent: Sunday, January 14, 2018 3:32 AM
To: Maven Users List
Subject: Re: Running tomcat maven plugin in a multi modules project

Oh great, thanks for the heads up! (I had asked for this years ago and then
they moved to Eclipse and I lost track)

Le sam. 13 janv. 2018 23:24, Olivier Lamy  a écrit :

> Hi,
> Well to be fair Jetty Maven Plugin has now this feature as well...
>
> On 14 January 2018 at 03:25, Thomas Broyer  wrote:
>
> > On Sat, Jan 13, 2018 at 3:20 PM Thomas Broyer 
> wrote:
> >
> > > Tomcat Maven plugin has built-in support for reactors, so run it at
> root
> > > rather than within the web submodule (possibly with "-pl web -am"). It
> > will
> > > automatically compile all (needed) submodules and launch Tomcat, and
> with
> > > auto-deploy will automatically reload the webapp to pickup changes in
> any
> > > submodule.
> > >
> >
> > From https://tomcat.apache.org/maven-plugin-2.2/run-mojo-features.html
Apache Tomcat Maven Plugin - Run 
Mojo
tomcat.apache.org
Run Mojo: run your Maven war project quickly! When developing a war project, 
you usually build your war and deploy it to an installed Tomcat instance.



> > > NOTE If you have a multi module Maven project and use Maven3,
> > > you don't need to install all modules before using the run goal, just
> > > use tomcat6/7:run from the root module and the plugin will auto
> > > detect the build output directory from various modules and replace
> > > dependencies with those directories in the webapp classloader.
> >
> > (too bad there's been no new release for 4 years though, this is probably
> > one of the best thought-out Maven plugin out there in terms of usability
> > wrt multi-module projects, and without being "hackish"; without that,
> > people keep having to install all their snapshots into their local repo
> and
> > rebuilding them over and over again, if only to make sure they're the
> ones
> > for the correct commit / code state)
> >
> >
> > > Le sam. 13 janv. 2018 03:33, Sigmond Hola  a
> > > écrit :
> > >
> > >> I have a multi-module project like this:
> > >>
> > >> ROOT:pom
> > >> --- web:war
> > >> --- domain:jar
> > >> --- service:jar
> > >> --- dao:jar
> > >>
> > >> And i configure tomcat7-maven-plugin in pom.xml of module *web *so
> that
> > I
> > >> can using tomcat:run to run this web application.
> > >>
> > >> But if I change something in other module, for example, add a new
> entity
> > >> class in module domain, I have to install the ROOT to local repo first
> > >> before I run tomcat:run within module web, otherwise a error: cannot
> > find
> > >> symbol will be reported if I run tomcat:run directly.
> > >>
> > >> So how can I install other modules first before I run tomcat:run
> within
> > >> module web if I change something in other modules?
> > >>
> > >> Thanks in advance.
> > >>
> > >> Best regards.
> > >>
> > >
> >
>
>
>
> --
> Olivier Lamy
> http://twitter.com/olamy | http://linkedin.com/in/olamy
[https://media-exp2.licdn.com/mpr/mpr/shrinknp_200_200/AAEAAQaBJDY5Y2Q3ZjA5LTAzMGItNGRlNC05MTdjLTM2ZDMzMjdkYzkwOQ.jpg]

Olivier Lamy | Professional Profile | LinkedIn
linkedin.com
View Olivier Lamy’s professional profile on LinkedIn. LinkedIn is the world's 
largest business network, helping professionals like Olivier Lamy discover 
inside connections to recommended job candidates, industry experts, and 
business partners.


[https://abs.twimg.com/a/1513823426/img/search/ic_places_foursquare_logo.png]

Olivier Lamy (@olamy) | Twitter
twitter.com
The latest Tweets 

Re: Running tomcat maven plugin in a multi modules project

2018-01-13 Thread Martin Gainty

MG>this is a helpful link to implement "deploy your war to Tomcat via 
tomcat-maven-plugin"

https://www.mkyong.com/maven/how-to-deploy-maven-based-war-file-to-tomcat/

How to deploy Maven based war file to Tomcat - 
Mkyong<https://www.mkyong.com/maven/how-to-deploy-maven-based-war-file-to-tomcat/>
www.mkyong.com
In this tutorial, we will show you how to use Maven-Tomcat plugin to package 
and deploy a WAR file to Tomcat, both in Tomcat 6 and 7. This example shows you 
how to ...

MG>this *assumes* uptodate artifact jars from  are pre-installed 
to repository(your local repository)



________
From: Martin Gainty <mgai...@hotmail.com>
Sent: Friday, January 12, 2018 10:05 PM
To: Maven Users List
Subject: Re: Running tomcat maven plugin in a multi modules project


MG>knowing you're not going to find your artifacts in any of maven repositories 
you will need to deploy local repo
MG>look at the Tomcat autodeploy feature for any changes to war to 'autodeploy' 
to specified location (which in TC is MG>webapps folder but for maven-plugin 
you will deploy to your local repo)

MG>if you could clone project to github and share the link we could more 
closely track any errors you are experiencing



From: Sigmond Hola <sigmund@gmail.com>
Sent: Friday, January 12, 2018 9:33 PM
To: users@maven.apache.org
Subject: Running tomcat maven plugin in a multi modules project

I have a multi-module project like this:

ROOT:pom
--- web:war
--- domain:jar
--- service:jar
--- dao:jar

And i configure tomcat7-maven-plugin in pom.xml of module *web *so that I
can using tomcat:run to run this web application.

But if I change something in other module, for example, add a new entity
class in module domain, I have to install the ROOT to local repo first
before I run tomcat:run within module web, otherwise a error: cannot find
symbol will be reported if I run tomcat:run directly.

So how can I install other modules first before I run tomcat:run within
module web if I change something in other modules?

Thanks in advance.

Best regards.


Re: Running tomcat maven plugin in a multi modules project

2018-01-12 Thread Martin Gainty
MG>knowing you're not going to find your artifacts in any of maven repositories 
you will need to deploy local repo
MG>look at the Tomcat autodeploy feature for any changes to war to 'autodeploy' 
to specified location (which in TC is MG>webapps folder but for maven-plugin 
you will deploy to your local repo)

MG>if you could clone project to github and share the link we could more 
closely track any errors you are experiencing



From: Sigmond Hola 
Sent: Friday, January 12, 2018 9:33 PM
To: users@maven.apache.org
Subject: Running tomcat maven plugin in a multi modules project

I have a multi-module project like this:

ROOT:pom
--- web:war
--- domain:jar
--- service:jar
--- dao:jar

And i configure tomcat7-maven-plugin in pom.xml of module *web *so that I
can using tomcat:run to run this web application.

But if I change something in other module, for example, add a new entity
class in module domain, I have to install the ROOT to local repo first
before I run tomcat:run within module web, otherwise a error: cannot find
symbol will be reported if I run tomcat:run directly.

So how can I install other modules first before I run tomcat:run within
module web if I change something in other modules?

Thanks in advance.

Best regards.


Re: Unexplained sudden loss of access to repository on build server

2018-01-05 Thread Martin Gainty



From: ahardy42 
Sent: Friday, January 5, 2018 8:38 AM
To: users@maven.apache.org
Subject: Unexplained sudden loss of access to repository on build server

I'm testing parts of my mojo in an integration test and for months this
worked fine locally and on the build server (Teamcity).

I specified our company's artifactory repository in the settings.xml

I created a test project in the src/test/resources/my-test-project directory
and referred to it using the AbstractMojoTestCase#getTestProject() method.

I specified a particular dependency required only by the mojo in the plugin
dependency block in the test project pom.xml.

This all worked fine and maven retrieved the dependency and the tests ran.

Now suddenly, the tests break on the build server because maven is ignoring
the settings.xml configured for the build, and is searching
repo.maven.apache.org for the test dependency.

Locally it still works fine.

I have worked around it by adding the repository definitions from
settings.xml into the test pom.xmls directly, but obviously that's
undesirable from a maintenance perspective.

This is what it's doing:

/**
 * Injected from Plexus container on start.
 */
@Component
private RepositorySystem repositorySystem;

/**
 * The current repository/network configuration of Maven.
 */
@Parameter(defaultValue = "${repositorySystemSession}", readonly = true)
private RepositorySystemSession repositorySystemSession;

MG>so repositorySystemSession is null?.. did you try putting maven-plugin-api 
into your dependencies?
https://github.com/sonatype/aether-demo-maven-plugin/blob/master/pom.xml


And then I'm resolving my desired artifact like this:

ArtifactResult result = repositorySystem.resolveArtifact(
repositorySystemSession,
new ArtifactRequest(
new DefaultArtifact(groupId, artifactId, null,
type, version),
project.getRemoteProjectRepositories(),
null));
configArtifact = result.getArtifact();




--
Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html
Maven - Maven - Users | Mailing List 
Archive
maven.40175.n5.nabble.com
This forum is an archive for the mailing list users@maven.apache.org (more 
options) Messages posted here will be sent to this mailing list.




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



Re: ServiceLoader not loading FileTypeDetector implementation in jar

2018-01-04 Thread Martin Gainty



From: ahardy42 
Sent: Thursday, January 4, 2018 11:12 AM
To: users@maven.apache.org
Subject: ServiceLoader not loading FileTypeDetector implementation in jar

I created, tested and packaged a java.nio.file.spi.FileTypeDetector
implementation in a utility jar for use by Files.probeContentType(path).

So it works beautifully in my utility project.

I'm now trying to use it in another project but despite hours of trying, I
can't work out why the JVM can't find or load my implementation and keeps
defaulting back to the JDK's RegisterFileTypeDetector.

I have double checked that the utility jar is in my classpath with
dependency:tree, contains the
META-INF/services/java.nio.file.spi.FileTypeDetector file naming my
implementation, and also the actual implementation class.

The JDK javadoc documentation claims that it will seek it out anywhere on
the application's classpath:

https://docs.oracle.com/javase/8/docs/api/java/util/ServiceLoader.html
ServiceLoader (Java Platform SE 8 ) - Oracle Help 
Center
docs.oracle.com
A simple service-provider loading facility. A service is a well-known set of 
interfaces and (usually abstract) classes. A service provider is a specific ...

MG>*possible permissions error* on the maven user you are implementing
MG>System.getSecurityManager().checkPermission(new
 
RuntimePermission("fileTypeDetector"));
MG>what is the result of the above statement?
http://www.grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/8u40-b25/java/nio/file/spi/FileTypeDetector.java#FileTypeDetector
GC: FileTypeDetector - java.nio.file.spi.FileTypeDetector (.java) - GrepCode 
Class 
Source
www.grepcode.com
java.nio.file.spi.FileTypeDetector - A file type detector for probing a file to 
guess its file type




but I only see it searching on the system classpath during debugging.

My efforts are hampered by the use of nested arrays of Enumeration with
sun.misc.CompoundEnumeration. It's really convoluted and I haven't been able
to see where it fails.

What could I be doing wrong?





--
Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html
Maven - Maven - Users | Mailing List 
Archive
maven.40175.n5.nabble.com
This forum is an archive for the mailing list users@maven.apache.org (more 
options) Messages posted here will be sent to this mailing list.




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



Re: Is there a plugin that allows me to modify existing jar manifest?

2017-11-14 Thread Martin Gainty





From: Eric B <ebenza...@gmail.com>
Sent: Monday, November 13, 2017 8:53 PM
To: Maven Users List
Subject: Re: Is there a plugin that allows me to modify existing jar manifest?

Martin,

Thanks, but the jar-plugin only allows to build a jar from the current
project (and set appropriate Manifest entries).  I'm looking to modify an
existing jar.  I could use the dependency plugin to retrieve the jar, and
unpack it, then point the jar-plugin to the unpacked dependency and have it
repkg the dependency from the unpacked classes, but was hoping for
something a little less manual.  For multiple dependencies, I would need to
write a different execution config for the jar-plugin which becomes quite
bloatsome for my pom.  I was just hoping for a cleaner/easier approach.

I started looking at the shade plugin with a manifest transformer, but that
too becomes individual execution configs.

MG>in JIRA for maven-execution-plugin suggest   as a parameter

MG>the other way is to have some sort of XSLT transform from pom.xml which will 
sub in new id to transformed_pom.xml

sed -i "s/$id/$new_id/" pom.xml

<https://wiki.jenkins.io/display/JENKINS/Parameterized+Build>
Parameterized Build - Jenkins - Jenkins 
Wiki<https://wiki.jenkins.io/display/JENKINS/Parameterized+Build>
wiki.jenkins.io
Sometimes, it is useful/necessary to have your builds take several 
"parameters." Consider the following use case: You set up a test job on 
Jenkins, and it accepts a ...



Thanks,

Eric

On Mon, Nov 13, 2017 at 8:03 PM, Martin Gainty <mgai...@hotmail.com> wrote:

>
>
> 
> From: Eric B <ebenza...@gmail.com>
> Sent: Monday, November 13, 2017 5:51 PM
> To: Maven Users List
> Subject: Is there a plugin that allows me to modify existing jar manifest?
>
> I'm looking to modify an existing third-party JAR's Manifest file in my
> maven build.  Specifically, I have an Applet which has a dependency on
> these third party jars, and need to add some entries/permissions to the
> Manifest before I sign them for my Applet to use.
>
> I'm looking to add the following:
>
>all-permissions
> *
>
> * Library-Allowable-Codebase>
> true
> MyApp
>
> *
>
> MG>Eric...did you try  configuration parameter of
> maven-jar-plugin ?
> https://maven.apache.org/plugins/maven-jar-plugin/examples/
> manifest-customization.html
> Apache Maven JAR Plugin – Manifest customization<https://maven.ap
> ache.org/plugins/maven-jar-plugin/examples/manifest-customization.html>
> maven.apache.org
> The default contents of the manifest is described in the documentation for
> Maven Archiver. Starting with version 2.1, the maven-jar-plugin uses Maven
> Archiver 3.1.1 ...
>
> MG>https://maven.apache.org/shared/maven-archiver/index.html
> Apache Maven Archiver – Reference<https://maven.apache
> .org/shared/maven-archiver/index.html>
> maven.apache.org
> Apache Maven Archiver. The Maven Archiver is mainly used by plugins to
> handle packaging. The version numbers referenced in the Since column on
> this page are the ...
>
>
>
>
> I realize that these aren't particularly secure parameters, but right now
> I'm just trying to see what it will take to get this working.
>
> Is there a plugin that will allow me to modify an existing jar?  I'm using
> the dependency plugin to retrieve them from Maven, but once I have them
> locally, I'm not sure what to use to update the MANIFEST.  Is this
> something the assembly plugin can do easily?  I've looked at the assmbly
> descriptor reference, but don't see where/how it can be leveraged for this.
>
> Thanks,
>
> Eric
>


Re: Is there a plugin that allows me to modify existing jar manifest?

2017-11-13 Thread Martin Gainty



From: Eric B 
Sent: Monday, November 13, 2017 5:51 PM
To: Maven Users List
Subject: Is there a plugin that allows me to modify existing jar manifest?

I'm looking to modify an existing third-party JAR's Manifest file in my
maven build.  Specifically, I have an Applet which has a dependency on
these third party jars, and need to add some entries/permissions to the
Manifest before I sign them for my Applet to use.

I'm looking to add the following:

   all-permissions
*

*
true
MyApp

*

MG>Eric...did you try  configuration parameter of maven-jar-plugin ?
https://maven.apache.org/plugins/maven-jar-plugin/examples/manifest-customization.html
Apache Maven JAR Plugin – Manifest 
customization
maven.apache.org
The default contents of the manifest is described in the documentation for 
Maven Archiver. Starting with version 2.1, the maven-jar-plugin uses Maven 
Archiver 3.1.1 ...

MG>https://maven.apache.org/shared/maven-archiver/index.html
Apache Maven Archiver – 
Reference
maven.apache.org
Apache Maven Archiver. The Maven Archiver is mainly used by plugins to handle 
packaging. The version numbers referenced in the Since column on this page are 
the ...




I realize that these aren't particularly secure parameters, but right now
I'm just trying to see what it will take to get this working.

Is there a plugin that will allow me to modify an existing jar?  I'm using
the dependency plugin to retrieve them from Maven, but once I have them
locally, I'm not sure what to use to update the MANIFEST.  Is this
something the assembly plugin can do easily?  I've looked at the assmbly
descriptor reference, but don't see where/how it can be leveraged for this.

Thanks,

Eric


Re: org.openjdk.source.tree.Tree location

2017-10-03 Thread Martin Gainty
vielen danke Jörg!


Martin

__



From: Jörg Schaible <joerg.schai...@bpm-inspire.com>
Sent: Monday, October 2, 2017 5:11 AM
To: users@maven.apache.org
Subject: Re: org.openjdk.source.tree.Tree location

Hi Martin,

Am Sat, 30 Sep 2017 01:49:39 + schrieb Martin Gainty:

> guava contains import org.openjdk.source.tree.Tree
>
>
> any ideas where i can locate jar which contains Tree from openjdk?

http://search.maven.org/#search%7Cga%7C1%7Cfc%3A%
22org.openjdk.source.tree.Tree%22

Use class-based search on central to locate such artifacts.

Cheers,
Jörg


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



org.openjdk.source.tree.Tree location

2017-09-29 Thread Martin Gainty
guava contains import org.openjdk.source.tree.Tree


any ideas where i can locate jar which contains Tree from openjdk?


thx,

Martin
__



Re: dll hell

2017-08-29 Thread Martin Gainty



From: Robert Patrick <robert.patr...@oracle.com>
Sent: Tuesday, August 29, 2017 9:36 AM
To: Maven Users List
Subject: Re: dll hell

What exactly are you trying to do with this class?  This class appears to be an 
internal JDK implementation class related to the javax.imageio package.  I 
wrote a simple example yesterday with only JAVA_HOME defined and 
%JAVA_HOME%/bin in my path and the class loaded fine without me having to 
explicitly load the native library.  In fact, when I tried to load it 
explicitly, I got an error saying that the library had already been loaded...
MG>yes jpeg.dll seems to be loading properly as i dont get any of those messages

MG>my IIOMetadata metadata not being written into output jpeg by ImageWriter... 
the call is

MG>ImageWriter#write(javax.imageio.metadata.IIOMetadata, IIOImage, 
ImageWriteParam) MG>ImageWriter is public abstract class ImageWriter implements 
ImageTranscoder MG>i need a concrete class which extends ImageWriter which for 
jpeg type is com.sun.imageio.plugins.jpeg.JPEGImageWriter MG>so the good news 
is that jpeg.dll seems to found on the path or java.library.path and is loaded 
by JDK

MG>but native call 
com.sun.imageio.plugins.jpeg.JPEGImageWriter.initJPEGImageWriter()J
MG>produces UnsatisfiedLinkError MG>java -version
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

MG>im thinking of uninstalling and re-installing JDK to get fresh copy of 
JPEGImageWriter and fresh copy of jpeg.dll
MG>WDYT?


> On Aug 29, 2017, at 7:14 AM, Martin Gainty <mgai...@hotmail.com> wrote:
>
>
>
>
> 
> From: Robert Patrick <robert.patr...@oracle.com>
> Sent: Monday, August 28, 2017 5:34 PM
> To: Maven Users List
> Subject: RE: dll hell
>
> Since you mentioned DLLs in the subject, I assume this is Windows.
>
> Is the %JAVA_HOME%/jre/bin directory (where jpeg.dll lives) in the PATH?
>
> MG>%JAVA_HOME%/jre/bin is on the path and %JAVA_HOME%/jre/bin on 
> java.library.path
> MG>
>String mPath = 
> "C:\\Java\\JDK1.8\\jre\\bin";
>String langKey = "java.library.path" ;
>System.setProperty ( langKey, mPath );
> MG>verified by successful System.load("JDK1.8/jre/bin/jpeg.dll")
>
> MG>C:\MAVEN-~1\MA095B~1\APACHE~1>dir %JAVA_HOME%\jre\bin\jpeg.dll
> MG> Directory of C:\Java\jdk1.8\jre\bin
> MG>   05/03/2015  07:05 PM   185,768 jpeg.dll
>
> MG> /** Sets up per-writer native structure and returns a pointer to it. */
> MG>private native long initJPEGImageWriter();
>
> MG>which causes:
> MG>Caused by: java.lang.UnsatisfiedLinkError: 
> JPEGImageWriter.initJPEGImageWriter()J
>
> MG>openjdk suggests re-making the jpeg.dll with USE_SYSTEM_JPEG=true directive
> MG>https://urldefense.proofpoint.com/v2/url?u=https-3A__marc.info_-3Fl-3Dopenjdk-2Ddistro-2Dpkg-2Ddev-26m-3D136573001932634-26w-3D2=DwIFAw=RoP1YumCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10=Ql5uwmbofQMW0iErugdCnFgO-CBGr_pt_OzwdxJosG0=VajCl24eKyVkpuuL2_5eMx4D_cDqnCwFGIiTFU_bVtM=inOW5Sns-TKwPr9vvINfZaWS-csOsVFRCMhhjgQVwZ8=
>
> MG>i read somewhere that JNIEXPORT needs to be declared for each function in 
> the C dll for jpeg.dll
> MG>At present i dont know how to to reverse engineer jpeg.dll to add 
> JNIEXPORT signature for these functions
>
> MG>Which option do you suggest?
> MG>Thanks Patrick
> MG>Martin-
>
> -Original Message-
> From: Martin Gainty [mailto:mgai...@hotmail.com]
> Sent: Monday, August 28, 2017 4:25 PM
> To: users@maven.apache.org
> Subject: dll hell
>
> attempting to call native long initJPEGImageWriter(); in JPEGImageWriter 
> ..when i call initJPEGImageWriter i get:
>
>
> java.lang.UnsatisfiedLinkError: JPEGImageWriter.initJPEGImageWriter()
>
>
> ive read System.loadLibrary("jpeg") in static initialiser is "supposed to 
> load" jpeg library:
>
>
> static {
>java.security.AccessController.doPrivileged(
>new java.security.PrivilegedAction()
>{
>public Void run() {
> System.loadLibrary("jpeg");
>  } //end run
>  }); //end doPrivileged/PrivilegedAction } //end static
>
>
> is supposed to load library but
>
>
> when i call initJPEGImageWriter i get
>
>
> java.lang.UnsatisfiedLinkError: JPEGImageWriter.initJPEGImageWriter()
>
>
> advice appreciated
>
> Martin
> __
>
>
> -
> 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: dll hell

2017-08-29 Thread Martin Gainty




From: Robert Patrick <robert.patr...@oracle.com>
Sent: Monday, August 28, 2017 5:34 PM
To: Maven Users List
Subject: RE: dll hell

Since you mentioned DLLs in the subject, I assume this is Windows.

Is the %JAVA_HOME%/jre/bin directory (where jpeg.dll lives) in the PATH?

MG>%JAVA_HOME%/jre/bin is on the path and %JAVA_HOME%/jre/bin on 
java.library.path
MG>
String mPath = 
"C:\\Java\\JDK1.8\\jre\\bin";
String langKey = "java.library.path" ;
System.setProperty ( langKey, mPath );
MG>verified by successful System.load("JDK1.8/jre/bin/jpeg.dll")

MG>C:\MAVEN-~1\MA095B~1\APACHE~1>dir %JAVA_HOME%\jre\bin\jpeg.dll
MG> Directory of C:\Java\jdk1.8\jre\bin
MG>   05/03/2015  07:05 PM   185,768 jpeg.dll

MG> /** Sets up per-writer native structure and returns a pointer to it. */
MG>private native long initJPEGImageWriter();

MG>which causes:
MG>Caused by: java.lang.UnsatisfiedLinkError: 
JPEGImageWriter.initJPEGImageWriter()J

MG>openjdk suggests re-making the jpeg.dll with USE_SYSTEM_JPEG=true directive
MG>https://marc.info/?l=openjdk-distro-pkg-dev=136573001932634=2

MG>i read somewhere that JNIEXPORT needs to be declared for each function in 
the C dll for jpeg.dll
MG>At present i dont know how to to reverse engineer jpeg.dll to add JNIEXPORT 
signature for these functions

MG>Which option do you suggest?
MG>Thanks Patrick
MG>Martin-

-Original Message-
From: Martin Gainty [mailto:mgai...@hotmail.com]
Sent: Monday, August 28, 2017 4:25 PM
To: users@maven.apache.org
Subject: dll hell

attempting to call native long initJPEGImageWriter(); in JPEGImageWriter ..when 
i call initJPEGImageWriter i get:


java.lang.UnsatisfiedLinkError: JPEGImageWriter.initJPEGImageWriter()


ive read System.loadLibrary("jpeg") in static initialiser is "supposed to load" 
jpeg library:


static {
java.security.AccessController.doPrivileged(
new java.security.PrivilegedAction()
{
public Void run() {
System.loadLibrary("jpeg");
  } //end run
  }); //end doPrivileged/PrivilegedAction } //end static


is supposed to load library but


when i call initJPEGImageWriter i get


java.lang.UnsatisfiedLinkError: JPEGImageWriter.initJPEGImageWriter()


advice appreciated

Martin
__


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



dll hell

2017-08-28 Thread Martin Gainty
attempting to call native long initJPEGImageWriter(); in JPEGImageWriter ..when 
i call initJPEGImageWriter i get:


java.lang.UnsatisfiedLinkError: JPEGImageWriter.initJPEGImageWriter()


ive read System.loadLibrary("jpeg") in static initialiser is "supposed to load" 
jpeg library:


static {
java.security.AccessController.doPrivileged(
new java.security.PrivilegedAction()
{
public Void run() {
System.loadLibrary("jpeg");
  } //end run
  }); //end doPrivileged/PrivilegedAction
} //end static


is supposed to load library but


when i call initJPEGImageWriter i get


java.lang.UnsatisfiedLinkError: JPEGImageWriter.initJPEGImageWriter()


advice appreciated

Martin
__



Re: [ANN] JAX-WS Maven Plugin version 2.5 released

2017-07-24 Thread Martin Gainty




From: anders.g.ham...@gmail.com  on behalf of Anders 
Hammar 
Sent: Friday, July 21, 2017 2:33 AM
To: mojohaus-...@googlegroups.com; Maven Users List
Subject: [ANN] JAX-WS Maven Plugin version 2.5 released

Hi,

The Mojo team is pleased to announce the release of the JAX-WS Maven Plugin
version 2.5.

http://www.mojohaus.org/jaxws-maven-plugin/
JAX-WS Maven Plugin – JAX-WS Maven Plugin - 
MojoHaus
www.mojohaus.org
JAX-WS Maven Plugin. This plugin contains Maven adapter for JAX-WS's toolset. 
The original code was developed in the Codehaus Mojo project, then as of March 
2007, the ...




To get this update, simply specify the version in your project's plugin
configuration:

org.codehaus.mojo
jaxws-maven-plugin
2.5


Release Notes
https://github.com/mojohaus/jaxws-maven-plugin/issues?q=
[https://avatars1.githubusercontent.com/u/11403816?v=4=400]

mojohaus/jaxws-maven-plugin
github.com
Contribute to jaxws-maven-plugin development by creating an account on GitHub.



is%3Aclosed+milestone%3A2.5


Enjoy,
The Mojo team.

MG>is it possible to configure the generated JAX-WS service as a CXF endpoint 
(in order to deploy to Mule)?
MG>https://docs.mulesoft.com/mule-user-guide/v/3.7/building-web-services-with-cxf
Building Web Services with CXF // MuleSoft 
Documentation
docs.mulesoft.com
This page describes how to build a CXF web service and use it in Mule. Mule 
provides three ways to build a web service: The JAX-WS specification de...



/Anders

MG>Thanks Anders!


Re: Maven antrun failing in parallel builds but working fine in non-parallel builds

2017-06-14 Thread Martin Gainty
MG>see below



From: Debraj Manna 
Sent: Tuesday, June 13, 2017 8:34 AM
To: Maven Users List
Subject: Maven antrun failing in parallel builds but working fine in 
non-parallel builds

I am having a maven multi module project. A simplified pom.xml (under
full-build) looks like below:-

http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd;
 xmlns="http://maven.apache.org/POM/4.0.0;
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
4.0.0
pom
com.eros
full-build
0.001-SNAPSHOT
full-build


build-only

true


../../main



copy-only

true




maven-antrun-plugin
1.8


package

MG>add (maven.compile,maven.runtime,maven.test,maven.plugin) classpaths to ant 
(compile,runtime,test,plugin) classpaths e.g.

 
   














 


run









The simplified pom.xml inside main looks like below:-

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

com.eros
main
0.001-SNAPSHOT
pom
main

collector-framework




org.apache.maven.plugins
maven-enforcer-plugin
1.4


enforce-versions

enforce




[1.8,)
*** This project requires
JDK 1.8/J2SE 8 or later. ***







org.apache.maven.plugins
maven-compiler-plugin
3.1

1.8
1.8





Whenever I try to execute the above project with mvn clean install -T 4 the
collector-framework project gets skipped and the build fails with error

Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.8:run (default) on
project full-build: An Ant BuildException has occured: Warning: Could
not find file 
/Users/tuk/code/github/eros/main/collector-framework/collector/target/collector-0.001-SNAPSHOT.jar
to copy.
[ERROR] around Ant part .. @ 4:143
in /Users/tuk/code/github/eros/main/full-build/target/antrun/build-main.xml

Everything works fine if I just do mvn clean install. I think this is
happening because ant-run is running before the main module execution is
finished. Can someone let me know how can I make ant-run wait till main
module compilation is over in case of parallel builds?

   - Maven Version - 3.5.0


maven-3.2.4 location

2017-06-06 Thread Martin Gainty
All-


>mvn -version

Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T07:57:3
7-04:00)
Maven home: /maven/maven333
Java version: 1.8.0_40, vendor: Oracle Corporation
Java home: /Java/jdk1.8/jre


produces this failure:

Running org.apache.rat.mp.RatCheckMojoTest
Tests run: 4, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.2 sec <<< 
FAILURE! - in org.apache.rat.mp.RatCheckMojoTest
testIt1(org.apache.rat.mp.RatCheckMojoTest)  Time elapsed: 0.03 sec  <<< 
FAILURE!
junit.framework.AssertionFailedError: Maven 3.2.4 or better is required


the test says current-maven-version 3.3.3 is not > Maven 3.2.4


any idea where i can locate a distro for maven 3.2.4  to make this test succeed?


Thanks,
Martin


Re: Javadoc question

2017-06-05 Thread Martin Gainty
 
generating entirely empty html files. Th...



_

Cogitare extra arca archa



From:   Martin Gainty <mgai...@hotmail.com>
To: "users@maven.apache.org" <users@maven.apache.org>
Date:   06/04/2017 07:41 AM
Subject:Javadoc question



This email originated from outside of the company.  Please use discretion
if opening attachments or clicking on links.

i was running this thru maven-javadoc-plugin but saw
IllegalArgumentException

so I am now attempting to produce Javadoc here is command:


/woden/woden-dist/target/DISTRO~1/WODEN-~1.0M1>javadoc.exe -d
"/woden/WODEN-~3/target/DISTRO~1/WODEN-~1.0M1/html" -sourcepath
"/woden/WODEN-~3/target/DISTRO~1/WODEN-~1.0M1" org.apache.woden.xpointer
Loading source files for package org.apache.woden.xpointer...
Constructing Javadoc information...
Standard Doclet version 1.8.0_40
Building tree for all the packages and classes...
Generating /woden/WODEN-~3/target/DISTRO~1/WODEN-~1.0M1/html/org/apac
he/woden/xpointer/ElementPointerPart.html...
java.lang.IllegalArgumentException
at sun.net.www.ParseUtil.decode(Unknown Source)
at sun.misc.URLClassPath$FileLoader.(Unknown Source)
at sun.misc.URLClassPath$3.run(Unknown Source)
at sun.misc.URLClassPath$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getNextLoader(Unknown Source)
at sun.misc.URLClassPath.access$100(Unknown Source)
at sun.misc.URLClassPath$1.next(Unknown Source)
at sun.misc.URLClassPath$1.hasMoreElements(Unknown Source)
at java.net.URLClassLoader$3$1.run(Unknown Source)
at java.net.URLClassLoader$3$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader$3.next(Unknown Source)
at java.net.URLClassLoader$3.hasMoreElements(Unknown Source)
at sun.misc.CompoundEnumeration.next(Unknown Source)
at sun.misc.CompoundEnumeration.hasMoreElements(Unknown Source)
at java.util.ServiceLoader$LazyIterator.hasNextService(Unknown
Source)
at java.util.ServiceLoader$LazyIterator.hasNext(Unknown Source)
at java.util.ServiceLoader$1.hasNext(Unknown Source)
at javax.xml.parsers.FactoryFinder$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at javax.xml.parsers.FactoryFinder.findServiceProvider(Unknown
Source)
at javax.xml.parsers.FactoryFinder.find(Unknown Source)
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at
com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML
(LayoutParser.java:89)
at
com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(Cl
assBuilder.java:120)
at
com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(Html
Doclet.java:189)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFi
les(AbstractDoclet.java:192)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration
(AbstractDoclet.java:137)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractD
oclet.java:82)
at
com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:8
0)
at com.sun.tools.doclets.standard.Standard.start(Standard.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:310)
at
com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:189)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:366)
at com.sun.tools.javadoc.Start.begin(Start.java:219)
at com.sun.tools.javadoc.Start.begin(Start.java:205)
at com.sun.tools.javadoc.Main.execute(Main.java:64)
at com.sun.tools.javadoc.Main.main(Main.java:54)
javadoc: error - java.lang.IllegalArgumentException
1 error


if i had to guess i would say sourcepath is an invalid URL but the usage
for Javadoc doesnt say sourcepath is URL


i find no help with Javadoc/javadoc where "javadoc working examples" page
produce 404's

http://www.oracle.com/technetwork/java/javase/documentation/index-137483.html#findjavadoc
Javadoc FAQ - 
Oracle<http://www.oracle.com/technetwork/java/javase/documentation/index-137483.html#findjavadoc>
www.oracle.com
Javadoc Tool Home Page has links to all documentation and related information 
on the Javadoc tool, including proposed Javadoc tags. A2.





Javadoc FAQ - Oracle<
http://www.oracl

Javadoc question

2017-06-04 Thread Martin Gainty
i was running this thru maven-javadoc-plugin but saw IllegalArgumentException

so I am now attempting to produce Javadoc here is command:


/woden/woden-dist/target/DISTRO~1/WODEN-~1.0M1>javadoc.exe -d 
"/woden/WODEN-~3/target/DISTRO~1/WODEN-~1.0M1/html" -sourcepath 
"/woden/WODEN-~3/target/DISTRO~1/WODEN-~1.0M1" org.apache.woden.xpointer
Loading source files for package org.apache.woden.xpointer...
Constructing Javadoc information...
Standard Doclet version 1.8.0_40
Building tree for all the packages and classes...
Generating /woden/WODEN-~3/target/DISTRO~1/WODEN-~1.0M1/html/org/apac
he/woden/xpointer/ElementPointerPart.html...
java.lang.IllegalArgumentException
at sun.net.www.ParseUtil.decode(Unknown Source)
at sun.misc.URLClassPath$FileLoader.(Unknown Source)
at sun.misc.URLClassPath$3.run(Unknown Source)
at sun.misc.URLClassPath$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getNextLoader(Unknown Source)
at sun.misc.URLClassPath.access$100(Unknown Source)
at sun.misc.URLClassPath$1.next(Unknown Source)
at sun.misc.URLClassPath$1.hasMoreElements(Unknown Source)
at java.net.URLClassLoader$3$1.run(Unknown Source)
at java.net.URLClassLoader$3$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader$3.next(Unknown Source)
at java.net.URLClassLoader$3.hasMoreElements(Unknown Source)
at sun.misc.CompoundEnumeration.next(Unknown Source)
at sun.misc.CompoundEnumeration.hasMoreElements(Unknown Source)
at java.util.ServiceLoader$LazyIterator.hasNextService(Unknown Source)
at java.util.ServiceLoader$LazyIterator.hasNext(Unknown Source)
at java.util.ServiceLoader$1.hasNext(Unknown Source)
at javax.xml.parsers.FactoryFinder$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at javax.xml.parsers.FactoryFinder.findServiceProvider(Unknown Source)
at javax.xml.parsers.FactoryFinder.find(Unknown Source)
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML
(LayoutParser.java:89)
at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(Cl
assBuilder.java:120)
at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(Html
Doclet.java:189)
at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFi
les(AbstractDoclet.java:192)
at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration
(AbstractDoclet.java:137)
at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractD
oclet.java:82)
at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:8
0)
at com.sun.tools.doclets.standard.Standard.start(Standard.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:310)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:189)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:366)
at com.sun.tools.javadoc.Start.begin(Start.java:219)
at com.sun.tools.javadoc.Start.begin(Start.java:205)
at com.sun.tools.javadoc.Main.execute(Main.java:64)
at com.sun.tools.javadoc.Main.main(Main.java:54)
javadoc: error - java.lang.IllegalArgumentException
1 error


if i had to guess i would say sourcepath is an invalid URL but the usage for 
Javadoc doesnt say sourcepath is URL


i find no help with Javadoc/javadoc where "javadoc working examples" page 
produce 404's

http://www.oracle.com/technetwork/java/javase/documentation/index-137483.html#findjavadoc

Javadoc FAQ - 
Oracle
www.oracle.com
Javadoc Tool Home Page has links to all documentation and related information 
on the Javadoc tool, including proposed Javadoc tags. A2.


Any advice to solve this error?

Martin
__



Re: Executing Apache CXF with Maven

2017-06-03 Thread Martin Gainty
Rapinder


an you copy the source to github


as long as it builds a war one of us can deploy and take a look to see if the 
client will communicate successfully


Regards

Martin
__



From: Rupinder Singh 
Sent: Saturday, May 6, 2017 8:44 AM
To: Maven Users List
Subject: Re: Executing Apache CXF with Maven

Hi Stephen,
I took it there. From the initial response, I thought I should  bring it
here. I hope someone can look into it.

Rupinder
On 6 May 2017 18:06, "Stephen Connolly" 
wrote:

> This is really an issue for the CXF mailing lists.
>
> I suggest you take your question there.
>
> On Sat 6 May 2017 at 12:26, Rupinder Singh  wrote:
>
> > Hi,
> > Following the simple tutorial at
> > http://www.cse.unsw.edu.au/~cs9322/labs/lab01/  I have created project
Developing simple Web services with Apache CXF and 
Maven
www.cse.unsw.edu.au
Developing simple Web services with Apache CXF and Maven Introduction. In this 
lab exercise you will develop a simple Web service using Apache CXF and Maven.



> > named HelloWorldCXF in my CXF working directory cxfwrk using maven. Then
> ,
> > I built it with mvn clean install. I copied the generated
> > war HelloWorldCXF-1.0-SNAPSHOT.war to webapps folder
> > of apache-tomcat-8.5.14. And re-started Tomcat. The soap service is
> > available at http://localhost:8080/HelloWorldCXF-1.0-SNAPSHOT. Finally,
> I
> > 'm trying to test it with client available in the project using maven,
> from
> > the root of the project. I'm seeing build failure as in the two outputs
> > attached. The class that it refers to as not found is very much there.
> >
> > Can anybody look into this?
> >
> > Rupinder
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
>
> --
> Sent from my phone
>


Re: Running integration tests against a signed jar

2017-05-30 Thread Martin Gainty



From: Gary Gregory 
Sent: Monday, May 29, 2017 5:01 PM
To: Maven Users List
Subject: Running integration tests against a signed jar

Hi All:

I have a POM that builds a signed jar, so far so good. Unit tests run, no
problem.

When integration tests run through fail-safe, the build fails all ITs with:

java.lang.ExceptionInInitializerError
Caused by: java.lang.SecurityException: class "com.example.MyClass"'s
signer information does not match signer information of other classes in
the same package

MG>you are running a jar with a bad signature
MG>you are running a jar with no signature
MG>to confirm
MG>for every jar in your runtime classpath
MG>BEGIN:
MG>for each jar expand next runtime jar
MG>edit /META-INF/MANIFEST.MF of current jar
MG>the signature would look something like
MG>net/sf/jasperreports/engine/util/xml/JaxenXPathExecuterFactory.class 
SHA-256-Digest: q3B5wW+hLX/+lP2+L0/6wRVXRHq1mISBo1dkixT6Vxc=
MG>save the first signature to outside file buffer
MG>compare  entryFromMANIFEST.MF to first-signature
MG>if not equal or non-existent resign current jar with algorithm from first 
signed jar
MG>goto BEGIN

As I understand it, failsafe runs the classes in test-classes against the
built JAR, and since my ITs are in the same package as the code tested, I
get the signing error above.

What is the Maven-way to get this to work?

Thank you,
Gary

--
Java Persistence with Hibernate, Second Edition



JUnit in Action, Second Edition

JUnit in Action, Second Edition: Petar Tahchiev, Felipe Leme, Vincent Massol, 
Gary Gregory: 9781935182023: Amazon.com: 
Books
www.amazon.com
JUnit in Action, Second Edition [Petar Tahchiev, Felipe Leme, Vincent Massol, 
Gary Gregory] on Amazon.com. *FREE* shipping on qualifying offers.
When JUnit was first introduced a decade ago by Kent Beck and Erich Gamma, the 
Agile movement was in its infancy





Spring Batch in Action

Spring Batch in Action: Arnaud Cogoluegnes, Thierry Templier, Gary Gregory, 
Olivier Bazoud: 9781935182955: Amazon.com: 
Books
www.amazon.com
Spring Batch in Action [Arnaud Cogoluegnes, Thierry Templier, Gary Gregory, 
Olivier Bazoud] on Amazon.com. *FREE* shipping on qualifying offers.
Summary Spring Batch in Action is an in-depth guide to writing batch 
applications using Spring Batch. Written for developers who have basic 
knowledge of Java and the Spring lightweight container




Blog: http://garygregory.wordpress.com
[https://s0.wp.com/i/blank.jpg]

Gary Gregory
garygregory.wordpress.com
Software construction, the web, and other techs





Re: Executing Apache CXF with Maven

2017-05-07 Thread Martin Gainty
Rupi


i followed the steps exactly and could not get web.xml to be produced for webapp

ping dan kulp

https://github.com/apache/cxf/tree/master/maven-plugins/archetypes/cxf-jaxws-javafirst


please keep us apprised of solution


Good Luck!

Martin
__



From: Stephen Connolly 
Sent: Saturday, May 6, 2017 5:49 PM
To: Maven Users List
Subject: Re: Executing Apache CXF with Maven

Sounds like the archetype is incorrect. You should ask whoever authored the
archetype (looks like CXF) to fix it

On Sat 6 May 2017 at 16:18, Rupinder Singh  wrote:

> Hi Stephen,
>
> Somehow mvn archetype:generate -Dfilter=org.apache.cxf.archetype:   did not
> generate the project properly. So I downloaded the CXF distribution, as
> suggested to me earlier in CXF mailing list, and used the same projects in
> its samples folder and  repeated the remaining steps. They work.
>
> Thanks.
>
> Rupinder
>
> On Sat, May 6, 2017 at 6:14 PM, Rupinder Singh  wrote:
>
> > Hi Stephen,
> > I took it there. From the initial response, I thought I should  bring it
> > here. I hope someone can look into it.
> >
> > Rupinder
> > On 6 May 2017 18:06, "Stephen Connolly"  >
> > wrote:
> >
> >> This is really an issue for the CXF mailing lists.
> >>
> >> I suggest you take your question there.
> >>
> >> On Sat 6 May 2017 at 12:26, Rupinder Singh  wrote:
> >>
> >> > Hi,
> >> > Following the simple tutorial at
> >> > http://www.cse.unsw.edu.au/~cs9322/labs/lab01/  I have created
> project
> >> > named HelloWorldCXF in my CXF working directory cxfwrk using maven.
> >> Then ,
> >> > I built it with mvn clean install. I copied the generated
> >> > war HelloWorldCXF-1.0-SNAPSHOT.war to webapps folder
> >> > of apache-tomcat-8.5.14. And re-started Tomcat. The soap service is
> >> > available at http://localhost:8080/HelloWorldCXF-1.0-SNAPSHOT.
> >> Finally, I
> >> > 'm trying to test it with client available in the project using maven,
> >> from
> >> > the root of the project. I'm seeing build failure as in the two
> outputs
> >> > attached. The class that it refers to as not found is very much there.
> >> >
> >> > Can anybody look into this?
> >> >
> >> > Rupinder
> >> >
> >> > -
> >> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> > For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >> --
> >> Sent from my phone
> >>
> >
>
--
Sent from my phone


Re: Intermittent java.lang.NoClassDefFoundError: org/junit/runner/notification/RunNotifier

2017-05-05 Thread Martin Gainty



From: Dan Tran 
Sent: Friday, May 5, 2017 3:51 AM
To: Maven Users List
Subject: Intermittent java.lang.NoClassDefFoundError: 
org/junit/runner/notification/RunNotifier

Hi

Lately, my build randomly fails with

  java.lang.NoClassDefFoundError: org/junit/runner/notification/RunNotifier
 at surefire


My environment consists of

  * 200+ modules  running with --builder smart  -T 4
  * surefire 2.19.1 and 2.20, maven 3.3.9 and 3.5
  * Build runs on Sles12SP2 with OpenJDK8

Stack Overflow has a similar issue back in 2014

MG>assuming you are not using Hamcrest following surefire doc i assume 
declaring junit-dep as dependency to maven-surefire-plugin will solve

  
  
junit
junit-dep

 test
  

MG>http://maven.apache.org/surefire/maven-surefire-plugin/examples/junit.html

Maven Surefire Plugin – Using 
JUnit
maven.apache.org
This is the only step that is required to get started - you can now create 
tests in your test source directory (e.g., src/test/java). Surefire supports 
three ...

MG>once junit added as dependency supposedly surefire test classloader will now 
see junit classes (including org/junit/runner/notification/RunNotifier)
MG>does this help?


Any suggestion helping to trouble shoot this issue is greatly appreciated

Thanks

-Dan


Re: vcmcvsssh.jar

2017-03-06 Thread Martin Gainty
a bit suprised when i meet "planned obsoloence"


i commented out the code  and all is well


Martin
__




From: Benson Margulies <bimargul...@gmail.com>
Sent: Monday, March 6, 2017 12:00 AM
To: Maven Users List
Subject: Re: vcmcvsssh.jar

On Sun, Mar 5, 2017 at 1:35 PM, Martin Gainty <mgai...@hotmail.com> wrote:
> can you suggest a developer list that is responsible for maintaining eclipse 
> 2.0?

You are joking, right? Maintain? It's ancient and obsolete. It might
be archived somewhere.

>
>
> vielen danke her eckenfels
>
> Martin
> __
>
>
>
> 
> From: Bernd Eckenfels <e...@zusammenkunft.net>
> Sent: Sunday, March 5, 2017 3:24 PM
> To: users@maven.apache.org; Maven Users List
> Subject: Re: vcmcvsssh.jar
>
> Hello,
> I guess you better ask the Eclipse Team project. I would suspect you find the 
> libraries only in the historic Eclipse 2.0 archives.
>
> Gruss
> Bernd
> --
> http://bernd.eckenfels.net
>
>
>
>
> On Sun, Mar 5, 2017 at 7:45 PM +0100, "Martin Gainty" <mgai...@hotmail.com> 
> wrote:
>
>
>
>
>
>
>
>
>
>
> anyone know where i can acquire org.eclipse.vcm library?
>
> the eclipse vcm library is supposed to be available in vcmcvsssh.jar which i 
> cannot locate
>
>
> Thanks!
>
> Martin
> __
>
>
>
>
>
>
>

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



Re: vcmcvsssh.jar

2017-03-05 Thread Martin Gainty
can you suggest a developer list that is responsible for maintaining eclipse 
2.0?


vielen danke her eckenfels

Martin
__




From: Bernd Eckenfels <e...@zusammenkunft.net>
Sent: Sunday, March 5, 2017 3:24 PM
To: users@maven.apache.org; Maven Users List
Subject: Re: vcmcvsssh.jar

Hello,
I guess you better ask the Eclipse Team project. I would suspect you find the 
libraries only in the historic Eclipse 2.0 archives.

Gruss
Bernd
--
http://bernd.eckenfels.net




On Sun, Mar 5, 2017 at 7:45 PM +0100, "Martin Gainty" <mgai...@hotmail.com> 
wrote:










anyone know where i can acquire org.eclipse.vcm library?

the eclipse vcm library is supposed to be available in vcmcvsssh.jar which i 
cannot locate


Thanks!

Martin
__









vcmcvsssh.jar

2017-03-05 Thread Martin Gainty
anyone know where i can acquire org.eclipse.vcm library?

the eclipse vcm library is supposed to be available in vcmcvsssh.jar which i 
cannot locate


Thanks!

Martin
__




Re: maven-enforcer-plugin rules question

2017-01-18 Thread Martin Gainty
i found plugin that appears to address class-cycle issues found in class files


http://classycle.sourceforge.net/

Classycle<http://classycle.sourceforge.net/>
classycle.sourceforge.net
Home; Examples; Download; User Guide; API documentation; SourceForge project 
page. powered by : Classycle: Analysing Tools for Java Class and Package 
Dependencies


Using this exmaple:


public class ClassA
{
 public de.andrena.tools.nopackagecycles.ClassB classB=null; //detect this 
class cycle
}

public class ClassB extends ClassA
{
 public ClassA classA=null; //this is OK as it is Base Class
}



produces this xml output:



  
 
  
  



  
  



I'll need to factor in some xslt magic to find cycle but I think we have a 
delta detected by this plugin


thanks all,

Martin
__




From: Martin Gainty <mgai...@hotmail.com>
Sent: Tuesday, January 10, 2017 12:05 PM
To: Maven Users List
Subject: Re: maven-enforcer-plugin rules question


i couldnt get it this cycle failure:

Test set: de.andrena.tools.nopackagecycles.PackageCycleCollectorPerformanceTest
---
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.133 sec - in 
de.andrena.tools.nopackagecycles.PackageCycleCollectorPerformanceTest



package de.andrena.tools.nopackagecycles;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.empty;
import static org.hamcrest.Matchers.is;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import jdepend.framework.JavaPackage;
import org.junit.Before;
import org.junit.Test;
import de.andrena.tools.nopackagecycles.ClassB;

public class ClassB extends ClassA
{
 public ClassA classA=null; //OK
}



public class PackageCycleCollectorPerformanceTest {


//add one obvious cycle


public void findRealPackageCycle() throws Exception {
JavaPackage javaPackage =new JavaPackage("de.andrena.tools.nopackagecycles");
JavaClass javaClassA=new JavaClass("ClassA");
javaPackage.addClass(javaClassA);
JavaClass javaClassB=new JavaClass("ClassB");
javaPackage.addClass(javaClassB);
allPackages.add(javaPackage);
   List<Set> cycles = new 
PackageCycleCollector().collectCycles(allPackages);
assertThat(cycles, is(empty()));
}
...
}


package de.andrena.tools.nopackagecycles;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.empty;
import static org.hamcrest.Matchers.is;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import jdepend.framework.JavaPackage;
import org.junit.Before;
import org.junit.Test;
import de.andrena.tools.nopackagecycles.ClassB;
public class ClassA
{
 public de.andrena.tools.nopackagecycles.ClassB classB=null; //detect this 
cycle!
}


what am i doing wrong?


Thanks Curtis

Martin
__



From: ctrueden.w...@gmail.com <ctrueden.w...@gmail.com> on behalf of Curtis 
Rueden <ctrue...@wisc.edu>
Sent: Tuesday, January 10, 2017 11:02 AM
To: Maven Users List
Subject: Re: maven-enforcer-plugin rules question

Hi Martin,

A quick Google search revealed this:
https://github.com/andrena/no-package-cycles-enforcer-rule
[https://avatars2.githubusercontent.com/u/1824230?v=3=400]<https://github.com/andrena/no-package-cycles-enforcer-rule>

GitHub - andrena/no-package-cycles-enforcer-rule 
...<https://github.com/andrena/no-package-cycles-enforcer-rule>
github.com
no-package-cycles-enforcer-rule - Shamelessly copied and improved from 
http://stackoverflow.com/questions/3416547/maven-jdepend-fail-build-with-cycles




I haven't tried it personally. Though now that I know about it, I'm sorely
tempted-it would certainly improve the API design.

Regards,
Curtis

--
Curtis Rueden
LOCI software architect - http://loci.wisc.edu/software
ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden
[https://gravatar.com/avatar/63df759e2779af56fd050a968ff98d09]<http://imagej.net/User:Rueden>

User:Rueden - ImageJ<http://imagej.net/User:Rueden>
imagej.net
What is Curtis working on? Primary projects. Here is a summary of my current 
projects, in priority order. I try to keep this list up to date. The ImageJ2 
paper.





On Tue, Jan 10, 2017 at 9:34 AM, Martin Gainty <mgai...@hotmail.com> wrote:

> I need to detect package cycles such as what is seen here:
>
> class ClassA
>
> {
>
>  ClassB classB; //detect this package cycle!
>
> }
> class ClassB extends ClassA
>
> {
>
> }
>
>
> which maven-enforcer-plugin rule will allow me to detect package cycle?
>
>
> http://maven.

Re: maven-enforcer-plugin rules question

2017-01-11 Thread Martin Gainty
all:
 I need to catch a class cycle for example:

package fubar;

class classA

{

 classB classb; //i need to detect this cycle

}


package fubar;

class classB extends classA
{
 classA classa; //ok since child class can reach to base class

}


does maven-enforcer-plugin have a rule which will detect class cycle 
illustrated above?

Thanks!

Martin
__




From: ctrueden.w...@gmail.com <ctrueden.w...@gmail.com> on behalf of Curtis 
Rueden <ctrue...@wisc.edu>
Sent: Tuesday, January 10, 2017 12:13 PM
To: Maven Users List
Subject: Re: maven-enforcer-plugin rules question

Hi Martin,

I do not see how your example constitutes a "package cycle"? Both ClassA
and ClassB belong to the same package.

Put ClassA or ClassB into a different package, and see if the rule
complains.

Regards,
Curtis

--
Curtis Rueden
LOCI software architect - http://loci.wisc.edu/software
ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden


On Tue, Jan 10, 2017 at 11:05 AM, Martin Gainty <mgai...@hotmail.com> wrote:

> i couldnt get it this cycle failure:
>
> Test set: de.andrena.tools.nopackagecycles.PackageCycleCollectorPerforman
> ceTest
> 
> ---
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.133 sec
> - in de.andrena.tools.nopackagecycles.PackageCycleCollectorPerformanceTest
>
>
>
> package de.andrena.tools.nopackagecycles;
> import static org.hamcrest.MatcherAssert.assertThat;
> import static org.hamcrest.Matchers.empty;
> import static org.hamcrest.Matchers.is;
> import java.util.ArrayList;
> import java.util.Collections;
> import java.util.HashSet;
> import java.util.List;
> import java.util.Set;
> import jdepend.framework.JavaPackage;
> import org.junit.Before;
> import org.junit.Test;
> import de.andrena.tools.nopackagecycles.ClassB;
>
> public class ClassB extends ClassA
> {
>  public ClassA classA=null; //OK
> }
>
>
>
> public class PackageCycleCollectorPerformanceTest {
>
>
> //add one obvious cycle
>
>
> public void findRealPackageCycle() throws Exception {
> JavaPackage javaPackage =new JavaPackage("de.andrena.tools.
> nopackagecycles");
> JavaClass javaClassA=new JavaClass("ClassA");
> javaPackage.addClass(javaClassA);
> JavaClass javaClassB=new JavaClass("ClassB");
> javaPackage.addClass(javaClassB);
> allPackages.add(javaPackage);
>List<Set> cycles = new PackageCycleCollector().
> collectCycles(allPackages);
> assertThat(cycles, is(empty()));
> }
> ...
> }
>
>
> package de.andrena.tools.nopackagecycles;
> import static org.hamcrest.MatcherAssert.assertThat;
> import static org.hamcrest.Matchers.empty;
> import static org.hamcrest.Matchers.is;
> import java.util.ArrayList;
> import java.util.Collections;
> import java.util.HashSet;
> import java.util.List;
> import java.util.Set;
> import jdepend.framework.JavaPackage;
> import org.junit.Before;
> import org.junit.Test;
> import de.andrena.tools.nopackagecycles.ClassB;
> public class ClassA
> {
>  public de.andrena.tools.nopackagecycles.ClassB classB=null; //detect
> this cycle!
> }
>
>
> what am i doing wrong?
>
>
> Thanks Curtis
>
> Martin
> __
>
>
> 
> From: ctrueden.w...@gmail.com <ctrueden.w...@gmail.com> on behalf of
> Curtis Rueden <ctrue...@wisc.edu>
> Sent: Tuesday, January 10, 2017 11:02 AM
> To: Maven Users List
> Subject: Re: maven-enforcer-plugin rules question
>
> Hi Martin,
>
> A quick Google search revealed this:
> https://github.com/andrena/no-package-cycles-enforcer-rule
> [https://avatars2.githubusercontent.com/u/1824230?v=3=400]<https://
> github.com/andrena/no-package-cycles-enforcer-rule>
>
> GitHub - andrena/no-package-cycles-enforcer-rule ...<https://github.com/
> andrena/no-package-cycles-enforcer-rule>
> github.com
> no-package-cycles-enforcer-rule - Shamelessly copied and improved from
> http://stackoverflow.com/questions/3416547/maven-
> jdepend-fail-build-with-cycles
>
>
>
>
> I haven't tried it personally. Though now that I know about it, I'm sorely
> tempted-it would certainly improve the API design.
>
> Regards,
> Curtis
>
> --
> Curtis Rueden
> LOCI software architect - http://loci.wisc.edu/software
> ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden
> [https://gravatar.com/avatar/63df759e2779af56fd050a968ff98d09]<
> http://imagej.net/User:Rueden>
>
> User:Rueden - ImageJ<http://imagej.net/User:Rueden&g

Re: maven-enforcer-plugin rules question

2017-01-10 Thread Martin Gainty
i couldnt get it this cycle failure:

Test set: de.andrena.tools.nopackagecycles.PackageCycleCollectorPerformanceTest
---
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.133 sec - in 
de.andrena.tools.nopackagecycles.PackageCycleCollectorPerformanceTest



package de.andrena.tools.nopackagecycles;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.empty;
import static org.hamcrest.Matchers.is;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import jdepend.framework.JavaPackage;
import org.junit.Before;
import org.junit.Test;
import de.andrena.tools.nopackagecycles.ClassB;

public class ClassB extends ClassA
{
 public ClassA classA=null; //OK
}



public class PackageCycleCollectorPerformanceTest {


//add one obvious cycle


public void findRealPackageCycle() throws Exception {
JavaPackage javaPackage =new JavaPackage("de.andrena.tools.nopackagecycles");
JavaClass javaClassA=new JavaClass("ClassA");
javaPackage.addClass(javaClassA);
JavaClass javaClassB=new JavaClass("ClassB");
javaPackage.addClass(javaClassB);
allPackages.add(javaPackage);
   List<Set> cycles = new 
PackageCycleCollector().collectCycles(allPackages);
assertThat(cycles, is(empty()));
}
...
}


package de.andrena.tools.nopackagecycles;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.empty;
import static org.hamcrest.Matchers.is;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import jdepend.framework.JavaPackage;
import org.junit.Before;
import org.junit.Test;
import de.andrena.tools.nopackagecycles.ClassB;
public class ClassA
{
 public de.andrena.tools.nopackagecycles.ClassB classB=null; //detect this 
cycle!
}


what am i doing wrong?


Thanks Curtis

Martin
__



From: ctrueden.w...@gmail.com <ctrueden.w...@gmail.com> on behalf of Curtis 
Rueden <ctrue...@wisc.edu>
Sent: Tuesday, January 10, 2017 11:02 AM
To: Maven Users List
Subject: Re: maven-enforcer-plugin rules question

Hi Martin,

A quick Google search revealed this:
https://github.com/andrena/no-package-cycles-enforcer-rule
[https://avatars2.githubusercontent.com/u/1824230?v=3=400]<https://github.com/andrena/no-package-cycles-enforcer-rule>

GitHub - andrena/no-package-cycles-enforcer-rule 
...<https://github.com/andrena/no-package-cycles-enforcer-rule>
github.com
no-package-cycles-enforcer-rule - Shamelessly copied and improved from 
http://stackoverflow.com/questions/3416547/maven-jdepend-fail-build-with-cycles




I haven't tried it personally. Though now that I know about it, I'm sorely
tempted-it would certainly improve the API design.

Regards,
Curtis

--
Curtis Rueden
LOCI software architect - http://loci.wisc.edu/software
ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden
[https://gravatar.com/avatar/63df759e2779af56fd050a968ff98d09]<http://imagej.net/User:Rueden>

User:Rueden - ImageJ<http://imagej.net/User:Rueden>
imagej.net
What is Curtis working on? Primary projects. Here is a summary of my current 
projects, in priority order. I try to keep this list up to date. The ImageJ2 
paper.





On Tue, Jan 10, 2017 at 9:34 AM, Martin Gainty <mgai...@hotmail.com> wrote:

> I need to detect package cycles such as what is seen here:
>
> class ClassA
>
> {
>
>  ClassB classB; //detect this package cycle!
>
> }
> class ClassB extends ClassA
>
> {
>
> }
>
>
> which maven-enforcer-plugin rule will allow me to detect package cycle?
>
>
> http://maven.apache.org/enforcer/enforcer-rules/index.html
Apache Maven Enforcer Rules - Standard 
Rules<http://maven.apache.org/enforcer/enforcer-rules/index.html>
maven.apache.org
Standard Rules. The following standard rules ship along with the enforcer 
plugin: alwaysFail - Always fail... used to test plugin configuration. 
alwaysPass - Always ...



>
> Apache Maven Enforcer Rules - Standard Rules<http://maven.apache.org/
> enforcer/enforcer-rules/index.html>
> maven.apache.org
> Standard Rules. The following standard rules ship along with the enforcer
> plugin: alwaysFail - Always fail... used to test plugin configuration.
> alwaysPass - Always ...
>
>
>
>
> Thanks!
>
> Martin
> __
>
>


maven-enforcer-plugin rules question

2017-01-10 Thread Martin Gainty
I need to detect package cycles such as what is seen here:

class ClassA

{

 ClassB classB; //detect this package cycle!

}
class ClassB extends ClassA

{

}


which maven-enforcer-plugin rule will allow me to detect package cycle?


http://maven.apache.org/enforcer/enforcer-rules/index.html

Apache Maven Enforcer Rules - Standard 
Rules
maven.apache.org
Standard Rules. The following standard rules ship along with the enforcer 
plugin: alwaysFail - Always fail... used to test plugin configuration. 
alwaysPass - Always ...




Thanks!

Martin
__



Strange surefire anomaly (and Happy New Year)

2016-12-31 Thread Martin Gainty
when I run surefire i see this error:

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.13:test (default-test) on 
project axis2-integration: Execution default-test of goal 
org.apache.maven.plugins:maven-surefire-plugin:2.13:test failed: There was an 
error in the forked process

[ERROR] java.lang.NoClassDefFoundError: 
modules/org/custommonkey/xmlunit/NodeTest (wrong name: 
org/custommonkey/xmlunit/NodeTest)

org/custommonkey/xmlunit/NodeTest is included by maven-surefire-plugin xmlunit 
dependency:


   xmlunit
   xmlunit
   1.6


investigating surefire8563057772792581832tmp.txt in target/surefire i see:

#surefire
#Fri Dec 30 19:19:29 EST 2016



tc.0=modules.org.custommonkey.xmlunit.NodeTest

does anyone know which surefire entity references 
modules.org.custommonkey.xmlunit.NodeTest instead of 
org.custommonkey.xmlunit.NodeTest ?


BTW: happy 2017

Martin
__



RE: Sister module dependency and artifact copy

2016-10-21 Thread Martin Gainty



> From: jpye...@pdinc.us
> To: users@maven.apache.org
> Subject: Sister module dependency and artifact copy
> Date: Fri, 21 Oct 2016 10:19:26 -0400
> 
> I am converting a legacy code base to a maven build and the packaged artifact 
> of "module-a" is part of the "source" of "module-b".
> 
> I thought to use the maven-dependency-plugin:copy and list module-a's 
> artifact, but this fails if the lifecycle did not reach the install phase, 
> even though it did reach the package phase.
> 
> What is the most maven way to copy ../moudule-a/target/module-a-1234.jar to 
> src/lib/generated/legacy-named.jar ?
> 
> Googling has led me to 
> com.coderplus.maven.plugins:copy-rename-maven-plugin:1.0:copy , but I feel 
> maven-assembly-plugin likely performs the required tasks. I have not, yet, 
> been able to grok the maven-assembly-plugin configuration.
> 
> [I am looking for a more elegant solution than using the exec or antrun 
> plugins].
> 
> v/r,
> 
> Jason Pyeron
MG>Hi Jason ..for copying resources i will implement copy-resources goal from 
maven-resources-plugin
MG>https://maven.apache.org/plugins/maven-resources-plugin/copy-resources-mojo.html
MG>does this address your requirement?
> 
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> -   -
> - Jason Pyeron  PD Inc. http://www.pdinc.us -
> - Principal Consultant  10 West 24th Street #100-
> - +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
> -   -
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
  

RE: Use cache Squid proxy with maven

2016-10-06 Thread Martin Gainty


> Subject: Re: Use cache Squid proxy with maven
> From: manf...@simpligility.com
> To: users@maven.apache.org
> Date: Thu, 6 Oct 2016 20:11:52 +0200
> 
> I would suggest to use a proper repository manager as a caching proxy 
> instead. 
> 
> There are over 110.000 installations of Sonatype Nexus Repository Manager 
> doing exactly that and its free. 
> 
> Get version 2.14 from https://www.sonatype.com/download-oss-sonatype
> 
> It will save you a lot of hazzle trying to get squid to do what you want and 
> provide a number of other benefits as well.
> 
> Manfred
> MG>i agree.. this will work as long as your requirement is not multicast

> Olivier Haegi wrote on 2016-10-06 08:42:
> 
> > Hello,
> > 
> > I have a squid proxy and i want than maven used it. But squid cache is
> > never used.
> > 
> > I saw than header request send by maven contain : cache-control : max-age=0
> > I think it is the problem.
> > 
> > It seems to me than the maven documentation said  it is the default
> > configuration.
> > 
> > I tryed to configure setting.xml maven file but i never change
> > cache-control setting
> > (I followed this documentation :  http://maven.apache.org/
> > guides/mini/guide-http-settings.html#Taking_Control_of_Your_HTTP_Headers).
> > 
> > So, i search  some help to configure header send by maven.
> > 
> > Thank you
> > 
> > -- 
> > Olivier Haegi
> > 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
  

RE: Mojos that instrument classes

2016-09-15 Thread Martin Gainty
you can manually bind btrace instrumentation to 'test-compile'  
specified within exec-maven-plugin e.g.
org.codehaus.mojo
exec-maven-plugin
1.1.1
test-compile  
  exec  
  
${java.home}/bin/java
-cp 
   
com.sun.btrace.compiler.Compiler   
 -d
${basedir}/target/classes/
${basedir}/src/main/resources/scripts/TraceScript.java 

   
perhaps it is best if we can see how you are currently binding btrace 
instrumentation ?
Martin 
__ 



> Subject: Re: Mojos that instrument classes
> To: users@maven.apache.org
> From: offbynull-ma...@offbynull.com
> Date: Thu, 15 Sep 2016 08:33:11 -0700
> 
> This is what I'm using right now, but I've found that my instrumentation 
> mojo won't run if someone does "mvn test" or "mvn test-compile". The 
> user has to explicitly ask maven to run it. For example, "mvn 
> test-compile coroutines:test-instrument".
> 
> Is there a way to automatically get my mojo to run whenever test or 
> test-compile is run?
> 
> On 9/15/2016 2:39 AM, Olivier Lamy wrote:
> > Hi
> > Process-classes sounds a good place in the lifecycle for this purpose
> >
> > HTH
> > Olivier
> >
> > On Thursday, 15 September 2016, offbynull-maven <
> > offbynull-ma...@offbynull.com> wrote:
> >
> >> What should the defaultPhase be for a Maven plugin that instruments
> >> classes? Should it be PROCESS_CLASSES / PROCESS_TEST_CLASSES, or should it
> >> be COMPILE / TEST_COMPILE?
> >>
> >>
> >> -
> >> 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: Mojos that instrument classes

2016-09-15 Thread Martin Gainty
this implementation of btrace instrumentation executes in process-resources 
phase


 
org.codehaus.mojo
exec-maven-plugin
1.1.1


process-resources

exec


${java.home}/bin/java

-cp


com.sun.btrace.compiler.Compiler
-d
${basedir}/target/classes/

${basedir}/src/main/resources/scripts/TraceScript.java






https://github.com/btraceio/btrace/blob/master/benchmark/pom.xml

does this answer your question?
Martin



> To: users@maven.apache.org
> From: offbynull-ma...@offbynull.com
> Subject: Mojos that instrument classes
> Date: Thu, 15 Sep 2016 01:45:22 -0700
>
> What should the defaultPhase be for a Maven plugin that instruments
> classes? Should it be PROCESS_CLASSES / PROCESS_TEST_CLASSES, or should
> it be COMPILE / TEST_COMPILE?
>
>
> -
> 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: Does Failsafe Require Jetty?

2016-08-29 Thread Martin Gainty


> From: stephen.alan.conno...@gmail.com
> Date: Mon, 29 Aug 2016 13:33:34 +0100
> Subject: Re: Does Failsafe Require Jetty?
> To: users@maven.apache.org
> 
> Failsafe does not require jetty. If your integration tests require that
> your application be deployed to a servlet container - such as jetty - and
> you do not want to have your tests manage the lifecycle of that container,
> then you will require failsafe so that you can have maven manage starting
> up and tearing down the container (and any additional required resources)
> around the test execution.
MG>yes my preference would be to manage the container lifeycle outside of 
failsafe
MG>i found *some* maven-jetty-plugin doc on 
sonatypeMG>http://books.sonatype.com/mvnex-book/reference/web-sect-configuring-jetty.htmlMG>archetype
 creation for maven-jetty-plugin to create index.jsp and web.xml is sparse..can 
you suggest better site?MG>Thanks
> 
> On 15 August 2016 at 14:35, Richard W. Adams  wrote:
> 
> > I've been taking a first look at documentation for the Failsafe plugin. It
> > looked straightforward until I got to the part that discussed Jetty.  I
> > found the Jetty section confusing, as it seems to imply that Jetty is
> > required to Failsafe. I hope I'm misunderstanding it, and that Failsafe
> > can be run *without* Jetty.
> >
> > Another point where I found the documentation somewhat lacking:  Under
> > what scenarios would I WANT to run Jetty & Failsafe together? Is this only
> > for server applications, or is there some other use case I'm overlooking?
> >
> >
> > **
> >
> > This email and any attachments may contain information that is
> > confidential and/or privileged for the sole use of the intended recipient.
> > Any use, review, disclosure, copying, distribution or reliance by others,
> > and any forwarding of this email or its contents, without the express
> > permission of the sender is strictly prohibited by law.  If you are not the
> > intended recipient, please contact the sender immediately, delete the
> > e-mail and destroy all copies.
> > **
> >
  

RE: Does Failsafe Require Jetty?

2016-08-15 Thread Martin Gainty



AFAIK: jetty plugin is implemented only for the war deployment in-container 
integration tests that jeff mentioned
There are maven-failsafe-plugin integration-test(s) such as multiple-summaries 
which do not use jetty e.g.
/failsafe-plugin/src/it/multiple-summaries/target/failsafe-reports/failsafe-summary-1.xml
  
1  0  0  
0  
does this conform to your understanding?
Martin  __ 

> To: users@maven.apache.org
> Subject: Does Failsafe Require Jetty?
> From: rwada...@up.com
> Date: Mon, 15 Aug 2016 08:35:41 -0500
> 
> I've been taking a first look at documentation for the Failsafe plugin. It 
> looked straightforward until I got to the part that discussed Jetty.  I 
> found the Jetty section confusing, as it seems to imply that Jetty is 
> required to Failsafe. I hope I'm misunderstanding it, and that Failsafe 
> can be run *without* Jetty.
> 
> Another point where I found the documentation somewhat lacking:  Under 
> what scenarios would I WANT to run Jetty & Failsafe together? Is this only 
> for server applications, or is there some other use case I'm overlooking?
> 
> 
> **
> 
> This email and any attachments may contain information that is confidential 
> and/or privileged for the sole use of the intended recipient.  Any use, 
> review, disclosure, copying, distribution or reliance by others, and any 
> forwarding of this email or its contents, without the express permission of 
> the sender is strictly prohibited by law.  If you are not the intended 
> recipient, please contact the sender immediately, delete the e-mail and 
> destroy all copies.
> **

  

RE: Artifactory pro abstract credentials in settings.xml

2016-08-09 Thread Martin Gainty
think of JFROG key/password as a 2 door authentication process(master)key will 
open the first doorsupply password generated by master key will open second door
the location of artifactory.security.master.key must be known a-priori by 
setting property e.g.artifactory.security.master.key=/artifactory.key
https://www.jfrog.com/confluence/display/RTF/Master+Key+Encryption#MasterKeyEncryption-EncryptingPasswords
since Jfrog has its own repository you can disable default central and snapshot 
repositories from 
mavenhttps://www.jfrog.com/confluence/display/RTF20/Configuring+Artifacts+Resolution
you can now have direct access to Artifactory Repo  by 
supplying:/artifactory/repo
*Cody's link was correct BTW*Martin
> From: swapnilbar...@gmail.com
> Date: Tue, 9 Aug 2016 13:51:40 -0400
> Subject: Re: Artifactory pro abstract credentials in settings.xml
> To: users@maven.apache.org
> 
> Thanks Cody. May be I haven't explained well. My problem is not an
> encryption. What I am looking for is the way where you can put password
> (could be in plain text) in settings.xml and leverage it in artifactory
> maven plugin. If you look at the documentation -
> https://www.jfrog.com/confluence/display/RTF/Maven+Artifactory+Plugin it
> needs password to put into   block. I want to use
> that from settings.xml (from   block).
> 
> I again appreciate the reply.
> 
> On Tue, Aug 9, 2016 at 1:37 PM,  wrote:
> 
> > I googled it for you.
> >
> > https://maven.apache.org/guides/mini/guide-encryption.html
> >
> >
> > Cody Fyler
> > CLT – APMS
> > G=Lending Grid Builds
> > (515) – 441 - 0814
> >
> > -Original Message-
> > From: swapnil barwat [mailto:swapnilbar...@gmail.com]
> > Sent: Tuesday, August 09, 2016 12:27 PM
> > To: users@maven.apache.org
> > Subject: Fwd: Artifactory pro abstract credentials in settings.xml
> >
> > Hi,
> >
> > I am using artifactory pro and integrating with Jenkins. We are also using
> > artifactory maven plugin to publish artifacts. For this plugin
> > configuration regarding artifactory (username, password, context url) needs
> > to go in project pom.xml. Which gives our security teams creeps (since it
> > has plain text password).
> > Before this we were using default maven deploy plugin which had all of
> > this information in settings.xml.
> > So my question is - is there a way we can leverage username/password
> > (server stanza) from settings.xml and pass it to artifactory maven plugin
> > to read from?
> >
> > Any help would be highly appreciated.
> >
> > --
> > regards..
> > Swapnil Barwat
> >
> >
> >
> > --
> > regards..
> > Swapnil Barwat
> >
> 
> 
> 
> -- 
> regards..
> Swapnil Barwat
  

maven-gpg-plugin

2016-07-29 Thread Martin Gainty
anyone know what happened to the Testcases for maven-gpg-plugin?
http://maven.apache.org/plugins/maven-gpg-plugin/source-repository.html
Thanks
Martin 
__ 

  

RE: New Releases - Android Maven Plugin and Android NDK Maven Plugin

2016-07-20 Thread Martin Gainty
Vielen Danke Manfred

Martin
> Subject: New Releases - Android Maven Plugin and Android NDK Maven Plugin
> From: manf...@mosabuam.com
> To: d...@maven.apache.org; users@maven.apache.org
> Date: Tue, 19 Jul 2016 09:01:45 +0200
> 
> Hi all, 
> 
> Just a quick heads up that we cut two new releases of the Android-related 
> Maven plugins. 
> 
> Android NDK Maven Plugin 1.1.2 - see 
> http://www.simpligility.com/2016/07/android-ndk-maven-plugin-1-1-2-released/
> Android Maven Plugin 4.4.3 - see 
> http://www.simpligility.com/2016/07/android-maven-plugin-4-4-3-released/
> 
> The release announcements as well as the changelogs and web sites of the two 
> project provide further detail as usual .
> 
> Enjoy
> 
> Manfred
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
  

RE: Surefire dead vm, how to debug?

2016-07-15 Thread Martin Gainty



> From: bimargul...@gmail.com
> Date: Fri, 15 Jul 2016 08:26:52 -0400
> Subject: Re: Surefire dead vm, how to debug?
> To: users@maven.apache.org
> 
> I've proved that this is another one of the new bugs in 19/19.1 that
> isn't in 18, and I've reported on those in detail before, so I've lost
> interest.
> MG> a CYA will force all of us to rollback to 18 

MG> it is unfortunate we dont have the necessary resources to vet new refactors 
before they are released
MG>in the meanwhile if you can file a JIRA with as much detail as possible so 
we can get this on someone's radar
MG>Thanks Benson
> On Mon, Jul 11, 2016 at 8:02 AM, Martin Gainty <mgai...@hotmail.com> wrote:
> > can you attach surefire.log from mvn test e.g.
> > mvn -X -e test | tee surefire.log
> >
> > ?
> > Martin
> > __
> >
> >
> >
> >> From: bimargul...@gmail.com
> >> Date: Sun, 10 Jul 2016 07:46:34 -0400
> >> Subject: Re: Surefire dead vm, how to debug?
> >> To: users@maven.apache.org
> >>
> >> Same failure with 2.19.1. No parallelism configured.
> >>
> >>  
> >> org.apache.maven.plugins
> >> maven-surefire-plugin
> >> 2.19.1
> >> 
> >> -Xmx8G -XX:+UseConcMarkSweepGC
> >> -Djava.io.tmpdir=${project.build.directory}
> >> 
> >> 
> >>
> >>
> >>
> >> On Sun, Jul 10, 2016 at 7:41 AM, Martin Gainty <mgai...@hotmail.com> wrote:
> >> >
> >> >
> >> >> From: bimargul...@gmail.com
> >> >> Date: Sun, 10 Jul 2016 07:34:53 -0400
> >> >> Subject: Surefire dead vm, how to debug?
> >> >> To: users@maven.apache.org
> >> >>
> >> >> My build stops with this message just after printing the surefire
> >> >> summary for the module in question, so none of my test cases called
> >> >> 'exit'. There are no hotspot dumps.
> >> >>
> >> >> What's the diagnostic process?
> >> > MG>possible parallel test execution config bug..can you share surefire 
> >> > configuration?
> >> > http://maven.apache.org/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html
> >> >>
> >> >> [ERROR] Failed to execute goal
> >> >> org.apache.maven.plugins:maven-surefire-plugin:2.19:test
> >> >> (default-test) on project relax-ore-core: Execution default-test of
> >> >> goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test failed:
> >> >> The forked VM terminated without properly saying goodbye. VM crash or
> >> >> System.exit called?
> >> >> [ERROR] Command was /bin/sh -c cd /Users/benson/x/relax-ore/core &&
> >> >> /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre/bin/java
> >> >> -Xmx8G -XX:+UseConcMarkSweepGC
> >> >> -Djava.io.tmpdir=/Users/benson/x/relax-ore/core/target -jar
> >> >> /Users/benson/x/relax-ore/core/target/surefire/surefirebooter3368801762081916190.jar
> >> >> /Users/benson/x/relax-ore/core/target/surefire/surefire3112822568238339351tmp
> >> >> /Users/benson/x/relax-ore/core/target/surefire/surefire_67539786626460885470tmp
> >> >>
> >> >> -
> >> >> 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: Surefire dead vm, how to debug?

2016-07-11 Thread Martin Gainty
can you attach surefire.log from mvn test e.g.
mvn -X -e test | tee surefire.log

?
Martin 
__ 



> From: bimargul...@gmail.com
> Date: Sun, 10 Jul 2016 07:46:34 -0400
> Subject: Re: Surefire dead vm, how to debug?
> To: users@maven.apache.org
> 
> Same failure with 2.19.1. No parallelism configured.
> 
>  
> org.apache.maven.plugins
> maven-surefire-plugin
> 2.19.1
> 
> -Xmx8G -XX:+UseConcMarkSweepGC
> -Djava.io.tmpdir=${project.build.directory}
> 
>     
> 
> 
> 
> On Sun, Jul 10, 2016 at 7:41 AM, Martin Gainty <mgai...@hotmail.com> wrote:
> >
> >
> >> From: bimargul...@gmail.com
> >> Date: Sun, 10 Jul 2016 07:34:53 -0400
> >> Subject: Surefire dead vm, how to debug?
> >> To: users@maven.apache.org
> >>
> >> My build stops with this message just after printing the surefire
> >> summary for the module in question, so none of my test cases called
> >> 'exit'. There are no hotspot dumps.
> >>
> >> What's the diagnostic process?
> > MG>possible parallel test execution config bug..can you share surefire 
> > configuration?
> > http://maven.apache.org/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html
> >>
> >> [ERROR] Failed to execute goal
> >> org.apache.maven.plugins:maven-surefire-plugin:2.19:test
> >> (default-test) on project relax-ore-core: Execution default-test of
> >> goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test failed:
> >> The forked VM terminated without properly saying goodbye. VM crash or
> >> System.exit called?
> >> [ERROR] Command was /bin/sh -c cd /Users/benson/x/relax-ore/core &&
> >> /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre/bin/java
> >> -Xmx8G -XX:+UseConcMarkSweepGC
> >> -Djava.io.tmpdir=/Users/benson/x/relax-ore/core/target -jar
> >> /Users/benson/x/relax-ore/core/target/surefire/surefirebooter3368801762081916190.jar
> >> /Users/benson/x/relax-ore/core/target/surefire/surefire3112822568238339351tmp
> >> /Users/benson/x/relax-ore/core/target/surefire/surefire_67539786626460885470tmp
> >>
> >> -
> >> 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: Surefire dead vm, how to debug?

2016-07-10 Thread Martin Gainty


> From: bimargul...@gmail.com
> Date: Sun, 10 Jul 2016 07:34:53 -0400
> Subject: Surefire dead vm, how to debug?
> To: users@maven.apache.org
> 
> My build stops with this message just after printing the surefire
> summary for the module in question, so none of my test cases called
> 'exit'. There are no hotspot dumps.
> 
> What's the diagnostic process?
MG>possible parallel test execution config bug..can you share surefire 
configuration?
http://maven.apache.org/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.19:test
> (default-test) on project relax-ore-core: Execution default-test of
> goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test failed:
> The forked VM terminated without properly saying goodbye. VM crash or
> System.exit called?
> [ERROR] Command was /bin/sh -c cd /Users/benson/x/relax-ore/core &&
> /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre/bin/java
> -Xmx8G -XX:+UseConcMarkSweepGC
> -Djava.io.tmpdir=/Users/benson/x/relax-ore/core/target -jar
> /Users/benson/x/relax-ore/core/target/surefire/surefirebooter3368801762081916190.jar
> /Users/benson/x/relax-ore/core/target/surefire/surefire3112822568238339351tmp
> /Users/benson/x/relax-ore/core/target/surefire/surefire_67539786626460885470tmp
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
  

ICCE Mitigation Strategy?

2016-06-22 Thread Martin Gainty
My Axis testcases were throwing ICCE

I discovered my Axis interfaces were being loaded by surefire 
IsolatedClassLoader loadClass and producing ICCE
org.codehaus.surefire.IsolatedClassLoader{ public synchronized Class loadClass( 
String className )throws ClassNotFoundException{

// interfaces throw ICCE
if(className.equalsIgnoreCase("org.apache.axiom.core.DeferringParentNode")==true)
 return null;  
if(className.equalsIgnoreCase("org.apache.axiom.soap.impl.intf.AxiomSOAPHeaderBlock")==true)
 return null;
this is a hack..what is the best surefire solution to mitigate ICCE when 
loading Interfaces?

Thanks!
Martin 
__ 

   
  

RE: Maven and Eclipse

2016-06-14 Thread Martin Gainty



> From: michael.ctr.taru...@faa.gov
> To: users@maven.apache.org
> Subject: RE: Maven and Eclipse
> Date: Tue, 14 Jun 2016 14:33:31 +
> 
> This is a partial update to this issue, which I am posting as requested by 
> Barrie Treloar.
> 
> I encountered this problem on a Windows install of Eclipse.  For the project 
> I am working on I also needed a Linux Eclipse environment.  So I asked our 
> Linux Sys Admin to install a fresh download of Eclipse Mars 2 in a Linux VM I 
> have dedicated to my project.
> 
> I created new projects in this environment as Maven projects.  A Maven 
> Dependencies entry was added to my project's Libraries tab for the Java Build 
> Path.  I then ported my source code from my Windows Eclipse environment to 
> this new Eclipse Linux environment and the related POM files.  I removed the 
> Maven Dependencies entry from the Java Build Path that was created when the 
> project was created.  I then deleted all the entries in my local 
> .m2/repositories directory because when I executed Maven -> Update 
> Project from Eclipse I wanted to make sure that both my local repository 
> and my Java Build Path were refreshed.  I then executed Maven -> Update 
> Project from Eclipse and unlike in my Windows environment where only the 
> local repo was refreshed not the Maven Dependencies in my Java Build Path, 
> both the Maven Dependencies in my Java Build Path and my local repo were 
> refreshed.
> 
> While the problem I was experiencing in my Windows environment where my 
> Eclipse was upgraded from Luna to Mars 2 without doing a fresh install 
> appears to be resolved by a fresh install on the Linux platform, I am not 
> problem free.  While the Maven Dependencies entry was added to the Libraries 
> tab for the Java Build Path and all the jar files specified in my POM were 
> referenced in the Maven Dependencies, these references are flagged as missing 
> from my local repo.  I am investigating this now.

MG>if you are not doing update (mvn -u phase)
MG>then local repository will contain hint to maven repository URL that 
contains artifact the contents will be NameOf.jar.lastUpdated
#NOTE: This is an internal implementation file, its format can be changed 
without prior notice.#Mon May 04 17:28:11 EDT 
2016http\://repo1.maven.org/maven2/.error=http\://repo1.maven.org/maven2/.lastUpdated=1430774891971

MG>NB: if there was an error the .error entry will be populated with something 
like:
http\://ws.zones.apache.org/repository2/.error=Could not transfer artifact 
bouncycastle\:bcprov-jdk13\:pom\:132 from/to apache-ws-snapshots2 
(http\://ws.zones.apache.org/repository2)\: Error transferring file\: 
ws.zones.apache.org
MG>.lastUpdated entry will be populated with zulu time of last update
MG>.remote.repositories file in that folder will contains entries for central 
repository location to acquire the artifact:

#NOTE: This is an Aether internal implementation file, its format can be 
changed without prior notice.#Tue Aug 18 09:14:32 EDT 
2015bcel-5.1.jar>central=https://repo.maven.apache.org/maven2bcel-5.1.pom>central=https://repo.maven.apache.org/maven2
MG>quick check on which repositories maven can seemvn 
dependency:list-repositorieshttp://stackoverflow.com/questions/4701532/force-maven-update

MG>IMHO :  i play safe by requesting the local artifact be downloaded to my 
local repository with update option e.g.MG> mvn -u
MG>installing m2e for your version of eclipse is necessary when attempting to 
configure eclipse BuildPath from maven pom.xml dependencies
http://download.eclipse.org/technology/m2e/releases/
> 
> I have not had the opportunity to try a fresh install in my Windows 
> environment.  As soon as I have some time to do this I will update the 
> mailing list again with those results as well.
> 
> I hope this explanation has been helpful.
MG>yes..this has been very helpful..thanks
> 
> Michael Tarullo
> Contractor (Engility Corp)
> Software Engineer
> FAA WJH Technical Center
> (609)485-5294
> 
> -Original Message-
> From: Barrie Treloar [mailto:baerr...@gmail.com] 
> Sent: Wednesday, June 08, 2016 7:33 PM
> To: Maven Users List
> Subject: Re: Maven and Eclipse
> 
> On 9 June 2016 at 01:00,  wrote:
> 
> > Thanks Curtis!
> >
> > That's exactly what I did.
> >
> > As soon as I get a chance, I'll try a fresh install of Mars 2 and see 
> > how it goes.  I usually do my Eclipse upgrades with fresh installs, 
> > this is the first time I tried to upgrade from a previous version.
> >
> > Mike
> 
> 
> And when you resolve the issue, can you post back your findings for search 
> engines to find.
> 
> Thanks.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
  

RE: Encrypted password on pry settings

2016-06-12 Thread Martin Gainty



> From: adrien.riv...@gmail.com
> Date: Sun, 12 Jun 2016 13:50:16 +0200Subject: Re: Encrypted password on pry 
> settings
> To: users@maven.apache.org
> 
> Then I would try to check the procedure to encrypt again, and pay attention
> to special characters ( xml and {} ). Some of those need to be escaped IIUC
> .
> 
> Official doc is here if this is not the one you followed:
> https://maven.apache.org/guides/mini/guide-encryption.html
>  , see the tips in particular.

MG>correct you will want to set authentical credentials in proxy settings 
either from $M2_HOME/conf/settings.xml or 
maven-proxy.propertieshttps://github.com/codehaus/maven-proxy/blob/master/webapp/maven-proxy.properties
> 
> Alternatively if your are connecting to a nexus, you can use
> https://books.sonatype.com/nexus-book/reference/usertoken.html
> This is generally a safer alternative to encrypted passords.
MG>cut first suggest double-checking authentication credentials are assigned 
properly in nexus proxy repository 
beforehandhttps://books.sonatype.com/nexus-book/reference/confignx-sect-manage-repo.html
> 
> 
> On Sun, Jun 12, 2016 at 10:54 AM, Pelzer, Sven WI/HZR-SIBDS <
> sven.pel...@schaeffler.com> wrote:
> 
> > Hi,
> >
> > yes without encrypted password is works.
> >
> > -Ursprüngliche Nachricht-
> > Von: Adrien Rivard [mailto:adrien.riv...@gmail.com]
> > Gesendet: Samstag, 11. Juni 2016 15:11
> > An: Maven Users List
> > Betreff: Re: Encrypted password on pry settings
> >
> > Does this work without the encrypted password ?
> >
> > On Thu, Jun 9, 2016 at 1:15 PM, Pelzer, Sven WI/HZR-SIBDS <
> > sven.pel...@schaeffler.com> wrote:
> >
> > > Hi,
> > >
> > > I have a problem with an encrypted password on the proxy settings.
> > >
> > > I set the master password and set the hashed password string in the
> > > password xml element of the proxy settings.
> > > But a can't connect to the proxy.
> > >
> > > Have any one an idea what the problem can be?
> > >
> > > King Regards
> > > Sven
> > >
> > >
> >
> >
> > --
> > Adrien Rivard
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> 
> 
> 
> -- 
> Adrien Rivard
  

maven-surefire and static-swamp

2016-05-30 Thread Martin Gainty
I was convinced maven-surefire-plugin classloader was mucked producing 
NoClassDefFoundError  configed maven-surefire-plugin

useSystemClassLoader=true and useManifestOnlyJar=false.NoClassDefFoundError 
displayed..no joy
falseNoClassDefFoundError 
displayed..still no joy

then i read this 
blog:http://javarevisited.blogspot.com/2011/06/noclassdeffounderror-exception-in.html
VM not initializing statics causes NCDFE ???

the original coder was obsessed with static singleton model
I ripped out all the statics and went with ctor and voila NoClassDefFoundError 
disappeared

environment:
Apache Maven 3.2.5
Java version: 1.8.0_40, vendor: Oracle CorporationJava home: /jdk1.8/jreDefault 
locale: en_US, platform encoding: Cp1252
why adding static methods or static variables to a class called from 
maven-surefire-plugin cause NoClassDefFoundError
?
Martin 

  

RE: Problem With Maven Compiler Plugin

2016-05-11 Thread Martin Gainty
Nota Bene: to detect missing dependencies i run dependency:tree and  bind to 
initialize phase before compilation
http://stackoverflow.com/questions/17978768/how-to-determine-which-maven-dependency-is-needing-a-missing-dependency
HTH!
Martin (decidedly left of CTR) Gainty 



> From: michael.ctr.taru...@faa.gov
> To: users@maven.apache.org
> Subject: RE: Problem With Maven Compiler Plugin
> Date: Wed, 11 May 2016 15:14:24 +
> 
> Thank you for the reply Mark.
> 
> This problem "fixed itself".  Just thought I'd explain here in the event 
> anyone else was having the same problem.
> 
> There were some dependencies I was missing in my POM.  They were libraries 
> needed by the app (I'm new to this app and it is not normally built with 
> Maven) and I had not included them in the POM or our repo yet.  But they were 
> not related to a plugin in any way.
> 
> When I added these dependencies to the POM and tried a compile from the 
> command line, the build worked.  Then with no changes to Eclipse I submitted 
> the compile using Run As. Maven build and it also worked fine.
> 
> So the error message about not being able to find tools.jar, and the fact 
> that it appeared to be looking for it in the wrong place, appears to be just 
> a distraction from the actual problem, in this case not including all the 
> dependencies.  I'm not sure why that would result in the error message I was 
> seeing, but at this stage, that's a moot point.
> 
> Mike
> 
> Michael Tarullo
> Contractor (Engility Corp)
> Software Engineer
> FAA WJH Technical Center
> (609)485-5294
> 
> -Original Message-
> From: Mark Prins [mailto:mc.pr...@gmail.com] 
> Sent: Tuesday, May 10, 2016 10:24 AM
> To: users@maven.apache.org
> Subject: Re: Problem With Maven Compiler Plugin
> 
> On 10-05-16 16:12, michael.ctr.taru...@faa.gov wrote:
> > When attempting to build with Maven from Eclipse I am getting the following 
> > error:
> >
> > [ERROR] Failed to execute goal 
> > org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile 
> > (default-compile) on project camel-activemq: Fatal error compiling: 
> > tools.jar not found: C:\Dev\Java\jre1.8.0_51\..\lib\tools.jar -> [Help 
> > 1]
> >
> > I'm confused about why the plugin is looking in the JRE for tools.jar, when 
> > this JAR exists in the JDK.
> >
> 
> I think the eclipse maven plugin uses the JVM that eclipse is running in, so 
> you need to specify either a specific JDK or run eclipse in a JDK VM (this is 
> configured in eclipse.ini if I recall correctly)
> 
> (or -not recommended- specify a specific compiler in your pom/compiler
> plugin)
> 
> -M
> 
> -
> 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: AW: Find the correct build order of a set of distinct butinterdependent projects

2016-03-25 Thread Martin Gainty
MG2>quick comment below

> Date: Fri, 25 Mar 2016 12:28:37 +0100
> From: christophe.thiebaud@dag.cloud
> To: users@maven.apache.org
> Subject: RE: AW: Find the correct build order of a set of distinct 
> butinterdependent projects
> 
> On 2016-03-22 22:24, Christophe Thiebaud wrote:
> 
> Hi all,
> 
> for those interested, I stumbled on a (natural) defect with the approach 
> "#2 "super" multi-module pom" (cf. 
> http://dag.cloud/docs/theproblem.html)
> 
> e.g.
> 
> let A and B be 2 projects that need ordering
> 
> let A be itself a multi-module project with sub-modules A1 and A2
> 
> dependencies are as follow :
> 
> A1 no dependency
> B depends on A1
> A2 depends on B
> A2 depends on A1 as well, this is not required for the sake of the 
> demonstration, but is the common real-life situation
> 
> ++
> | A  |
> |   ++   |
> |   | A1 <---++
> |   +--^-+   |^
> |  ^ |  +-^-+
> |  ^ |  | B |
> |  ^ |  +-^-+
> |   +--^--+  |^
> |   | A2  >--++
> |   +-+  |
> ++
> 
> "super" multi-module pom will validate fine, no cycle: A1, then B, then 
> A2
> 
> but a cycle exists between A and B projects. no ordering is possible
MG>B is a direct dependent of A1MG>B is *not* a direct dependent of AMG>A2 is a 
direct dependent of A1MG>A2 is also a direct dependent of BMG>so A2 is direct 
dependent of B where B is a direct dependent of A1?
MG>please post examples of of pom.xml for A, A1, (B) and A2 so we can follow 
your example:
> 
> +--+
> | A|
> |  <+
> |  |^
> |  |  +-^-+
> |  |  | B |
> |  |  +-^-+
> |  |^
> |  >+
> +--+
> 
> this defect is not a really a blocker, but some cycle detection logic 
> needs to be added somewhere in the global solution.
> 
> just FYI, thanks!
> Christophe
> 
> > On 2016-03-22 17:01, Martin Gainty wrote:
> > 
> > CT>quick answers prefixed by CT>
> > 
> >> MG>quick question prefixed by MG>
> >> 
> >>> Date: Tue, 22 Mar 2016 09:53:33 +0100
> >>> From: christophe.thiebaud@dag.cloud
> >>> To: users@maven.apache.org; d...@maven.apache.org
> >>> CC: e...@zusammenkunft.net
> >>> Subject: Re: AW: Find the correct build order of a set of distinct 
> >>> butinterdependent projects
> >>> 
> >>> (sorry for the resend)
> >>> 
> >>> Hi Bernd and Elliot,
> >>> 
> >>> thanks for the feedback. Happy to know from Elliot that "multi-module
> >>> pom generation" has been a viable solution for him. And I must
> >>> definitely have a look at how Jenkins Maven Jobs may fit in the
> >>> picture, as suggested by Bernd.
> >>> 
> >>> Hi maven developers,
> >>> 
> >>> I take the liberty to forward this thread to the developer list, in
> >>> the hope to get further insights from specialists.
> >>> 
> >>> quick summary is here : http://dag.cloud/docs/theproblem.html
> >>> 
> >>> Thanks!
> >>> Christophe
> >>> 
> >>> > On 2016-03-16 00:21, Bernd Eckenfels wrote:
> >>> >> Hello,
> >>> >>
> >>> >> It might not completely solve your problem (as it does not observe
> >>> >> versions) but with Jenkins Maven Jobs it builds dependent jobs
> >>> >> automatically.
> >>> >>
> >>> >> If you follow a release strategy it is however not something you need
> >>> >> in practice as you have to step through the dependencies to release
> >>> >> them anyway.
> >>> >>
> >>> >> And when your system matures and you start to refacture dependencies
> >>> >> they start to change over time.
> >>> >>
> >>> >> Maybe stuffing all in a graph database would help you (jqassist.org).
> >>> >>
> >>> >> Gruss
> >>> >> Bernd
> >>> >> --
> >>> >> http://bernd.eckenfels.net
> >>> >>
> >>> >> Von: Elliot Metsger
> >>> >> Gesendet: Dienstag, 15. März 2016 23:27
> >>> >> An: Maven Users List
> >>> >> Betreff: Re: Find the correct build order of a set of distinct
> >>> >> butinterdependent projects
> >>> >>
> >>> >> Hi Chri

RE: AW: Find the correct build order of a set of distinct butinterdependent projects

2016-03-22 Thread Martin Gainty
MG>quick question prefixed by MG>   

> Date: Tue, 22 Mar 2016 09:53:33 +0100
> From: christophe.thiebaud@dag.cloud
> To: users@maven.apache.org; d...@maven.apache.org
> CC: e...@zusammenkunft.net
> Subject: Re: AW: Find the correct build order of a set of distinct 
> butinterdependent projects
> 
> (sorry for the resend)
> 
> Hi Bernd and Elliot,
> 
> thanks for the feedback. Happy to know from Elliot that "multi-module
> pom generation" has been a viable solution for him. And I must
> definitely have a look at how Jenkins Maven Jobs may fit in the
> picture, as suggested by Bernd.
> 
> Hi maven developers,
> 
> I take the liberty to forward this thread to the developer list, in
> the hope to get further insights from specialists.
> 
> quick summary is here : http://dag.cloud/docs/theproblem.html
> 
> Thanks!
> Christophe
> 
> > On 2016-03-16 00:21, Bernd Eckenfels wrote:
> >> Hello,
> >> 
> >> It might not completely solve your problem (as it does not observe
> >> versions) but with Jenkins Maven Jobs it builds dependent jobs
> >> automatically.
> >> 
> >> If you follow a release strategy it is however not something you need
> >> in practice as you have to step through the dependencies to release
> >> them anyway.
> >> 
> >> And when your system matures and you start to refacture dependencies
> >> they start to change over time.
> >> 
> >> Maybe stuffing all in a graph database would help you (jqassist.org).
> >> 
> >> Gruss
> >> Bernd
> >> --
> >> http://bernd.eckenfels.net
> >> 
> >> Von: Elliot Metsger
> >> Gesendet: Dienstag, 15. März 2016 23:27
> >> An: Maven Users List
> >> Betreff: Re: Find the correct build order of a set of distinct
> >> butinterdependent projects
> >> 
> >> Hi Christophe,
> >> 
> >> Just chiming in with my experience; we used to have a complex build, 
> >> and I
> >> used approach #2.  I don't remember the total number of projects in 
> >> the
> >> reactor (it was less than 100 for sure, but probably more than 20), 
> >> and
> >> that worked fine.
> >> 
> >> I wasn't aware of the Maven event spy approach.  That sounds like a 
> >> tidy,
> >> albeit more technical, solution.  I don't think we were able to
> >> successfully use the dependency plugin, but this was a few years ago 
> >> and
> >> the plugin may have advanced since then.
> >> 
> >> On Tue, Mar 15, 2016 at 4:17 PM, Christophe Thiebaud <
> >> christophe.thiebaud@dag.cloud> wrote:
> >> 
> >>> Hi all,
> >>> 
> >>> The problem is all in the title :
> >>> 
> >>> How to find the correct build order of a set of distinct but
> >>> interdependent projects.
> >>> 
> >>> Distinct means that each project lives in its own source repository, 
> >>> each
> >>> project build separately.
> >>> 
> >>> Interdependent means that projects may be dependent upon each other.
> >>> 
> >>> So the question is:
> >>> 
> >>>- which projects depends on which other projects?
> >>> 
> >>> in order to be able to build the projects still separately, but in 
> >>> the
> >>> correct order.
> >>> 
> >>> e.g. slf4j and logback: which one depends on the other? Which one do 
> >>> I
> >>> need to build first?
> >>> 
> >>> I thought of the following four possible solutions, and I have 
> >>> experience
> >>> with the first three:
> >>> 
> >>> 1. The poor man’s solution : hardcode the order
> >>> 2. Generate a multi-module pom file that contains all projects as 
> >>> modules
> >>> 3. Collect build-time repository events with a maven event spy
> >>> 4. Collect pom file dependency information with the dependency plugin
> >>> 
> >>> to avoid a lng mail, the options are further detailed here :
> >>> http://dag.cloud/docs/theproblem.html
> >>> 
> >>> This is so generic a problem that I am sure you've already been faced 
> >>> with.
> >>> 
> >>> I'd be glad to get some piece of advice from the community.
> >>> 
> >>> For instance, is somebody aware of any existing open source toolset 
> >>> around
> >>> this problem?
> >>> 
> >>> Concerning option #4, I am under the impression (from blurred 
> >>> remember of
> >>> some mail exchanges on this list long time ago) that the 
> >>> dependency-plugin
> >>> tree goal implementation is not congruent with the actual aether
> >>> implementation, which, if true, would be a show stopper. Can somebody
> >>> confirm/infirm ?

MG>maven-dependency-plugin version 2.8 fixed the issue
MG>https://issues.apache.org/jira/browse/MDEP-407MG>please confirm
MG Tangent>curious why you need to combine eclipse and maven environments?
> >>> Thanks!
> >>> Christophe
> >>> 
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> For additional commands, e-mail: users-h...@maven.apache.org
> >>> 
> >>> 
> 
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
> 

Jute

2016-02-23 Thread Martin Gainty
currently executing Jute at command line to generate java sources
java -cp .\lib\javacc.jar javacc 
.\src\java\main\org\apache\jute\compiler\generated\rcc.jj

Has anyone come across jute-maven-plugin so I can bind jute to generate-sources 
phase ?
Thanks!
Martin 
__ 

 
  

RE: Should I disable maven-compiler-plugin when using aspectj-maven-compiler?

2016-01-14 Thread Martin Gainty







> Date: Thu, 14 Jan 2016 09:21:41 +0200
> Subject: Re: Should I disable maven-compiler-plugin when using 
> aspectj-maven-compiler?
> From: dagansand...@gmail.com
> To: users@maven.apache.org
> 
> Sorry if you were offended for some reason, but let's look at it
> objectively:
> 
> 1) I ask a question, you post an answer with a link to a website that
> contains a message that it was migrated to a different location. Since I
> don't really know what you thought was there, I can't really guess where to
> find this new locationMG>I respectfully asked the site admin where the 
> aspectj is now located and he responded 
> immediatelyMG>http://git.eclipse.org/c/aspectj/org.aspectj.git
> 
> 2) While I haven't posted my entire configuration, I am asking this
> question on the Maven-Users mailing list, so I don't understand why you
> would need to "speculate" on if I'm using Maven/Gradle/Ant
MG>because alot of ASF folk are STILL using ant then I would suggest running it 
thru maven plugin called
MG>maven-antrun-plugin which means the implementation will run with ANT and 
maven
> 
> 3) I have posted a description of the basic configuration I am using (2
> maven plugins in conjunction)

MG>should not use 2 different plugins in same phase when one phase 
(generate-sources) MG>to generate the classes followed by the next phase 
(maven-compile-plugin) to compile the classes
 and was asking what is the best practice for
> using these side-by-side, or if it's necessary at all. As I wrote in my
> original message, I have valid workarounds that achieve what I need. All
> I'm asking is if someone knows if there are down/upsides to using either.
> 4) I am well capable of understanding what I need for my implementation and
> know how to write a working build script, thank you.
MG>then attach the pom.xml and eliminate guesswork/speculation on what your 
pom.xml is supposed to look like
> 
> 5) For some reason, your messages are being sent with awful formatting,
> which I'm guessing isn't really your fault, but it makes it really hard to
> read, so I'm sorry if I misunderstood anything you were trying to say. Take
> a look here
> <https://www.mail-archive.com/users@maven.apache.org/msg137749.html>for
> example...MG>I have another email program I use for professional emails 
> ..this is a freebie mailer
MG>that ive used for past 20 years and have'nt had the heart to dump it yet
> 
> Finally, regardless of everything, I would still like to thank you for
> trying to help. I do appreciate it.MG>you're welcome
> 
> BR,
> Dagan.

MG>BR
> 
> 
> 
> 
> On Wed, Jan 13, 2016 at 6:09 PM, Martin Gainty <mgai...@hotmail.com> wrote:
> 
> >
> >
> >
> >
> > > Date: Wed, 13 Jan 2016 16:29:03 +0200
> > > Subject: Re: Should I disable maven-compiler-plugin when using
> > aspectj-maven-compiler?
> > > From: dagansand...@gmail.com
> > > To: users@maven.apache.org
> > >
> > > First, the link you gave redirects to a page saying CVS repositories have
> > > been migrated and it doesn't point forwardMG>complaining to the wrong
> > person
> > MG>KINDLY ask the site admin of the site where this information is now
> > hosted..MG>I would strongly suggest that your request to the site admin be
> > more respectful than you are to me here
> > >
> > > Second, the "proc" flag of the aspectj-maven-plugin is described also on
> > > the plugin's website
> > > http://www.mojohaus.org/aspectj-maven-plugin/compile-mojo.html#procMG>Glad
> > to hear that aspectj-maven-plugin has covered that base
> > >
> > > Third, I don't see how this answers my questions? And which workaround
> > does
> > > this apply to?MG>You have an approach which is the 30,000 foot view
> > which is what you need to go forwardMG>assuming you are using javac
> > compiler?MG>your end game is to implement javac with proc:only at some
> > earlier phase to generate the necessary classesMG>then later on in the
> > build cycle implement javac with proc:none at compile phase to do the
> > actual compile for the new classes
> > MG>The specific details on HOW you implement that using plain javac OR ANT
> > OR maven OR Gradle is up to you
> > MG>I dont know your environment since you didnt supply your environment
> > details
> > MG>also you did not supply your .gradle or build.xml or pom.xml so I
> > cannot speculate which specific tasks/plugins would be usedMG>as there are
> > 3 possible different d

RE: Should I disable maven-compiler-plugin when using aspectj-maven-compiler?

2016-01-13 Thread Martin Gainty
  take a look 
athttp://dev.eclipse.org/viewcvs/index.cgi/org.aspectj/?root=Tools_Project
find your way to this artifact:org.aspectj  
aspectjtools  jar  
1.8.5  AspectJ tools  Tools from 
the AspectJ project  http://www.aspectj.org
take a gander at AjcTask.java and notice the setting of javac arg called 'proc'
/**   * Controls whether annotation processing and/or compilation is done.   * 
-proc:none means that compilation takes place without annotation processing.   
* -proc:only means that only annotation processing is done, without any 
subsequent compilation.   */  public void setProc(String proc) {if 
(proc.equals("none")) {  cmd.addFlag("-proc:none", true);} else if 
(proc.equals("only")) {  cmd.addFlag("-proc:only", true);}  }
-proc: {none,only}Controls whether annotation processing and/or compilation is 
done. -proc:none means that compilation takes place without annotation 
processing. -proc:only means that only annotation processing is done, without 
any subsequent compilation.
javac -proc:only (needs to be set on any phase before compile such as 
generate-sources) within aspectj environment this is enabled by argument 
-Dorg.eclipse.jdt.core.compiler.generateClassFiles on command line

javac -proc:none(needs to be set only on compile phase) 
-Dorg.eclipse.jdt.core.compiler.generateClassFiles absent on command line

HTH
Martin  
  


> Date: Wed, 13 Jan 2016 13:42:53 +0200
> Subject: Re: Should I disable maven-compiler-plugin when using 
> aspectj-maven-compiler?
> From: dagansand...@gmail.com
> To: users@maven.apache.org
> 
> Both, actually.
> In any case, using aspectj compiler through the maven-compiler-plugin seems
> to be causing more issues (it depends on an older version of aspectj tools,
> and raising it causes API errors) so it's definitely not the way for me.
> 
> I'm guessing my issue comes mainly from the fact that maven-compiler-plugin
> 3.1+ has an issue with incremental compilation, so a workaround is
> mandatory in the current situation...
> It is indeed peculiar that there isn't more info on that matter but then
> again I'm not sure how many people use aspectj and maven together
> 
> Doing some more google work brought me to these:
> -
> http://stackoverflow.com/questions/14614446/how-do-i-disable-the-maven-compiler-plugin
> -
> http://stackoverflow.com/questions/24211943/aspectj-maven-plugin-declare-soft-how-to-compile
> - https://dev.eclipse.org/mhonarc/lists/aspectj-users/msg14431.html
> 
> The last one is actually a post from the aspectj-users mailing list from
> about 2 years ago, asking about the same issue, although the person didn't
> seem to get a response.
> 
> 
> 
> 
> On Wed, Jan 13, 2016 at 11:35 AM, Anders Hammar  wrote:
> 
> > >
> > > Does this act differently though than the aspectj-maven-plugin? Does it
> > > play well with AJDT and eclipse?
> > >
> >
> > I don't know; I don't use aspectj. Couldn't find any pointers on this in
> > the aspact-maven-plugin docs so it might be the wrong path. However,
> > couldn't find any instructions on using your workaround either...:-)
> > As you stated "aspectj-compiler-plugin" in the subject, I thought that you
> > wanted to use the aspectj compiler. But maybe I misunderstood and you just
> > want to weave with aspectj?
> >
> > /Anders
> >
> >
> > >
> > >
> > > On Wed, Jan 13, 2016 at 10:59 AM, Anders Hammar 
> > wrote:
> > >
> > > > Can't you just tell maven-compiler-plugin to use the aspectj compiler?
> > > >
> > > >
> > >
> > https://maven.apache.org/plugins/maven-compiler-plugin/non-javac-compilers.html
> > > >
> > > > /Anders
> > > >
> > > > On Wed, Jan 13, 2016 at 9:41 AM, Dagan Sandler  > >
> > > > wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I am in the process of updating my plugin definitions in all of the
> > > > > projects I manage.
> > > > > Notably, I tried updating maven-compiler-plugin from 2.5.1 to 3.3 but
> > > > > encountered an issue in a project that uses aspectj-maven-plugin.
> > > > >
> > > > > The issue is, it seems, that the maven-compiler-plugin is invoked
> > > before
> > > > > the aspectj-maven-plugin, and causes the build to fail.
> > > > >
> > > > > I have previously used a workaround for this issue by setting the
> > > > > aspectj-maven-plugin to execute in phase process-sources, so it's
> > > invoked
> > > > > before the maven plugin
> > > > > However, in maven-compiler-plugin 3.1+ there's this bug
> > > > >  which causes
> > the
> > > > > maven-compiler-plugin to recompile all sources and to fail the build,
> > > so
> > > > > you must set useIncrementalCompilation to *false*
> > > > >
> > > > > Another workaround I found before finding out about the incremental
> > > build
> > > > > bug, is to disable the maven-compiler-plugin altogether in that
> > project
> > > > 

RE: Should I disable maven-compiler-plugin when using aspectj-maven-compiler?

2016-01-13 Thread Martin Gainty




> Date: Wed, 13 Jan 2016 16:29:03 +0200
> Subject: Re: Should I disable maven-compiler-plugin when using 
> aspectj-maven-compiler?
> From: dagansand...@gmail.com
> To: users@maven.apache.org
> 
> First, the link you gave redirects to a page saying CVS repositories have
> been migrated and it doesn't point forwardMG>complaining to the wrong person
MG>KINDLY ask the site admin of the site where this information is now 
hosted..MG>I would strongly suggest that your request to the site admin be more 
respectful than you are to me here
> 
> Second, the "proc" flag of the aspectj-maven-plugin is described also on
> the plugin's website
> http://www.mojohaus.org/aspectj-maven-plugin/compile-mojo.html#procMG>Glad to 
> hear that aspectj-maven-plugin has covered that base
> 
> Third, I don't see how this answers my questions? And which workaround does
> this apply to?MG>You have an approach which is the 30,000 foot view which is 
> what you need to go forwardMG>assuming you are using javac compiler?MG>your 
> end game is to implement javac with proc:only at some earlier phase to 
> generate the necessary classesMG>then later on in the build cycle implement 
> javac with proc:none at compile phase to do the actual compile for the new 
> classes
MG>The specific details on HOW you implement that using plain javac OR ANT OR 
maven OR Gradle is up to you 
MG>I dont know your environment since you didnt supply your environment details 
MG>also you did not supply your .gradle or build.xml or pom.xml so I cannot 
speculate which specific tasks/plugins would be usedMG>as there are 3 possible 
different distinctive ways to implement this solution
MG>if you dont understand implementation I would strongly suggest you 
RESPECTFULLY ask a senior resource on your team
MG>to craft a build script which will achieve this objective within the 
confines of your  .gradle/build.xml/pom.xml build environment
> 
>  
> On Wed, Jan 13, 2016 at 3:10 PM, Martin Gainty <mgai...@hotmail.com> wrote:
> 
> >   take a look athttp://
> > dev.eclipse.org/viewcvs/index.cgi/org.aspectj/?root=Tools_Project
> > find your way to this artifact:org.aspectj
> > aspectjtools  jar
> > 1.8.5  AspectJ tools  Tools
> > from the AspectJ project  http://www.aspectj.org
> > take a gander at AjcTask.java and notice the setting of javac arg called
> > 'proc'
> > /**   * Controls whether annotation processing and/or compilation is
> > done.   * -proc:none means that compilation takes place without annotation
> > processing.   * -proc:only means that only annotation processing is done,
> > without any subsequent compilation.   */  public void setProc(String proc)
> > {if (proc.equals("none")) {  cmd.addFlag("-proc:none", true);}
> > else if (proc.equals("only")) {  cmd.addFlag("-proc:only", true);}
> > }
> > -proc: {none,only}Controls whether annotation processing and/or
> > compilation is done. -proc:none means that compilation takes place without
> > annotation processing. -proc:only means that only annotation processing is
> > done, without any subsequent compilation.
> > javac -proc:only (needs to be set on any phase before compile such as
> > generate-sources) within aspectj environment this is enabled by argument
> > -Dorg.eclipse.jdt.core.compiler.generateClassFiles on command line
> >
> > javac -proc:none(needs to be set only on compile phase)
> > -Dorg.eclipse.jdt.core.compiler.generateClassFiles absent on command line
> >
> > HTH
> > Martin
> >
> >
> > > Date: Wed, 13 Jan 2016 13:42:53 +0200
> > > Subject: Re: Should I disable maven-compiler-plugin when using
> > aspectj-maven-compiler?
> > > From: dagansand...@gmail.com
> > > To: users@maven.apache.org
> > >
> > > Both, actually.
> > > In any case, using aspectj compiler through the maven-compiler-plugin
> > seems
> > > to be causing more issues (it depends on an older version of aspectj
> > tools,
> > > and raising it causes API errors) so it's definitely not the way for me.
> > >
> > > I'm guessing my issue comes mainly from the fact that
> > maven-compiler-plugin
> > > 3.1+ has an issue with incremental compilation, so a workaround is
> > > mandatory in the current situation...
> > > It is indeed peculiar that there isn't more info on that matter but then
> > > again I'm not sure how many people use aspectj and maven together
> > >
> > > Doing some more google work brought me to these:
> > > -
> > >
> > http://stackoverflow.com/

RE: disabling default plugin from phase?

2015-12-07 Thread Martin Gainty
 good for SCM access
how about site distro?
it would seem *logical* to aggregate all of the flexmojos src/doc/site info for 
flex mojos under Apache-flex?
thanks mark
Martin 
__ 


> Subject: Re: disabling default plugin from phase?
> To: users@maven.apache.org
> From: mc.pr...@gmail.com
> Date: Mon, 7 Dec 2015 16:27:52 +0100
> 
> On 04-12-15 02:58, Martin Gainty wrote:
> > was asked by a local resource to look into resurrecting flex-mojos for a 
> > local company
> >
> > Thanks to Jeff, Mirko and Adrien I was able to exec thru all the phases to 
> > make flexmojos operational ..but..
> > I am disturbed by EOL notice from code.google.com to take place at end of 
> > 2015http://code.google.com/p/flex-mojos/
> > Remembering that codehaus projects have been re-provisioned  from codehaus 
> > to apache servers this year
> 
> i'd just hit the "Export to Github" button on 
> https://code.google.com/archive/p/flex-mojos/ and switch over
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
  

RE: disabling default plugin from phase?

2015-12-03 Thread Martin Gainty
attempting to implement tycho compile but discovered my ClassRealm changed ?it 
appears new ClassRealm "instrumented" a new lifecycle 
Consequently i have new plugin bindings for all phases for this new lifecycle
In particular the new process-test-resources phase plugin binding is not the 
plugin I want to execute(Which is why I am attempting to disable the default 
plugin for process-test-resources phase)
Thanks Adrian!
Martin 
__ 




> Date: Thu, 3 Dec 2015 09:54:04 +0100
> Subject: Re: disabling default plugin from phase?
> From: adrien.riv...@gmail.com
> To: users@maven.apache.org
> 
> Some goals/plugins also have a skip property.
> 
> 
> org.apache.maven.plugins
> maven-deploy-plugin
> 
> 
> true
> 
> 
> 
> 
> On Thu, Dec 3, 2015 at 1:35 AM, Martin Gainty <mgai...@hotmail.com> wrote:
> 
> > I'll give this a tryThanks Mirko!
> > Martin-
> >
> > > From: mfriedenha...@gmail.com
> > > Date: Wed, 2 Dec 2015 22:58:49 +0100
> > > Subject: Re: disabling default plugin from phase?
> > > To: users@maven.apache.org
> > >
> > > Hello Martin,
> > >
> > > as a hack you may override this in your pluginManagement by specifying
> > > an invalid phase.
> > > 
> > > org.apache.maven.plugins
> > > maven-source-plugin
> > > ${maven-source-plugin.version}
> > > true
> > > 
> > > 
> > > 
> > > attach-sources
> > >
> >  DISABLE_FORKED_LIFECYCLE_MSOURCES-13
> > > 
> > > 
> > > default-jar-no-fork
> > > 
> > > jar-no-fork
> > > 
> > > 
> > > 
> > > 
> > > Regards Mirko
> > > --
> > > http://illegalstateexception.blogspot.com/
> > > https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen)
> > > https://bitbucket.org/mfriedenhagen/
> > >
> > >
> > > On Wed, Dec 2, 2015 at 9:57 PM, Martin Gainty <mgai...@hotmail.com>
> > wrote:
> > > > Folks-
> > > > is there any way to disable a particular plugin (which is somehow
> > declared as a default plugin for that phase )from executing in that phase?
> > > >
> > > > Thanks!
> > > > Martin
> > > > __
> > > >
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > > For additional commands, e-mail: users-h...@maven.apache.org
> > >
> >
> >
> 
> 
> 
> -- 
> Adrien Rivard
  

RE: disabling default plugin from phase?

2015-12-03 Thread Martin Gainty
was asked by a local resource to look into resurrecting flex-mojos for a local 
company

Thanks to Jeff, Mirko and Adrien I was able to exec thru all the phases to make 
flexmojos operational ..but..
I am disturbed by EOL notice from code.google.com to take place at end of 
2015http://code.google.com/p/flex-mojos/
Remembering that codehaus projects have been re-provisioned  from codehaus to 
apache servers this year

Does anyone know if there is someone at Apache Infrastructure to help us find 
flexmojos project a new home before 2016?

Thanks!
Martin 
__  
   



> From: mgai...@hotmail.com
> To: users@maven.apache.org
> Subject: RE: disabling default plugin from phase?
> Date: Thu, 3 Dec 2015 09:23:33 -0500
> 
> attempting to implement tycho compile but discovered my ClassRealm changed 
> ?it appears new ClassRealm "instrumented" a new lifecycle 
> Consequently i have new plugin bindings for all phases for this new lifecycle
> In particular the new process-test-resources phase plugin binding is not the 
> plugin I want to execute(Which is why I am attempting to disable the default 
> plugin for process-test-resources phase)
> Thanks Adrian!
> Martin 
> __ 
>   
>   
> 
> 
> > Date: Thu, 3 Dec 2015 09:54:04 +0100
> > Subject: Re: disabling default plugin from phase?
> > From: adrien.riv...@gmail.com
> > To: users@maven.apache.org
> > 
> > Some goals/plugins also have a skip property.
> > 
> > 
> > org.apache.maven.plugins
> > maven-deploy-plugin
> > 
> > 
> > true
> > 
> > 
> > 
> > 
> > On Thu, Dec 3, 2015 at 1:35 AM, Martin Gainty <mgai...@hotmail.com> wrote:
> > 
> > > I'll give this a tryThanks Mirko!
> > > Martin-
> > >
> > > > From: mfriedenha...@gmail.com
> > > > Date: Wed, 2 Dec 2015 22:58:49 +0100
> > > > Subject: Re: disabling default plugin from phase?
> > > > To: users@maven.apache.org
> > > >
> > > > Hello Martin,
> > > >
> > > > as a hack you may override this in your pluginManagement by specifying
> > > > an invalid phase.
> > > > 
> > > > org.apache.maven.plugins
> > > > maven-source-plugin
> > > > ${maven-source-plugin.version}
> > > > true
> > > > 
> > > > 
> > > > 
> > > > attach-sources
> > > >
> > >  DISABLE_FORKED_LIFECYCLE_MSOURCES-13
> > > > 
> > > > 
> > > > default-jar-no-fork
> > > > 
> > > > jar-no-fork
> > > > 
> > > > 
> > > > 
> > > > 
> > > > Regards Mirko
> > > > --
> > > > http://illegalstateexception.blogspot.com/
> > > > https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen)
> > > > https://bitbucket.org/mfriedenhagen/
> > > >
> > > >
> > > > On Wed, Dec 2, 2015 at 9:57 PM, Martin Gainty <mgai...@hotmail.com>
> > > wrote:
> > > > > Folks-
> > > > > is there any way to disable a particular plugin (which is somehow
> > > declared as a default plugin for that phase )from executing in that phase?
> > > > >
> > > > > Thanks!
> > > > > Martin
> > > > > __
> > > > >
> > > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > > > For additional commands, e-mail: users-h...@maven.apache.org
> > > >
> > >
> > >
> > 
> > 
> > 
> > -- 
> > Adrien Rivard
> 
  

disabling default plugin from phase?

2015-12-02 Thread Martin Gainty
Folks-
is there any way to disable a particular plugin (which is somehow declared as a 
default plugin for that phase )from executing in that phase?

Thanks!
Martin 
__ 

  
  

RE: disabling default plugin from phase?

2015-12-02 Thread Martin Gainty
I'll give this a tryThanks Mirko!
Martin-

> From: mfriedenha...@gmail.com
> Date: Wed, 2 Dec 2015 22:58:49 +0100
> Subject: Re: disabling default plugin from phase?
> To: users@maven.apache.org
> 
> Hello Martin,
> 
> as a hack you may override this in your pluginManagement by specifying
> an invalid phase.
> 
> org.apache.maven.plugins
> maven-source-plugin
> ${maven-source-plugin.version}
> true
> 
> 
> 
> attach-sources
> 
> DISABLE_FORKED_LIFECYCLE_MSOURCES-13
> 
> 
> default-jar-no-fork
> 
> jar-no-fork
> 
> 
> 
> 
> Regards Mirko
> --
> http://illegalstateexception.blogspot.com/
> https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen)
> https://bitbucket.org/mfriedenhagen/
> 
> 
> On Wed, Dec 2, 2015 at 9:57 PM, Martin Gainty <mgai...@hotmail.com> wrote:
> > Folks-
> > is there any way to disable a particular plugin (which is somehow declared 
> > as a default plugin for that phase )from executing in that phase?
> >
> > Thanks!
> > Martin
> > __
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
  

RE: valid p2 repository?

2015-12-01 Thread Martin Gainty
using kepler but the http://?; need be resolved at 
command-lineapologies but i dont know the repository urls for "standard eclipse 
p2 repositories"the p2 repository URL for kepler is...?
Martin 
__ 
 


> From: jeffma...@jeffmaury.com
> Date: Tue, 1 Dec 2015 16:19:00 +0100
> Subject: Re: valid p2 repository?
> To: users@maven.apache.org
> 
> Did you tried the standard Eclipse P2 repositories ?
> 
> Jeff
> 
> On Tue, Dec 1, 2015 at 3:44 PM, Martin Gainty <mgai...@hotmail.com> wrote:
> 
> > all of them but my immediate need is :
> > Caused by:
> > org.eclipse.tycho.p2.target.facade.TargetDefinitionResolutionException:
> > Could not find "javax.annotation/1.2.0.v201401042248" in the repositories
> > of the current location
> > Thanks!
> > Martin __
> >
> >
> >
> > > Date: Tue, 1 Dec 2015 14:18:13 +0100
> > > Subject: Re: valid p2 repository?
> > > From: jeffma...@gmail.com
> > > To: users@maven.apache.org
> > >
> > > Which artifacts are you looking for ?
> > >
> > > Jeff
> > > Le 1 déc. 2015 13:56, "Martin Gainty" <mgai...@hotmail.com> a écrit :
> > >
> > > > Anyone know of a valid P2 repositories ?i tried this supposedly valid
> > p2
> > > > repository:
> > > >
> > http://download.eclipse.org/tools/orbit/downloads/drops/R20130827064939/repository/but
> > > > cannot resolve any of the repository location="" for P2 artifacts or
> > > > plugins referenced in build.target?
> > > >
> > > > guide is here:
> > > >
> > > >
> > http://www.eclipse.org/tycho/sitedocs/tycho-p2/tycho-p2-publisher-plugin/attach-artifacts-mojo.html
> > > > Thanks,
> > > > Martin Gainty
> > > > __
> > > >
> > > >
> >
> >
> 
> 
> 
> -- 
> Jeff MAURY
> 
> 
> "Legacy code" often differs from its suggested alternative by actually
> working and scaling.
>  - Bjarne Stroustrup
> 
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
> http://www.twitter.com/jeffmaury
  

RE: valid p2 repository?

2015-12-01 Thread Martin Gainty
Thanks Jeff!
Martin 
___

> From: jeffma...@jeffmaury.com
> Date: Tue, 1 Dec 2015 16:19:00 +0100
> Subject: Re: valid p2 repository?
> To: users@maven.apache.org
> 
> Did you tried the standard Eclipse P2 repositories ?
> 
> Jeff
> 
> On Tue, Dec 1, 2015 at 3:44 PM, Martin Gainty <mgai...@hotmail.com> wrote:
> 
> > all of them but my immediate need is :
> > Caused by:
> > org.eclipse.tycho.p2.target.facade.TargetDefinitionResolutionException:
> > Could not find "javax.annotation/1.2.0.v201401042248" in the repositories
> > of the current location
> > Thanks!
> > Martin __
> >
> >
> >
> > > Date: Tue, 1 Dec 2015 14:18:13 +0100
> > > Subject: Re: valid p2 repository?
> > > From: jeffma...@gmail.com
> > > To: users@maven.apache.org
> > >
> > > Which artifacts are you looking for ?
> > >
> > > Jeff
> > > Le 1 déc. 2015 13:56, "Martin Gainty" <mgai...@hotmail.com> a écrit :
> > >
> > > > Anyone know of a valid P2 repositories ?i tried this supposedly valid
> > p2
> > > > repository:
> > > >
> > http://download.eclipse.org/tools/orbit/downloads/drops/R20130827064939/repository/but
> > > > cannot resolve any of the repository location="" for P2 artifacts or
> > > > plugins referenced in build.target?
> > > >
> > > > guide is here:
> > > >
> > > >
> > http://www.eclipse.org/tycho/sitedocs/tycho-p2/tycho-p2-publisher-plugin/attach-artifacts-mojo.html
> > > > Thanks,
> > > > Martin Gainty
> > > > __
> > > >
> > > >
> >
> >
> 
> 
> 
> -- 
> Jeff MAURY
> 
> 
> "Legacy code" often differs from its suggested alternative by actually
> working and scaling.
>  - Bjarne Stroustrup
> 
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
> http://www.twitter.com/jeffmaury

  

valid p2 repository?

2015-12-01 Thread Martin Gainty
Anyone know of a valid P2 repositories ?i tried this supposedly valid p2 
repository:http://download.eclipse.org/tools/orbit/downloads/drops/R20130827064939/repository/but
 cannot resolve any of the repository location="" for P2 artifacts or plugins 
referenced in build.target?

guide is here:
http://www.eclipse.org/tycho/sitedocs/tycho-p2/tycho-p2-publisher-plugin/attach-artifacts-mojo.html
Thanks,
Martin Gainty 
__ 

   
  

RE: valid p2 repository?

2015-12-01 Thread Martin Gainty
all of them but my immediate need is :
Caused by: 
org.eclipse.tycho.p2.target.facade.TargetDefinitionResolutionException: Could 
not find "javax.annotation/1.2.0.v201401042248" in the repositories of the 
current location
Thanks!
Martin __ 
 


> Date: Tue, 1 Dec 2015 14:18:13 +0100
> Subject: Re: valid p2 repository?
> From: jeffma...@gmail.com
> To: users@maven.apache.org
> 
> Which artifacts are you looking for ?
> 
> Jeff
> Le 1 déc. 2015 13:56, "Martin Gainty" <mgai...@hotmail.com> a écrit :
> 
> > Anyone know of a valid P2 repositories ?i tried this supposedly valid p2
> > repository:
> > http://download.eclipse.org/tools/orbit/downloads/drops/R20130827064939/repository/but
> > cannot resolve any of the repository location="" for P2 artifacts or
> > plugins referenced in build.target?
> >
> > guide is here:
> >
> > http://www.eclipse.org/tycho/sitedocs/tycho-p2/tycho-p2-publisher-plugin/attach-artifacts-mojo.html
> > Thanks,
> > Martin Gainty
> > __
> >
> >
  

RE: valid p2 repository?

2015-12-01 Thread Martin Gainty
using kepler but the http://?; need be resolved at 
command-lineapologies but i dont know the repository urls for "standard eclipse 
p2 repositories"the p2 repository URL for kepler is...?
Martin 
__ 
 


> From: jeffma...@jeffmaury.com
> Date: Tue, 1 Dec 2015 16:19:00 +0100
> Subject: Re: valid p2 repository?
> To: users@maven.apache.org
> 
> Did you tried the standard Eclipse P2 repositories ?
> 
> Jeff
> 
> On Tue, Dec 1, 2015 at 3:44 PM, Martin Gainty <mgai...@hotmail.com> wrote:
> 
> > all of them but my immediate need is :
> > Caused by:
> > org.eclipse.tycho.p2.target.facade.TargetDefinitionResolutionException:
> > Could not find "javax.annotation/1.2.0.v201401042248" in the repositories
> > of the current location
> > Thanks!
> > Martin __
> >
> >
> >
> > > Date: Tue, 1 Dec 2015 14:18:13 +0100
> > > Subject: Re: valid p2 repository?
> > > From: jeffma...@gmail.com
> > > To: users@maven.apache.org
> > >
> > > Which artifacts are you looking for ?
> > >
> > > Jeff
> > > Le 1 déc. 2015 13:56, "Martin Gainty" <mgai...@hotmail.com> a écrit :
> > >
> > > > Anyone know of a valid P2 repositories ?i tried this supposedly valid
> > p2
> > > > repository:
> > > >
> > http://download.eclipse.org/tools/orbit/downloads/drops/R20130827064939/repository/but
> > > > cannot resolve any of the repository location="" for P2 artifacts or
> > > > plugins referenced in build.target?
> > > >
> > > > guide is here:
> > > >
> > > >
> > http://www.eclipse.org/tycho/sitedocs/tycho-p2/tycho-p2-publisher-plugin/attach-artifacts-mojo.html
> > > > Thanks,
> > > > Martin Gainty
> > > > __
> > > >
> > > >
> >
> >
> 
> 
> 
> -- 
> Jeff MAURY
> 
> 
> "Legacy code" often differs from its suggested alternative by actually
> working and scaling.
>  - Bjarne Stroustrup
> 
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
> http://www.twitter.com/jeffmaury
  

RE: animal-sniffer-maven-plugin repo missing

2015-11-27 Thread Martin Gainty
yep git is located athttps://github.com/mojohaus/animal-sniffer.gitThanks Curtis

Martin 
__  




> From: ctrue...@wisc.edu
> Date: Thu, 26 Nov 2015 21:49:22 -0600
> Subject: Re: animal-sniffer-maven-plugin repo missing
> To: users@maven.apache.org
> 
> You mean this?
> https://github.com/mojohaus/animal-sniffer/tree/master/animal-sniffer-maven-plugin
> 
> On Thu, Nov 26, 2015 at 9:44 PM, Martin Gainty <mgai...@hotmail.com> wrote:
> 
> > anyone know what happened to animal-sniffer-maven-plugin repo?
> > https://github.com/mojohaus/animal-sniffer.git/animal-sniffer-maven-plugin
> >
> >
> > http://www.mojohaus.org/animal-sniffer/animal-sniffer-maven-plugin/source-repository.htmlsays
> > this is the repo for animal-sniffer-maven-plugin?
> >
> > Thanks,
> > Martin
> > ___
> >
> >
  

animal-sniffer-maven-plugin repo missing

2015-11-26 Thread Martin Gainty
anyone know what happened to animal-sniffer-maven-plugin 
repo?https://github.com/mojohaus/animal-sniffer.git/animal-sniffer-maven-plugin

http://www.mojohaus.org/animal-sniffer/animal-sniffer-maven-plugin/source-repository.htmlsays
 this is the repo for animal-sniffer-maven-plugin?

Thanks,
Martin 
___


  

RE: Reactor versus classifiers ...

2015-10-21 Thread Martin Gainty


> Date: Wed, 21 Oct 2015 13:56:39 -0400
> Subject: Reactor versus classifiers ...
> From: bimargul...@gmail.com
> To: users@maven.apache.org
> 
> I've hit a problem with Maven 3.2.5 and the karaf-maven-plugin.
> 
> One module builds a Karaf feature with the karaf maven plugin; this produces:
> 
> 
> ${project.groupId}
> rosapi-features
> ${project.version}
> features
> xml
> runtime
> 
> 
> The packaging of this project is 'feature' to use the karaf-maven-plugin.
> 
> 
> The second module consumes it, via the dependency above. It also uses
> the karaf-maven-plugin with a different packaging to make the karaf
> assembly.
> 
> When I try to run release:prepare, I fail, because the features.xml
> file is not, apparently, resolved correctly from the reactor. Does
> anyone here on the Maven side have any suggestions before I try to
> dive into the Karaf side? Of course, it works fine when I am _not_
> running the release plugin.
> 
> [INFO] [WARNING] Error resolving
> artifactcom.basistech.ws:rosapi-features:xml:features:0.7.100:Could
> not find artifact
> com.basistech.ws:rosapi-features:xml:features:0.7.100 in Basis
> Technology Corp. Nexus
> (http://nexus.basistech.net:8081/nexus/content/groups/public)
> [INFO] shaded.org.eclipse.aether.resolution.ArtifactResolutionException:
> Could not find artifact
> com.basistech.ws:rosapi-features:xml:features:0.7.100 in Basis
> Technology Corp. Nexus
> (http://nexus.basistech.net:8081/nexus/content/groups/public)

MG>you can add a jaraf feature to feature repository via 
MG>feature:addMG>https://karaf.apache.org/manual/latest/users-guide/provisioning.htmlMG>verify
 the feature registration has taken placeMG>feature:repo-list
MG>at some point you may want to assemble 
MG>https://karaf.apache.org/manual/latest/developers-guide/custom-distribution.htmlMG>where
 maven-assembly specifies descriptor 
src/main/descriptors/bin.xml in configurationMG>the 
assembly bin.xml contains filenames you wish to include in 

MG>karaf plugin produces kar assemblies from OSGI buildMG>once kar assembly  is 
created you can cp to deploy folderMG>then use the 
'feature-deployer'https://karaf.apache.org/manual/latest/users-guide/deployers.htmlhttps://karaf.apache.org/manual/latest/users-guide/provisioning.html
Have fun> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
  

RE: Cause: the class org.apache.tools.ant.taskdefs.optional.ssh.Scp was not found

2015-10-12 Thread Martin Gainty



> Date: Mon, 12 Oct 2015 16:39:01 -0500
> Subject: Re: Cause: the class org.apache.tools.ant.taskdefs.optional.ssh.Scp 
> was not found
> From: wayne...@gmail.com
> To: users@maven.apache.org
> 
> Maybe use org.apache.ant:ant-nodeps artifact instead (or in addition) to
> what you already listed (?).
> 
> Version 1.8.1 seems to be the latest.

MG>check out this classloader load scenario from ant faq
put all external libraries you need in
  CLASSPATH as well this is not what you want,
  otherwise you wouldn't have found this FAQ entry.  example located at 
   https://ant.apache.org/manual/using.html
put all external libraries you need in
  ANT_HOME/lib or .ant/lib.  This
  probably still isn't what you want, but you might reconsider
  the .ant/lib option.Always start Ant with the -lib command line
  switch and point to your external libraries (or the
  directories holding them).remove the class that loads *your* external 
library from
  the coreloader (if you already have containing jar declared in 
classpath) 

ANT CLASSPATH IS NOW DEVOID OF $ANT_HOME/lib:
The wrapper script of Ant 1.6.x no longer adds the contents
of ANT_HOME/lib to CLASSPATH,

Classloader loading for CORELOADER Classloader: 
instead Ant will create a classloader on TOP of the BOOTSTRAP
classloader - 
let's call it the CORELOADER for the rest of
this answer - which holds the contents of
ANT_HOME/lib. 
 Ant's core and its tasks will be
loaded through CORELOADER classloader and not the bootstrap
classloader

https://ant.apache.org/faq.html
MG>clear?

> 
> Wayne
> On Oct 12, 2015 1:05 PM, "K R"  wrote:
> 
> > What do I need to do to make this work see error below?
> >
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (compile) on project
> > YT-100_ATU_Controller: An Ant BuildException has occured: Problem: failed
> > to create task or type scp
> > [ERROR] Cause: the class org.apache.tools.ant.taskdefs.optional.ssh.Scp was
> > not found.
> > [ERROR] This looks like one of Ant's optional components.
> > [ERROR] Action: Check that the appropriate optional JAR exists in
> > [ERROR] -ANT_HOME\lib
> > [ERROR] -the IDE Ant configuration dialogs
> > [ERROR]
> > [ERROR] Do not panic, this is a common problem.
> > [ERROR] The commonest cause is a missing JAR.
> > [ERROR]
> > [ERROR] This is not a bug; it is a configuration problem
> >
> > I have the  dependency
> >
> > 
> >   com.jcraft
> >   jsch
> >   0.1.53
> >   
> >
> >   
> >   ant
> >   ant-jsch
> >   1.6.5
> >   
> >
> >
> > 
> >   compile
> >   package
> >   
> > 
> >  >  todir="${ftp-userid}@${ftp-server}:${deployment.dir}"
> >  trust="true"
> >  port="${ftp-port}"
> >  password="${ftp-password}"/>
> >
> >   
> >   
> >run
> >   
> >  
> >
  

RE: Webstart Maven Plugin using jarsigner with proxy

2015-10-06 Thread Martin Gainty
-submit maven-jarsigner-plugin accomodation for proxy params in configuration 
request to d...@maven.apache.org

-submit your testcase and patch for accomodating 'proxy arguments within 
configuration' for maven-jarsigner-plugin to
https://issues.apache.org/jira/browse/MJARSIGNER/?selectedTab=com.atlassian.jira.jira-projects-plugin:summary-panel

Michael Osipov is the lead..if for any reason he is busy Im sure someone will 
implement this by month end
Nota Bene:maven-jarsigner-plugin proxy configuration changes will probably be 
voted on when RC is cut

Thanks Moe
Martin 



> Date: Tue, 6 Oct 2015 20:40:29 +0200
> Subject: Re: Webstart Maven Plugin using jarsigner with proxy
> From: sverre@gmail.com
> To: users@maven.apache.org
> 
> I am already using both maven-keytool-plugin and
> maven-jarsigner-plugin. Providing jarsigner proxy with
> maven-jarsigner-plugin is not what I have problem with. I am also
> using webstart-maven-plugin where I cannot find a way to set the proxy
> to use. From what I can see there looks to be no way of configuring
> extra jarsigner arguments using webstart-maven-plugin.
> 
> As a hack I have renamed /usr/java/latest/bin/jarsigner, created a new
> script called jarsigner that calls the renamed jarsigner with the
> proxy arguments. Not pretty, but it works as temporary patch.
> 
> This would be much easier if the tool jarsigner could use the
> configured Java proxy settings.
> 
> 
> 2015-10-06 19:20 GMT+02:00 Martin Gainty <mgai...@hotmail.com>:
> >
> >
> >> Date: Tue, 6 Oct 2015 13:33:40 +0200
> >> Subject: Webstart Maven Plugin using jarsigner with proxy
> >> From: sverre@gmail.com
> >> To: users@maven.apache.org
> >>
> >> How can I provide Java properties to Maven webstart plugin to be used
> >> when calling Jarsigner?
> >>
> >> 
> >> org.codehaus.mojo
> >> webstart-maven-plugin
> >> 
> >> 
> >> ${keystore}
> >> ${storepass}
> >> ${storetype}
> >> ${sign.alias}
> >> ${tsa}
> >> 
> >> 
> >> 
> >
> > MG>2 step process supply authentication credentials via configuration
> > http://www.mojohaus.org/keytool/keytool-maven-plugin/
> > 
> > newKeyPassword
> > newStorePassword
> > 
> > NB:Some codehaus artifacts are still being transferred here so you should 
> > download everything you need (including source) asap
> > MG>
> >
> > MG>once keytool-maven-plugin packages your keystore file to a known 
> > location.. then call maven-jarsigner-plugin
> > https://maven.apache.org/plugins/maven-jarsigner-plugin/sign-mojo.html
> > 
> >  (supply keystore from known location)
> >  (support location of timestamp authority)
> > 
> >  -J-Dhttps.proxyHost=proxy.company.com
> >  -J-Dhttps.proxyPort=3128
> > 
> > 
> > MG>
> >>
> >> While using the maven-jarsigner-plugin I am able to supply properties
> >> for my Proxy.
> >> 
> >> org.apache.maven.plugins
> >> maven-jarsigner-plugin
> >> 
> >> 
> >> -J-Dhttps.proxyHost=proxy.company.com
> >> -J-Dhttps.proxyPort=3128
> >> -tsa
> >> ${tsa}
> >> 
> >> 
> >> 
> >>
> >> I cannot find any similar settings for the maven webstart plugin.
> >>
> >> Would not need to do this in my pom.xml if Jarsigner could use the
> >> default Java proxy settings I have configured in Java Control Panel
> >> Network Settings.
> >>
> >> -
> >> 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: Webstart Maven Plugin using jarsigner with proxy

2015-10-06 Thread Martin Gainty


> Date: Tue, 6 Oct 2015 13:33:40 +0200
> Subject: Webstart Maven Plugin using jarsigner with proxy
> From: sverre@gmail.com
> To: users@maven.apache.org
> 
> How can I provide Java properties to Maven webstart plugin to be used
> when calling Jarsigner?
> 
> 
> org.codehaus.mojo
> webstart-maven-plugin
> 
> 
> ${keystore}
> ${storepass}
> ${storetype}
> ${sign.alias}
> ${tsa}
> 
> 
> 

MG>2 step process supply authentication credentials via configuration
http://www.mojohaus.org/keytool/keytool-maven-plugin/

newKeyPassword
newStorePassword

NB:Some codehaus artifacts are still being transferred here so you should 
download everything you need (including source) asap
MG>

MG>once keytool-maven-plugin packages your keystore file to a known location.. 
then call maven-jarsigner-plugin
https://maven.apache.org/plugins/maven-jarsigner-plugin/sign-mojo.html

 (supply keystore from known location)
 (support location of timestamp authority)

 -J-Dhttps.proxyHost=proxy.company.com
 -J-Dhttps.proxyPort=3128


MG>
> 
> While using the maven-jarsigner-plugin I am able to supply properties
> for my Proxy.
> 
> org.apache.maven.plugins
> maven-jarsigner-plugin
> 
> 
> -J-Dhttps.proxyHost=proxy.company.com
> -J-Dhttps.proxyPort=3128
> -tsa
> ${tsa}
> 
> 
> 
> 
> I cannot find any similar settings for the maven webstart plugin.
> 
> Would not need to do this in my pom.xml if Jarsigner could use the
> default Java proxy settings I have configured in Java Control Panel
> Network Settings.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
  

RE: Webstart Maven Plugin using jarsigner with proxy

2015-10-06 Thread Martin Gainty


> Date: Tue, 6 Oct 2015 13:33:40 +0200
> Subject: Webstart Maven Plugin using jarsigner with proxy
> From: sverre@gmail.com
> To: users@maven.apache.org
> 
> How can I provide Java properties to Maven webstart plugin to be used
> when calling Jarsigner?
> 
> 
> org.codehaus.mojo
> webstart-maven-plugin
> 
> 
> ${keystore}
> ${storepass}
> ${storetype}
> ${sign.alias}
> ${tsa}
> 
> 
> 

MG>2 step process supply authentication credentials via configuration
http://www.mojohaus.org/keytool/keytool-maven-plugin/

newKeyPassword
newStorePassword

NB:Some codehaus artifacts are still being transferred here so you should 
download everything you need (including source) asap
MG>

MG>once keytool-maven-plugin packages your keystore file to a known location.. 
then call maven-jarsigner-plugin
https://maven.apache.org/plugins/maven-jarsigner-plugin/sign-mojo.html

 (supply keystore from known location)
 (support location of timestamp authority)

 -J-Dhttps.proxyHost=proxy.company.com
 -J-Dhttps.proxyPort=3128


MG>
> 
> While using the maven-jarsigner-plugin I am able to supply properties
> for my Proxy.
> 
> org.apache.maven.plugins
> maven-jarsigner-plugin
> 
> 
> -J-Dhttps.proxyHost=proxy.company.com
> -J-Dhttps.proxyPort=3128
> -tsa
> ${tsa}
> 
> 
> 
> 
> I cannot find any similar settings for the maven webstart plugin.
> 
> Would not need to do this in my pom.xml if Jarsigner could use the
> default Java proxy settings I have configured in Java Control Panel
> Network Settings.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
  

RE: Best way to keep test resources with junit / surefire /maven.

2015-10-03 Thread Martin Gainty
> From: bur...@spinn3r.com
> Date: Sat, 3 Oct 2015 16:20:56 -0700
> Subject: Best way to keep test resources with junit / surefire /maven.
> To: users@maven.apache.org
> 
> I'm trying to figure out if there's a better way to do this.
> 
> Java doesn't support "here files" or embedded files so you have to keep
> your resources external.  Usually in 'resources',
> 
> I don't want to have things like HTML code and other things in my tests as
> it makes the tests ugly.
> 
> But the problem is that once I create the resources, they can't participate
> in refactoring.
> 
> At least in intellij... even if it's *OBVIOUS* that the resource is
> associated with a given test.

MG>on possibility is to define additional directory in resources


 
   
HTMLFolderGoesHere
  



  

 org.apache.maven.plugins

 maven-surefire-plugin

 2.18.1



  
HTMLFolderGoesHere
MG>would this work?


> 
> Is there a cleaner way to do this?
> 
> Either this whole thing is broken or I'm doing it wrong.
> 
> -- 
> 
> We’re hiring if you know of any awesome Java Devops or Linux Operations
> Engineers!
> 
> Founder/CEO Spinn3r.com
> Location: *San Francisco, CA*
> blog: http://burtonator.wordpress.com
> … or check out my Google+ profile
> 
  

  1   2   3   4   5   6   7   8   >