David, I wasn't suggesting the pom would be in the jar. Thanks for taking the time to reply. Sincerely appreciated.
I put -DgeneratePom=true on the end of the command above and the pom was generated.
So, to replicate the problem I was having regarding pom generation, I deleted the spring/j2ee/mail directory which wiped out the jar and pom. Reissued my original command without -DgenereatePom=true. I looked in my local repo, checked the spring/j2ee/mail/spring-mail, found maven-metadata-local.xml and a folder named 0.0.0. Inside 0.0.0 was only a single jar named mail.jar and no pom.
I then ran a clean and build in netbeans, here is the dump.
NetBeans: Executing 'mvn.bat -Dnetbeans.execution=true clean install'
NetBeans: JAVA_HOME=C:\Program Files\Java\jdk1.6.0_16
Scanning for projects...
------------------------------------------------------------------------
Building solr-maven
task-segment: [clean, install]
------------------------------------------------------------------------
[clean:clean]
[resources:resources]
Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory C:\workspace\solr-maven\src\main\resources
Downloading:
http://dis.local/repo/spring/j2ee/mail/spring-mail/0.0.0/spring-mail-0.0.0.pom
Unable to find resource 'spring.j2ee.mail:spring-mail:pom:0.0.0' in repository remoteRepo (
http://dis.local/repo)
Downloading:
http://dis.local/opt/snapshotRepo/spring/j2ee/mail/spring-mail/0.0.0/spring-mail-0.0.0.pom
Unable to find resource 'spring.j2ee.mail:spring-mail:pom:0.0.0' in repository remoteSnapshotRepo (
http://dis.local/opt/snapshotRepo)
Downloading:
http://repo1.maven.org/maven2/spring/j2ee/mail/spring-mail/0.0.0/spring-mail-0.0.0.pom
Unable to find resource 'spring.j2ee.mail:spring-mail:pom:0.0.0' in repository central (
http://repo1.maven.org/maven2)
[compiler:compile]
Compiling 8 source files to C:\workspace\solr-maven\target\classes
[resources:testResources]
Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory C:\workspace\solr-maven\src\test\resources
[compiler:testCompile]
Compiling 1 source file to C:\workspace\solr-maven\target\test-classes
[surefire:
test]
Surefire report directory: C:\workspace\solr-maven\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running ok.tax.gov.solr.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[jar:jar]
Building jar: C:\workspace\solr-maven\target\solr-maven-1.0-SNAPSHOT.jar
[install:install]
Installing C:\workspace\solr-maven\target\solr-maven-1.0-SNAPSHOT.jar to c:\LocalRepository\blah\blah\left this out\
------------------------------------------------------------------------
BUILD SUCCESSFUL
------------------------------------------------------------------------
Total time: 4 seconds
Finished at: Wed Aug 11 09:07:09 CDT 2010
Final Memory: 20M/36M
------------------------------------------------------------------------
Although it says build successful, there's a lot of dependencies I have on apache poi etc, that Netbeans is telling me that it can't find.
for example this class: NoPropertySetStreamException
which I have defined in the pom here
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.6</version>
</dependency>
lol, geeze, this is getting weirder as I go. By the way, I know these jar's are correct as I'm converting this existing project to maven.
I used this link
http://www.jarvana.com/jarvana/digest-check to get the dependency settings for the apache poi stuff.
Any suggestions are most welcome. I can't spend to much time on trying to convert this project. I really really really want it to be a maven project though.
Kev.