Non annotation type for activation object with descriptor - osgi

I am getting error when I deploy mvn project . Non annotation type for activation object with descriptor (Lcom/xxx/sss/ssss;)V, type xxxxx -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal biz.aQute.bnd:bnd-maven-plugin:5.1.2:bnd-process (bnd-process) on project xxxxxx: Non annotation type for activation object with descriptor

Related

Maven : could not resolve dependencies on J2EE project

I am trying to package my JEE application with Maven.
I am getting this error:
Failed to execute goal on project xxx: Could not resolve dependencies for project com.xxx.xxx:xxx:war:0.0.1-SNAPSHOT: Failed to collect dependencies at net.sf.jasperreports:jasperreports:jar:6.0.0 ->
org.olap4j:olap4j:jar:0.9.7.309-JS-3: Failed to read artifact descriptor for org.olap4j:olap4j:jar:0.9.7.309-JS-3: Could not transfer artifact org.olap4j:olap4j:pom:0.9.7.309-JS-3 from/to maven-default-http-blocker (http://0.0.0.0/
): Blocked mirror for repositories: [jasperreports (http://jasperreports.sourceforge.net/maven2, default, releases+snapshots), jaspersoft-third-party (http://jaspersoft.artifactoryonline.com/jaspersoft/third-party-ce-artifacts/, default, releases+snapshots)] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project xxx: Could not resolve dependencies for project com.xxx.xxx:xxx:war:0.0.1-SNAPSHOT: Failed to collect dependencies at net.sf.jasperreports:jasperreports:jar:6.0.0 -> org.olap4j:olap4j:jar:0.9.7.309-JS-3
I do have this library in my repo :
How could I solve this issue?

maven build fails with weird mockito dependecy attempted and failed

I'm trying to build and run the maven project as mentioned here https://github.com/gateio/gateapi-java/tree/master/example. As far as I can see the pom.xml doesn't even mention mockito but the maven build fails with
[ERROR] Failed to execute goal on project gateapi-demo: Could not resolve dependencies for project io.gate.apidemo:gateapi-demo:jar:1.0-SNAPSHOT: Failed to collect dependencies at io.gate:gate-api:jar:5.15.3: Failed to read artifact descriptor for io.gate:gate-api:jar:5.15.3: Could not transfer artifact io.gate:gate-api:pom:5.15.3 from/to mockito (https://mvnrepository.com/artifact/org.mockito/mockito-all): authorization failed for https://mvnrepository.com/artifact/org.mockito/mockito-all/io/gate/gate-api/5.15.3/gate-api-5.15.3.pom, status: 403 Forbidden -> [Help 1]
What is going on here?

maven verify (sonar) fail to resolve defined argument

I am trying to verify using this parameter (which work for other projects)
mvn -X verify sonar:sonar -Drevision=4.0.10
Maven fails to download dependency because of the argument not resolved
Failed to execute goal on project APP-ear: Could not resolve
dependencies for project com.orginternational:APP-ear:ear:4.0.10:
Failed to collect dependencies at
com.orginternational:APP-was:war:4.0.10: Failed to read artifact
descriptor for com.orginternational:APP-was:war:4.0.10: Could not
transfer artifact com.orginternational:APP:pom:${revision} from/to en
(https://nexus.example.com/repository/maven-central/): Failed to
transfer file
https://nexus.example.com/repository/maven-central/com/orginternational/APP/$%7Brevision%7D/APP-$%7Brevision%7D.pom
with status code 400 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal on project APP-ear: Could not resolve dependencies for
project com.orginternational:APP-ear:ear:4.0.10: Failed to collect
dependencies at com.orginternational:APP-was:war:4.0.10
Any clue how to fix this please?

Jenkins throw an error with Maven goal cargo

When using Jenkins to build our project it throws the following error:
[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.2.4:redeploy (default-cli) on project xxxxx: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.2.4:redeploy failed: Cannot create configuration. There's no registered configuration for the parameters (container [id = [tomcat8x], type = [remote]], configuration type [runtime]). Actually there are no valid types registered for this configuration. Maybe you've made a mistake spelling it? -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.2.4:redeploy (default-cli) on project xxxxxx: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.2.4:redeploy failed: Cannot create configuration. There's no registered configuration for the parameters (container [id = [tomcat8x], type = [remote]], configuration type [runtime]). Actually there are no valid types registered for this configuration. Maybe you've made a mistake spelling it?
The plugin is declare as shown in the image below:
enter image description here
Thanks in advance for any help you can give me to solve this.

Maven assembly plugin fails to execute

I'm getting this message after attempting to "mvn package". It seems like there's an issue with retrieving the google collections jar, but I'm not sure if that's the only problem.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.3:single (make-assembly) on project recommender:
Execution make-assembly of goal org.apache.maven.plugins:maven-assembly-plugin:2.3:single failed:
Plugin org.apache.maven.plugins:maven-assembly-plugin:2.3 or one of its dependencies could not be resolved:
Failed to collect dependencies for org.apache.maven.plugins:maven-assembly-plugin:jar:2.3 ():
Failed to read artifact descriptor for com.google.collections:google-collections:jar:1.0:
Could not transfer artifact com.google.collections:google-collections:pom:1.0 from/to central (http://repo1.maven.org/maven2):
Specified destination directory cannot be created: /Users/danquach/.m2/repository/com/google/collections/google-collections/1.0 -> [Help 1]
The original error should be a local problem:
Specified destination directory cannot be created:
/Users/danquach/.m2/repository/com/google/collections/google-collections/1.0
Is your drive full?
Do you have write access to this path?
You can try to create /Users/danquach/.m2/repository/com/google/collections and call maven again.

Resources