Re: Maven assembly plugin - Proxies not working with mirrors

2022-12-22 Thread Abhinav Sharma
I have tried with maven 3.8.6 as well. Same error comes.

On Thu, 22 Dec, 2022, 19:00 Delany,  wrote:

> Use Maven v3.8.6 if you can Abhinav
> Delany
>
>
> On Thu, 22 Dec 2022 at 14:17, Abhinav Sharma 
> wrote:
>
> > Hi,
> > I am using maven 3.8.2 with java 11 in my system, with remotes configured
> > for jfrog artifactory.
> >
> > With both mirror and proxy added, mvn is ignoring the proxies and failing
> > to resolve any dependency. How do I set proxies for maven mirrors as
> well?
> >
> > Without a mirror, the maven assembly plugin is not looking in the
> > configured jfrog repositories for the dependencies. It starts looking at
> > some random repo.
> >
> > [INFO] maven-assembly-plugin:3.3.0:single (make-assembly)sample-project
> ---
> > Downloading from jvnet-nexus-staging:
> > http://maven.java.net/content/repositories/staging/
> > <
> >
> http://maven.java.net/content/repositories/staging/com/infosys/fbp/platform/fbp-parent-pom/1.5-SNAPSHOT/maven-metadata.xml
> > >com/example/sample-project/0.0.1-SNAPSHOT
> > <
> >
> http://maven.java.net/content/repositories/snapshots/com/infosys/fbp/platform/fbp-parent-pom/1.5-SNAPSHOT/maven-metadata.xml
> > >/maven-metadata.xml
> > <
> >
> http://maven.java.net/content/repositories/staging/com/infosys/fbp/platform/fbp-parent-pom/1.5-SNAPSHOT/maven-metadata.xml
> > >
> > Downloading from releases.java.net:
> > http://maven.java.net/content/repositories/releases/
> > <
> >
> http://maven.java.net/content/repositories/releases/com/infosys/fbp/platform/fbp-parent-pom/1.5-SNAPSHOT/maven-metadata.xml
> > >com/example/sample-project/0.0.1-SNAPSHOT
> > <
> >
> http://maven.java.net/content/repositories/snapshots/com/infosys/fbp/platform/fbp-parent-pom/1.5-SNAPSHOT/maven-metadata.xml
> > >/maven-metadata.xml
> > <
> >
> http://maven.java.net/content/repositories/releases/com/infosys/fbp/platform/fbp-parent-pom/1.5-SNAPSHOT/maven-metadata.xml
> > >
> > Downloading from shapshots.java.net:
> >
> >
> http://maven.java.net/content/repositories/snapshots/com/example/sample-project/0.0.1-SNAPSHOT/maven-metadata.xml
> > <
> >
> http://maven.java.net/content/repositories/snapshots/com/infosys/fbp/platform/fbp-parent-pom/1.5-SNAPSHOT/maven-metadata.xml
> > >
> >
> >
> > I am expecting to access jfrog maven virtual repo with mirror enabled
> > behind the company proxy, or force assembly plugin to look into the
> > repositories defined in settings.xml.
> >
> > I am using settings.xml file similar to this:
> >
> > 
> > http://maven.apache.org/SETTINGS/1.2.0
> > http://maven.apache.org/xsd/settings-1.2.0.xsd; xmlns="
> > http://maven.apache.org/SETTINGS/1.2.0;
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
> >   
> > 
> >   username
> >   password
> >   central
> > 
> > 
> >   username
> >   password
> >   snapshots
> > 
> >   
> >   
> > 
> >   *
> >   project-repo
> >   https://company.jfrog.io/artifactory/project-repo
> >   project-repo
> > 
> >   
> >   
> > 
> >   
> > 
> >   
> > false
> >   
> >   central
> >   project-repo
> >   https://company.jfrog.io/artifactory/project-repo
> > 
> > 
> >   
> >   snapshots
> >   project-repo
> >   https://company.jfrog.io/artifactory/project-repo
> > 
> >   
> >   
> > 
> >   
> > false
> >   
> >   central
> >   project-repo
> >   https://company.jfrog.io/artifactory/project-repo
> > 
> > 
> >   
> >   snapshots
> >   project-repo
> >   https://company.jfrog.io/artifactory/project-repo
> > 
> >   
> >   artifactory
> > 
> >   
> >   
> > artifactory
> >   
> >  
> > 
> > jfrog-proxy
> > true
> > https
> > proxyhost
> > proxyport
> >   
> > 
> > 
> >
>


Maven assembly plugin - Proxies not working with mirrors

2022-12-22 Thread Abhinav Sharma
Hi,
I am using maven 3.8.2 with java 11 in my system, with remotes configured
for jfrog artifactory.

With both mirror and proxy added, mvn is ignoring the proxies and failing
to resolve any dependency. How do I set proxies for maven mirrors as well?

Without a mirror, the maven assembly plugin is not looking in the
configured jfrog repositories for the dependencies. It starts looking at
some random repo.

[INFO] maven-assembly-plugin:3.3.0:single (make-assembly)sample-project ---
Downloading from jvnet-nexus-staging:
http://maven.java.net/content/repositories/staging/
com/example/sample-project/0.0.1-SNAPSHOT
/maven-metadata.xml

Downloading from releases.java.net:
http://maven.java.net/content/repositories/releases/
com/example/sample-project/0.0.1-SNAPSHOT
/maven-metadata.xml

Downloading from shapshots.java.net:
http://maven.java.net/content/repositories/snapshots/com/example/sample-project/0.0.1-SNAPSHOT/maven-metadata.xml



I am expecting to access jfrog maven virtual repo with mirror enabled
behind the company proxy, or force assembly plugin to look into the
repositories defined in settings.xml.

I am using settings.xml file similar to this:


http://maven.apache.org/SETTINGS/1.2.0
http://maven.apache.org/xsd/settings-1.2.0.xsd; xmlns="
http://maven.apache.org/SETTINGS/1.2.0;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
  

  username
  password
  central


  username
  password
  snapshots

  
  

  *
  project-repo
  https://company.jfrog.io/artifactory/project-repo
  project-repo

  
  

  

  
false
  
  central
  project-repo
  https://company.jfrog.io/artifactory/project-repo


  
  snapshots
  project-repo
  https://company.jfrog.io/artifactory/project-repo

  
  

  
false
  
  central
  project-repo
  https://company.jfrog.io/artifactory/project-repo


  
  snapshots
  project-repo
  https://company.jfrog.io/artifactory/project-repo

  
  artifactory

  
  
artifactory
  
 

jfrog-proxy
true
https
proxyhost
proxyport
  




Specify Output File Name : Native Maven Plugin

2009-05-26 Thread Abhinav Sharma

I'm using the native plugin to build a C++ static library. However, the
output name is always ${project.artifactId}.a. I would like to the name of
the out file. Is there a way to do this? 

Thanks,
Abhinav
-- 
View this message in context: 
http://www.nabble.com/Specify-Output-File-Name-%3A-Native-Maven-Plugin-tp23719122p23719122.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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