This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 138567 - maven war runtime libs not in import or compile
Summary: maven war runtime libs not in import or compile
Status: RESOLVED INVALID
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-30 06:18 UTC by hanasaki
Modified: 2008-06-30 07:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
maven profiles.xml (562 bytes, text/xml)
2008-06-30 06:25 UTC, hanasaki
Details
maven pom.xml (1.65 KB, text/xml)
2008-06-30 06:25 UTC, hanasaki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hanasaki 2008-06-30 06:18:01 UTC
Using the attached pom.xml vraptor is included however fix imports cannot find the @Component class.
Also, compile fails to find the class
build fails
issue in 6.1 final and also nightly 6.5 2008-06-29
Comment 1 hanasaki 2008-06-30 06:25:15 UTC
Created attachment 63653 [details]
maven profiles.xml
Comment 2 hanasaki 2008-06-30 06:25:34 UTC
Created attachment 63654 [details]
maven pom.xml
Comment 3 Milos Kleint 2008-06-30 07:00:02 UTC
the described problems are caused by the <scope>runtime</scope> on the vraptor dependency. runtime scope means it's
included in the project's runtime classpath but not in the compilation classpath. You need to put the
<scope>compile</scope> to have vraptro on compilation classpath. or alternatively <scope>provided</scope> that will have
vraptor on compilation classpath AND not bundled with the war. 


Please refer to maven documentation and read on dependency resolution and scopes.