I'm attempting to populate our internal repository with artifacts
corresponding to the recent NetBeans 6.8 release using the
nbm:populate-repository goal from v3.1 of the nbm-maven-plugin.  The only
problem I've run into is that nbm files are being copied from the
nbbuild/nbms directory to the target repository as jars.

The command I'm using is:

mvn nbm:populate-repository -DforcedVersion=RELEASE68
-DnetbeansInstallDirectory=nbbuild/netbeans
-DnetbeansSourcesDirectory=nbbuild/build/source-zips
-DnexusIndexDirectory=/tmp/nexus-index
-DnetbeansJavadocDirectory=nbbuild/build/javadoc
-DnetbeansNbmDirectory=nbbuild/nbms/

And here's a sample of the log output:

[INFO] Installing nbbuild/build/javadoc/org-openide-util.zip to
/home/chas/.m2/repository/org/netbeans/api/org-openide-util/RELEASE68/org-openide-util-RELEASE68-javadoc.jar
[INFO] Installing nbbuild/build/source-zips/org-openide-util.zip to
/home/chas/.m2/repository/org/netbeans/api/org-openide-util/RELEASE68/org-openide-util-RELEASE68-sources.jar
[INFO] Installing nbbuild/nbms/org-openide-util.nbm to
/home/chas/.m2/repository/org/netbeans/api/org-openide-util/RELEASE68/org-openide-util-RELEASE68.jar
[INFO] Installing nbbuild/netbeans/platform11/lib/org-openide-util.jar to
/home/chas/.m2/repository/org/netbeans/api/org-openide-util/RELEASE68/org-openide-util-RELEASE68.jar

The goal certainly seems to have found the nbm files -- it's copying them,
after all -- but they're being copied to where the module's associated jar
file is being stored, rather than to their proper resting place.  (In the
case of the module in the above log output,
/home/chas/.m2/repository/org/netbeans/api/org-openide-util/RELEASE68/org-openide-util-RELEASE68.nbm
is the correct destination path IIUC.)

I've perused the source of PopulateRepositoryMojo.java et al. for hints,
tried using v3.0 of nbm-maven-plugin, performing a local-only or remote-only
population, and eliminated inclusion of source and javadoc jars, to no
avail.

Thoughts?

Thanks very much in advance,

- Chas
-- 
View this message in context: 
http://old.nabble.com/nbm%3Apopulate-repository-installing-deploying-nbms-as-jars--tp26795977p26795977.html
Sent from the mojo - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to