NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Maven project missing library

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
radecek



Joined: 06 Aug 2012
Posts: 3

PostPosted: Mon Aug 06, 2012 7:31 pm    Post subject: Maven project missing library Reply with quote

Hello,

I have created the maven web application project with jsf, spring and hibernate. When maven is downloading the dependencies it returns the error:

Quote:
Please download the dependencies, or install the manually, if not available remotely.

The artefacts are:
javax.sql:jdbc-stdext:jar:2.0
javax.transaction:jta:jar:1.0.1B


I have downloaded the sql:jdbc-stdext:jar:2.0 but I didnt find how can I add this package to my project or how can I solve this problem?

Thank you
Back to top
predatorvi



Joined: 10 Sep 2010
Posts: 24

PostPosted: Mon Aug 06, 2012 11:07 pm    Post subject: Maven project missing library Reply with quote

Don't download it....add it as a dependency to the Maven Project POM.  Maven will download it for you.

On Mon, Aug 6, 2012 at 1:31 PM, radecek <address-removed ([email]address-removed[/email])> wrote:
Quote:
Hello,

I have created the maven web application project with jsf, spring and hibernate. When maven is downloading the dependencies it returns the error:


Quote:
Please download the dependencies, or install the manually, if not available remotely.

The artefacts are:
javax.sql:jdbc-stdext:jar:2.0
javax.transaction:jta:jar:1.0.1B


I have downloaded the sql:jdbc-stdext:jar:2.0 but I didnt find how can I add this package to my project or how can I solve this problem?

Thank you








--
Jeff Vincent
address-removed ([email]address-removed[/email])
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent
I ♥ DropBox !! 
Back to top
saikanth5



Joined: 31 Jul 2012
Posts: 44
Location: Hyderabad

PostPosted: Tue Aug 07, 2012 7:59 am    Post subject: Re: Maven project missing library Reply with quote

Right Click on Dependices of your module and click on the "Download declared Dependencies".
Hope this helps.






radecek wrote:
Hello,

I have created the maven web application project with jsf, spring and hibernate. When maven is downloading the dependencies it returns the error:

Quote:
Please download the dependencies, or install the manually, if not available remotely.

The artefacts are:
javax.sql:jdbc-stdext:jar:2.0
javax.transaction:jta:jar:1.0.1B


I have downloaded the sql:jdbc-stdext:jar:2.0 but I didnt find how can I add this package to my project or how can I solve this problem?

Thank you
Back to top
radecek



Joined: 06 Aug 2012
Posts: 3

PostPosted: Tue Aug 07, 2012 8:22 am    Post subject: Reply with quote

I have it in project dependencies but project cannot find the library..
Back to top
radecek



Joined: 06 Aug 2012
Posts: 3

PostPosted: Tue Aug 07, 2012 9:07 am    Post subject: Re: Maven project missing library Reply with quote

saikanth5 wrote:
Right Click on Dependices of your module and click on the "Download declared Dependencies".
Hope this helps.






radecek wrote:
Hello,

I have created the maven web application project with jsf, spring and hibernate. When maven is downloading the dependencies it returns the error:

Quote:
Please download the dependencies, or install the manually, if not available remotely.

The artefacts are:
javax.sql:jdbc-stdext:jar:2.0
javax.transaction:jta:jar:1.0.1B


I have downloaded the sql:jdbc-stdext:jar:2.0 but I didnt find how can I add this package to my project or how can I solve this problem?

Thank you


I have done. NetBeans says me that it downloaded all dependencies but I still have the same error. I have tried solve this problem click to project name and select "show and resolve the problem". And click to prime build in new opened window. I got this report:

Quote:

cd /home/radek/NetBeansProjects/mavenproject1; JAVA_HOME=/usr/lib/jvm/default-java /home/radek/.netbeans-7.2/java/maven/bin/mvn --fail-at-end install
Scanning for projects...

