Building a project with maven and have the problem with POM configuration that result in error when compiling

The following artifacts could not be resolved: javax.jms:jms:jar:1.1,, Could not transfer artifact javax.jms:jms:jar:1.1 from/to ( No connector available to access repository ( of type legacy using the available factories WagonRepositoryConnectorFactory


You need to add the JBoss Nexus repository that does have the artifacts
JBoss repository