org.jboss.da:bc-backend

This project is a service, which provides information about built artifacts and analyse the projects' dependencies.

License

License

Categories

Categories

JBoss Container Application Servers
GroupId

GroupId

org.jboss.da
ArtifactId

ArtifactId

bc-backend
Last Version

Last Version

1.2.1
Release Date

Release Date

Type

Type

ejb
Description

Description

This project is a service, which provides information about built artifacts and analyse the projects' dependencies.

Download bc-backend

How to add to project

<!-- https://jarcasting.com/artifacts/org.jboss.da/bc-backend/ -->
<dependency>
    <groupId>org.jboss.da</groupId>
    <artifactId>bc-backend</artifactId>
    <version>1.2.1</version>
    <type>ejb</type>
</dependency>
// https://jarcasting.com/artifacts/org.jboss.da/bc-backend/
implementation 'org.jboss.da:bc-backend:1.2.1'
// https://jarcasting.com/artifacts/org.jboss.da/bc-backend/
implementation ("org.jboss.da:bc-backend:1.2.1")
'org.jboss.da:bc-backend:ejb:1.2.1'
<dependency org="org.jboss.da" name="bc-backend" rev="1.2.1">
  <artifact name="bc-backend" type="ejb" />
</dependency>
@Grapes(
@Grab(group='org.jboss.da', module='bc-backend', version='1.2.1')
)
libraryDependencies += "org.jboss.da" % "bc-backend" % "1.2.1"
[org.jboss.da/bc-backend "1.2.1"]

Dependencies

compile (7)

Group / Artifact Type Version
org.jboss.da : communication ejb 1.2.1
org.jboss.da : bc-model ejb 1.2.1
org.jboss.da : common ejb 1.2.1
org.jboss.da : reports-backend ejb 1.2.1
org.slf4j : slf4j-api jar 1.7.7
junit : junit jar
org.mockito : mockito-all jar 1.10.19

provided (3)

Group / Artifact Type Version
org.jboss.spec : jboss-javaee-7.0 pom 1.0.3.Final
org.projectlombok : lombok jar 1.16.4
com.fasterxml.jackson.core : jackson-annotations jar 2.5.4

Project Modules

There are no modules declared in this project.

Dependency-analysis

Dependency analyzer CLI

Build a project

  • mvn clean package

Build a project and run integration tests in testsuite module

  • mvn clean verify -DtestsuiteContainer=/path/to/EAP/dir
  • You can exclude tests, which use remote services, using -PexcludeRemoteTests

Deploy/work with local jboss instance

Working with JBoss Developer Studio (JBDS)

  • Deploying through IDE via 'Run on Server' (e.g. JBDS) seems to corrupt expected endpoints, use maven command to deploy/undeploy

  • Project DA uses lombok.jar to generate boilerplate getters/setters/constructors via annotations, download/install into your IDE as per https://projectlombok.org/download.html

  • Workspace errors in .js, .xml, other files can be ignored as long as Maven build completes successfully from command line

Setup application

  • Setup PostgreSQL database
  • Datasource configuration and connection information in the standalone.xml datasource has to be named "PostgresDA"
  • JDBC for PostgreSQL is needed. You have to add it to standalone.xml
  • Add to the folder <EAP_HOME>/modules/system/layers/base/org/postgresql/main/ a file named module.xml and a file with the driver (download from here)
  • The Dependency Analysis project uses a JSON configuration file for its configuration and is found in common/src/main/resources/da-config.json or it can be set using property da-config-file
  • You can set values to cofigure Dependency Analyser
    • keycloak% - keycloak settings
    • pncServer - link to pnc server
    • aproxServer - link to Indy server
    • aproxGroup - Indy group

Run/debug integration tests in 'testsuite' through IDE (JBDS/Eclipse)

  • Install Arquillian support:

    • Help -> Install New Software -> Work With -> http://download.jboss.org/jbosstools/updates/stable/luna/
    • Select 'Arquillian support' under 'JBoss Web and Java EE Development'
    • Create a run configuration for any test class/test method you want to run (right click - Run As - JUnit)
    • Open 'Arquillian' tab under the run configuration to set properties (jbossHome, managementPort)
  • Run/Debug your run configuration

Metrics support

PNC tracks metrics of JVM and its internals via Dropwizard Metrics. The metrics can currently be reported to a Graphite server by specifying as system property or environment variables those properties:

  • metrics_graphite_server (mandatory)
  • metrics_graphite_port (mandatory)
  • metrics_graphite_prefix (mandatory)
  • metrics_graphite_interval (optional)

If the metrics_graphite_interval variable (interval specified in seconds) is not specified, we'll use the default value of 60 seconds to report data to Graphite.

The graphite reporter is configured to report rates per second and durations in terms of milliseconds.

org.jboss.da

Versions

Version
1.2.1
1.2.0
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
0.8.2