-
1. Re: package org.jboss.ejb3.annotation does not exist
wdfink Nov 2, 2012 10:17 AM (in response to mats001)You might have to add the correct dependency to the pom.xml
<dependency>
<groupId>org.jboss.ejb3</groupId>
<artifactId>jboss-ejb3-ext-api</artifactId>
<scope>provided</scope>
</dependency>
-
2. Re: package org.jboss.ejb3.annotation does not exist
mats001 Nov 2, 2012 11:58 AM (in response to wdfink)Thanks, Wold-Dieter. That's my problem. Plus, since the artifact is not in marven repository, I have to use the following command to mannully import them to my local repository. Now it is working.
mvn install:install-file -Dfile=C:\jboss-as-7.1.1.Final\modules\org\jboss\ejb3\main\jboss-ejb3-ext-api-2.0.0.jar -DgroupId="org.jboss.ejb3" -DartifactId="jboss-ejb3-ext-api" -Dversion="2.0.0" -Dpackaging=jar
-
3. Re: package org.jboss.ejb3.annotation does not exist
wdfink Nov 2, 2012 12:36 PM (in response to mats001)Should be in the repository if you use the correct dependency.
I've used a new repo and it works.
See https://github.com/wfink/jboss-as-quickstart/tree/ejb-multi-server the root pom.xml and app-two/ejb/pom.xml (which use such jboss specific)
-
4. Re: package org.jboss.ejb3.annotation does not exist
berhauz Aug 22, 2016 5:05 PM (in response to mats001)alternatively, you can add the JBoss artifact repository references in your maven POM, or a parent project POM, or even the .m2 settings.xml (so that Maven will be able to resolve the dependency):
<repositories> <repository> <id>jboss-enterprise-maven-repository</id> <url>https://maven.repository.redhat.com/ga/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>jboss-public-repository</id> <name>JBoss Public</name> <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url> <releases> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>false</enabled> <updatePolicy>daily</updatePolicy> </snapshots> </repository> </repositories>
and then add the dependency to the project in which some org.jboss annotations are used:
<dependency> <groupId>org.jboss.ejb3</groupId> <artifactId>jboss-ejb3-ext-api</artifactId> <version>2.2.0.Final</version> <scope>provided</scope> </dependency>