i better start a new thread, as the subject is misleading..
On Tue, Apr 19, 2011 at 7:14 PM, Nilesh - MiKu <[email protected]> wrote: > oh the solution worked.. thanks a ton... > > but it resulted in another problem... > > a bit of background.. > > i have a multi module project.. deployment of top parent module got > successful (packaging type - pom) > > but at second level it failed... it gives following error. > > Cannot create deployable. There's no registered deployable for the > parameters (container [id = [default]], deployable type [pom]). Valid types > for this deployable are: > - ear > - war > - file > - rar > - sar > - ejb > > the pom.xml has following entry.. > > <parent> > <groupId>pw</groupId> > <artifactId>base-dependencies</artifactId> > <version>1.0-SNAPSHOT</version> > </parent> > <modelVersion>4.0.0</modelVersion> > <artifactId>base</artifactId> > <packaging>pom</packaging> > > Note : base-dependencies have packaging of type pom. and that worked as i > have mentioned before. > > Link http://web.archiveorange.com/archive/v/F1XzEyz3zueRymFcSHZl seems to > be too much to circumvent this small error.. Also, the user complains that > it did not work.. > > any clue? > > On Tue, Apr 19, 2011 at 3:55 PM, Stuart McCulloch <[email protected]>wrote: > >> On 19 Apr 2011, at 11:08, Nilesh - MiKu <[email protected]> wrote: >> >> > i m using maven 2.0.9 and recently i have shifted my repository to >> sonatype >> > nexus 1.9.0.2 from archiva. >> > >> > I have migrated all the necessary artifcats to sonatype nexus as >> explained >> > in their docs and found no errors while rebuilding any indexes >> whatsoever in >> > the logs. The migration was successful. However, while deploying one of >> the >> > project, i get following error.. >> > >> > [INFO] Scanning for projects... >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] Building Unnamed - pw:pw-base-dependencies:pom:1.0-SNAPSHOT >> > [INFO] task-segment: [deploy] >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] [jar:test-jar {execution: default}] >> > [WARNING] JAR will be empty - no content was marked for inclusion! >> > [INFO] [site:attach-descriptor] >> > [INFO] Preparing source:jar >> > [WARNING] Removing: jar from forked lifecycle, to prevent recursive >> > invocation. >> > [INFO] No goals needed for project - skipping >> > [INFO] [source:jar {execution: default}] >> > [INFO] [install:install] >> > [INFO] Installing /somepath/base/base-dependencies/pom.xml to >> > >> /home/nilesh/MiKuStuff/Workspace/_app_base/Maven2Repo/pw/pw-base-dependencies/1.0-SNAPSHOT/pw-base-dependencies-1.0-SNAPSHOT.pom >> > [INFO] Installing >> > >> /somepath/base/base-dependencies/target/WEB-INF/lib/pw-base-dependencies-1.0-SNAPSHOT-tests.jar >> > to >> > >> /home/nilesh/MiKuStuff/Workspace/_app_base/Maven2Repo/pw/pw-base-dependencies/1.0-SNAPSHOT/pw-base-dependencies-1.0-SNAPSHOT-tests.jar >> > [INFO] [deploy:deploy] >> > altDeploymentRepository = null >> > [INFO] Retrieving previous build number from snapshots >> > [INFO] >> > ------------------------------------------------------------------------ >> > [ERROR] BUILD ERROR >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] Error retrieving previous build number for artifact >> > 'pw:pw-base-dependencies:pom': Cannot read metadata from >> > >> '/somepath/_app_base/Maven2Repo/pw/pw-base-dependencies/1.0-SNAPSHOT/maven-metadata-snapshots.xml': >> > expected START_TAG or END_TAG not TEXT (position: TEXT seen >> > ...<classifier>tests</... @14:28) >> > >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] For more information, run Maven with the -e switch >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] Total time: 7 seconds >> > [INFO] Finished at: Thu Apr 14 21:10:06 IST 2011 >> > [INFO] Final Memory: 18M/122M >> > [INFO] >> > ------------------------------------------------------------------------ >> > >> > >> > The contents of the file being complained >> > (i.e. maven-metadata-snapshots.xml) has following contents.. >> > >> > >> > <?xml version="1.0" encoding="UTF-8"?> >> > <metadata modelVersion="1.1.0"> >> > <groupId>pw</groupId> >> > <artifactId>pw-base-dependencies</artifactId> >> > <version>1.0-SNAPSHOT</version> >> > <versioning> >> > <snapshot> >> > <timestamp>20100617.105422</timestamp> >> > <buildNumber>11</buildNumber> >> > </snapshot> >> > <lastUpdated>20110411220259</lastUpdated> >> > <snapshotVersions> >> > <snapshotVersion> >> > <classifier>tests</classifier> >> > <extension>jar</extension> >> > <value>1.0-20100617.105422-11</value> >> > <updated>20100617105422</updated> >> > </snapshotVersion> >> > <snapshotVersion> >> > <extension>pom</extension> >> > <value>1.0-20100617.105422-11</value> >> > <updated>20100617105422</updated> >> > </snapshotVersion> >> > </snapshotVersions> >> > </versioning> >> > </metadata> >> > >> > >> > Googling did not give any hint on what is to be done. And i dont >> understand >> > what is wrong with this situation. >> >> Nexus 1.9 is serving up the latest format of maven metadata (see >> http://jira.codehaus.org/browse/MNG-4452 for some background) >> >> If you update to Maven 2.0.10 then it can handle the additional entries >> and the problem should go away >> >> > Please help. Please revert if some more >> > information is needed. >> > >> > >> > -- >> > Best Regards, >> > Nilesh Mevada >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > > -- > Best Regards, > Nilesh Mevada > -- Best Regards, Nilesh Mevada