------------------------------------------------------------------------
Building mavenproject1 1.0-SNAPSHOT
------------------------------------------------------------------------
Downloading: http://repository.primefaces.org/unknown/binary/derbyclient/SNAPSHOT/derbyclient-SNAPSHOT.pom

Downloading: file:/home/radek/NetBeansProjects/mavenproject1/lib/unknown/binary/derbyclient/SNAPSHOT/derbyclient-SNAPSHOT.pom

The POM for unknown.binary:derbyclient:jar:SNAPSHOT is missing, no dependency information available
Downloading: http://repository.primefaces.org/javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0.jar
Downloading: http://repository.primefaces.org/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar


Downloading: file:/home/radek/NetBeansProjects/mavenproject1/lib/javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0.jar

Downloading: file:/home/radek/NetBeansProjects/mavenproject1/lib/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar

Downloading: http://repo.maven.apache.org/maven2/javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0.jar
Downloading: http://repo.maven.apache.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar


------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 5.349s
Finished at: Tue Aug 07 11:04:41 CEST 2012
Final Memory: 6M/72M
------------------------------------------------------------------------
Failed to execute goal on project mavenproject1: Could not resolve dependencies for project com:mavenproject1:war:1.0-SNAPSHOT: The following artifacts could not be resolved: javax.sql:jdbc-stdext:jar:2.0, javax.transaction:jta:jar:1.0.1B: Could not find artifact javax.sql:jdbc-stdext:jar:2.0 in primefaces (http://repository.primefaces.org/) -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Back to top
Javier Ortiz
Posted via mailing list.





PostPosted: Tue Aug 07, 2012 1:04 pm    Post subject: Maven project missing library Reply with quote

Sometimes libraries are just not in a Maven repository anywhere but you need to use them.

Define local repository:

<repository>
<id>project.local</id>
<name>project</name>
<url>file:${project.basedir}/repo</url>
</repository>

And add a folder named repo under the root of the project. Also the jar file needs to be placed in the correct location within the repo folder. For example: gudosoft\gsqlparser\gsp\4.2\<jar here>

And the jar needs to be named correctly: gsp-4.2.jar

Where the dependency on the jar is as follows:

<dependency>
<groupId>gudosoft.gsqlparser</groupId>
<artifactId>gsp</artifactId>
<version>4.2</version>
</dependency>


Senior Software Quality Engineer
ArthroCare Corporation
7000 William Cannon Drive
Austin, TX 78735
Phone: 512-358-5996
email: address-removed


-----Original Message-----
From: radecek [mailto:address-removed]
Sent: Monday, August 06, 2012 2:31 PM
To: address-removed
Subject: [nbusers] Maven project missing library

Hello,

I have created the maven web application project with jsf, spring and hibernate. When maven is downloading the dependencies it returns the error:


Quote:
Please download the dependencies, or install the manually, if not available remotely.

The artefacts are:
javax.sql:jdbc-stdext:jar:2.0
javax.transaction:jta:jar:1.0.1B


I have downloaded the sql:jdbc-stdext:jar:2.0 but I didnt find how can I add this package to my project or how can I solve this problem?

Thank you




**********

The information contained in this e-mail message, together with any
attachments thereto, is intended only for the personal and confidential
use of the addressee named above. The message and the attachments
are or may be privileged or protected communication. If you are not the
intended recipient of this message, or authorized to receive it for the
intended recipient, you have received this message in error, and you
are not to review, use, disseminate, distribute or copy this message,
any attachments thereto, or their contents. If you have received this
message in error, please immediately notify us by return e-mail
message, and delete the original message.

Pursuant to Circular 230 issued by the United States Treasury
Department and relating to practice before the Internal Revenue
Services, any comment or opinion in this communication relating to a
federal tax issue is not intended to be used, and cannot be used, by a
taxpayer for the purpose of avoiding tax-related penalties that may be
imposed on the taxpayer.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo