Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Maven eigenes Plugin (Ressources)

Empfohlene Antworten

Veröffentlicht

Hallo zusammen.

Ich schreibe momentan an einem Maven Plugin.


Set setOfArtifacts = mavenProject.getArtifacts();


		if (setOfArtifacts != null) {

			getLog().info("size :" + setOfArtifacts.size());


			Iterator setOfArtifactsIterator = setOfArtifacts.iterator();


			while (setOfArtifactsIterator.hasNext()){

				Artifact artifact = (Artifact) setOfArtifactsIterator.next();				

				getLog().info("used artifact: "+artifact);		

			}

		} else {

			getLog().info("listOfArtifacts is null");

		}



Ich lasse mir alle abhängigen Artifacts eines Maven-Projektes ausgeben.

So weit so gut, aber ich bräuchte alle Basisverzeichniss dieser Artifactes.

Bei diesen Artifactes handelt es sich großteils um eigene Maven-Projekte.

Ich möchte also beim build-Prozess herausfinden, wo sich diese Projekte genau befinden, bzw. wo sich deren Ressourcen befinden.

Natürlich könnte man über Artifact.getFile() herausfinden, wo sich die Klassen befinden und von dort könnte man sich ins Ressources-Verzeichnis bewegen, allerdings wäre das etwas hart verdrahtet und es gibt evtl. noch eine bessere lösung a la ... Artifact().xyz....getResourcesFolder().

Vielleicht hat ja jemand eine Lösung parat.

Letztendlich brauche ich alle transitiv abhängigen Projekte und vorallem ihre Ressourcen.

mfg KhanQ

Bearbeitet von Khanq

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.