This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven - Unresolved references to [javax.activation, javax.annotation] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven - Unresolved references to [javax.activation, javax.annotation]" Watch "Maven - Unresolved references to [javax.activation, javax.annotation]" New topic
Author

Maven - Unresolved references to [javax.activation, javax.annotation]

Peter Penzov
Greenhorn

Joined: Jul 19, 2011
Posts: 10
I'm developing web application with OSGI. I have a maven configuration error which I cannot find. This is the complete source code: http://uploading.com/files/8e5c9888/SH_27_test.zip/

This is the POM file:





When I try to compile it with Netbeans I get this error: http://pastebin.com/whxuSb7V

The problem occurs when I add @Datasource. It seems that I'm missing something in the POM file but I don't have idea what it is?

Any help will be highly appreciated.

Best Wishes Peter
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5811
    
    7

I think that you need to add a javaee JAR file to the dependencies because that is where I see the javax.activation.DataSource class is located. But I'm not sure about the interaction between OSGI and Maven and who declares what where.

The error that you pointed too seems to have something to do with OSGI configuration files:

Caused by: org.apache.maven.plugin.MojoFailureException: Error(s) found in bundle configuration
at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:355)

Would be nice if the plugin outlined those errors, but the sheer amount of text you posted is a lot more than I want to look through, especially not knowing OSGI or what info it outputs.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven - Unresolved references to [javax.activation, javax.annotation]
 
Similar Threads
Could not resolve dependencies for maven project
maven java:compile
maven error
Maven web project dependencies
Sonar - Native Plugin