[mevenide-user] Trouble performing a NB deploy into an appserver of a Web app
"Ed Hillmann" <[email protected]>
| Newsgroups | gmane.comp.jakarta.turbine.maven.mevenide.user |
|---|---|
| Message-ID | <[email protected]> |
Hi. I'm trying out Maven2 for developing a Web application. I've
defined a Maven2 project for the Web application, and it compiles
fine. There's very little to it, but from the command line, mvn is
coping with it.
I also use NetBeans, and I'd like to use NB 6.0 (currently the RC1
version) to edit the application. I am hoping that the NetBeans "Run"
task will deploy the Web applicaiton into my App Server.
So, I'm running NB 6.0 RC1, and I've got my Glassfish server
accessible from within NetBeans. I've also defined for the Maven 2
project that I want it to use the correct application server.
When I click "Run" on the project in NetBeans, I get the following:
Scanning for projects...
----------------------------------------------------------------------------
Building CSR WebGUI
task-segment: [package,
org.codehaus.mevenide:netbeans-deploy-plugin:RELEASE:deploy]
----------------------------------------------------------------------------
project-execute
------------------------------------------------------------------------
[ERROR]BUILD ERROR
------------------------------------------------------------------------
Error building POM (may not be this project's POM).
Project ID: org.apache.maven.plugins:maven-war-plugin
Reason: Error getting POM for
'org.apache.maven.plugins:maven-war-plugin' from the repository:
Failed to resolve artifact, possibly due to a repository list that is
not appropriately equipped for this artifact's metadata.
org.apache.maven.plugins:maven-war-plugin:pom:2.1-alpha-2-SNAPSHOT
from the specified remote repositories:
deli.plugins.releases
(http://deli.intecbilling.com:8081/artifactory/plugins-releases),
deli.plugins.snapshots
(http://deli.intecbilling.com:8081/artifactory/plugins-snapshots),
central (http://repo1.maven.org/maven2),
netbeansIDE-repo-internal
(file:///ct/ctapp/netbeans-6.0-maven2/mevenide/m2-repository)
------------------------------------------------------------------------
For more information, run Maven with the -e switch
------------------------------------------------------------------------
Total time: 1 second
Finished at: Fri Nov 16 10:56:33 EST 2007
Final Memory: 29M/54M
------------------------------------------------------------------------
Now, I'm assuming that the NB plugin is trying to download the
dependencies? An important point is that I'm running NB on a Solaris
box. This Solaris box does not have internet access. However, my mvn
settings (from the command line) have defined a Mirror so I can use a
remote repository inside our firewall which acts as a mirror to
external repositories. This mirror has internet access, and as such
can go can fetch dependencies if it doesn't already have them cached.
It doesn't look like the M2 repository which is embedded in NB is
aware of this? I've tried setting the mevenide/maven2/settings.xml
file to include the same mirror settings as my ~/.m2/settings.xml
file, but that hasn't seemed to do anything?
Am I expecting the "Run" target to do the wrong thing? Or can it,
but I haven't configured this correctly?
Thanks for any help,
Ed
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email