Advice or examples on using aether

2020-08-20 Thread Farid Zakaria
Hello!

I'm seeking to use aether (not through Maven plugin) to collect the
transitive closure given a top level `pom.xml`

(I'd like the version resolution strategy to mimic however maven does it
for transitive dependencies)

I see simple examples online that show that much however where I am stumped
are I need additional information:

- the plugins (used by the top level pom.xml)
- the .pom files for each dependency

I'm trying to collect the remote repository information necessary to
reconstruct a local repo for a separate program.

Thanks in advance for your help. 🎉


Fetching checksums + remote repository URL

2020-07-20 Thread Farid Zakaria
Hello!

Wouldn't mind a bit of help or maybe some advice to the right direction.

I'm trying to leverage the *Aether* API to calculate when given a *pom.xml* the
transitive closure for the project and spit out:
1. the remote repository URI to the artifact resolved
2. the checksum of the artifact

Seems like I can figure out how I can get the transitive closure for a
project, but figuring out the remote repository URI it was resolved from
& the checksum is troublesome.

Thanks!
Farid Zakaria


Maven Extension Idea: iJar support

2017-10-03 Thread Farid Zakaria
I was combing through Bazel <https://bazel.build> (google's build tool) and
found a concept called iJar
<https://github.com/bazelbuild/bazel/tree/master/third_party/ijar>
iJar is basically a stripped out version of the Jar removing everything but
the public method signatures (very stripped out byte code jar).

Their build tool uses iJars in determining if upstream dependencies can be
skipped to be rebuilt. The idea being: if the interface (iJar) of the
current project hasn't changed (SHA), there's no need to rebuild upstream
dependencies since any possible method they'd have used did not change.

My guess is this would be a good way to speed up "-amd"
(also-make-dependents) by quickly stopping the build based on the iJar.

Could this be done as a maven extension?

Farid Zakaria


XML parsing error when trying to read archetype-catalog.xml

2010-04-05 Thread Farid Derradji
MY SYSTEM CONFIGURATION

Operating System:   SuSE Linux 11.1
Java Version:   JDK 1.6.0_19



HOW I PRODUCED THE ERROR

I wanted to create a project by typing:

   mvn archetype:generate -DarchetypeCatalog=remote


Since mvn answered that no archetype was defined, I repeated the command
with the option -e to turn on error stack trace:

   mvn -e archetype:generate -DarchetypeCatalog=remote


Neither any archetypes were found nor any error messages were returned.


Now I started a browser session with Firefox 3.0.13 and navigated to the
following URL:

   http://repo1.maven.org/maven2/archetype-catalog.xml

But instead of displaying any contents my browser returned th following
error message:

XML Parsing Error: syntax error
Location: http://repo1.maven.org/maven2/archetype-catalog.xml
Line Number 1, Column 1:

ArchetypeContentGenerator
^


How can I solve that problem?


Regards
Farid

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



[m2] where is the Maven 2.0 RC ?

2005-10-17 Thread farid

Hi everybody !

Sorry the for the question but where is the RC version everybody is 
talking about.
On the main maven site http://maven.apache.org/maven2/ it is nowhere to 
be found.


Thanks again,

Farid


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] site generation problem

2005-10-06 Thread farid

Vincent Siveton a écrit :

Hi Farid,

I am not an expert of this plugin.

But, instead of the jdepend itself, you should add the jdepend maven plugin:
http://mojo.codehaus.org/jdepend-maven-plugin/howto.html



Thanx for the info but I tried that and I think that I miss a repository 
here.
Should I just add a repository in my POM or is there something else that 
I should do ?

In short what is the URL of the mojo repository ?

I think that I'm close to write a beginner beginner's guide :)

Thanks,

Farid




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] site generation problem

2005-10-06 Thread farid

Brett Porter a écrit :

It should generate the mailing lists and such. The default report
registered is only the project info reports though.

If you'd like other plugins, you must add them to the list of
reporting plugins in your pom.


Thanks for the Info but I stumbled on an NPE while trying to add the 
jdepend plugin in my POM.

Basically it went like this:


  

  jdepend
  jdepend
  2.7

  


But after running "m2 site:site" I fell on this:
(sorry for the length of the message)

Any idea ?

I tried to search for arelevant issue but found none...

[INFO] Searching repository for plugin with prefix: 'site'.
[INFO] 


[INFO] Building com.cnc.commandes:commandes:jar:1.0-SNAPSHOT
[INFO]task-segment: [site:site]
[INFO] 


---
constituent[0]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/commons-cli-1.0.jar
constituent[1]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/doxia-sink-api-1.0-alpha-4.jar

constituent[2]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/jline-0.9.1.jar
constituent[3]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/jsch-0.1.21.jar
constituent[4]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-artifact-2.0-beta-2.jar
constituent[5]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-artifact-manager-2.0-beta-2.jar
constituent[6]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-core-2.0-beta-2.jar
constituent[7]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-model-2.0-beta-2.jar
constituent[8]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-monitor-2.0-beta-2.jar
constituent[9]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-plugin-api-2.0-beta-2.jar
constituent[10]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-plugin-descriptor-2.0-beta-2.jar
constituent[11]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-plugin-registry-2.0-beta-2.jar
constituent[12]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-profile-2.0-beta-2.jar
constituent[13]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-project-2.0-beta-2.jar
constituent[14]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-reporting-api-2.0-beta-2.jar
constituent[15]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-repository-metadata-2.0-beta-2.jar
constituent[16]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-settings-2.0-beta-2.jar
constituent[17]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/plexus-input-handler-1.0-alpha-2.jar
constituent[18]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/wagon-file-1.0-alpha-4.jar
constituent[19]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/wagon-http-lightweight-1.0-alpha-4.jar
constituent[20]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/wagon-provider-api-1.0-alpha-4.jar
constituent[21]: 
file:/c:/Softs/Outils/maven-2.0-beta-2/lib/wagon-ssh-1.0-alpha-4.jar

---
java.lang.NullPointerException
	at 
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:297)
	at 
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:187)
	at 
org.apache.maven.plugin.DefaultPluginManager.verifyReportPlugin(DefaultPluginManager.java:480)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:624)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:595)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:497)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:478)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:460)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:136)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:216)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:246)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[m2] site generation problem

2005-10-06 Thread farid


Hi everybody I'm new on the list and new at m2 as well.

I was just wondering why m2 site:site doesn't generate a complete site 
with code analysis and all the project infos (like mailing list and such...)


Thanks in advance,

Farid



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]