Ant,
 thanks for the pointers here.  I am persisting with this,  but I thought
I'd just post an update as this doesn't seem to be working as it should.  I
have two main problems,  one is when attempting to deploy the SDO tools jar
by command -- see [1], the maven command removes the pom i'm trying to
deploy in mid flow.

The other is deploying the standalone pom corresponding to the SDO reactor
build.  There is guidance at [2] but neither way described there seems to
work,  for the straight file deploy route i get [3]


I'll keep plugging on, but if anyone has any insights they are very welcome

Kelvin



[1]
C:\Documents and
Settings\ibm_user\.m2\repository\org\apache\tuscany\sdo\tuscany-sdo-tools\1.0-incubating-beta1>ls
tuscany-sdo-tools-1.0-incubating-beta1.jar
tuscany-sdo-tools-1.0-incubating-beta1.pom

C:\Documents and
Settings\ibm_user\.m2\repository\org\apache\tuscany\sdo\tuscany-sdo-tools\1.0-incubating-beta1>mvn
deploy:de
ploy-file 
-DrepositoryId=people.apache.org-Durl=scp://people.apache.org/home/kelvingoodson/public_html/repo
-DgeneratePom=fa
lse -DpomFile=tuscany-sdo-tools-1.0-incubating-beta1.pom -Dfile=
tuscany-sdo-tools-1.0-incubating-beta1.jar -DgeneratePom=fals
e -DgroupId=org.apache.tuscany.sdo -DartifactId=tuscany-sdo-tools -Dversion=
1.0-incubating-beta1
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'deploy'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [deploy:deploy-file] (aggregator-style)
[INFO]
----------------------------------------------------------------------------
[INFO] [deploy:deploy-file]
Password:: ********
Uploading:
scp://people.apache.org/home/kelvingoodson/public_html/repo/org/apache/tuscany/sdo/tuscany-sdo-tools/1.0-incubatin
g-beta1/tuscany-sdo-tools-1.0-incubating-beta1.jar
108K uploaded
[INFO] Retrieving previous metadata from people.apache.org
Password:: ********
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error installing artifact's metadata: Error installing metadata:
Error copying POM to the local repository.

File C:\Documents and
Settings\ibm_user\.m2\repository\org\apache\tuscany\sdo\tuscany-sdo-tools\1.0-incubating-beta1\tuscany-
sdo-tools-1.0-incubating-beta1.pom does not exist

[2]

http://docs.codehaus.org/display/MAVENUSER/Deploy+Plugin


[3]

C:\temp>mvn deploy:deploy-file
-DgroupId=org.apache.tuscany.sdo-DartifactId=tuscany-sdo -Dversion=
1.0-incubating-beta1 -Dpac
kaging=pom 
-Dfile=tuscany-sdo-1.0-incubating-beta1.pom-Durl=scp://people.apache.org/home/kelvingoodson/public_html/repo
-Dre
positoryId=people.apache.org -DgeneratePom=false
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'deploy'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [deploy:deploy-file] (aggregator-style)
[INFO]
----------------------------------------------------------------------------
[INFO] [deploy:deploy-file]
Password:: ********
Uploading:
scp://people.apache.org/home/kelvingoodson/public_html/repo/org/apache/tuscany/sdo/tuscany-sdo/1.0-incubating-beta
1/tuscany-sdo-1.0-incubating-beta1.pom
6K uploaded
[INFO] Retrieving previous metadata from people.apache.org
Password:: ********
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] null
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
       at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:795)
       at
org.apache.maven.project.artifact.ProjectArtifactMetadata.storeInLocalRepository
(ProjectArtifactMetadata.java:92)
       at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.deploy
(DefaultRepositoryMetadataMan
ager.java:428)
       at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy
(DefaultArtifactDeployer.java:86)
       at org.apache.maven.plugin.deploy.DeployFileMojo.execute(
DeployFileMojo.java:236)
       at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:420)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
       at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(
DefaultLifecycleExecutor.java:493)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:463)
       at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:311
)
       at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:224)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:143)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:64)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:615)
       at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
       at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
------------------------------------------------------------------------



On 25/04/07, ant elder <[EMAIL PROTECTED]> wrote:

On 4/25/07, kelvin goodson <[EMAIL PROTECTED]> wrote:
>
> I've got to the point where I have packaged up a new beta1 SDO java
> release
> candidate in the style if the last one [1],  but that's only part of the
> process now that I have to set up a remote maven repository as a staging
> post for the deployed release candidate artifacts (as per the recent
> discussion on incubator general).
> I'm just about to figure out how to create/configure the repo, but any
> tips
> on the process for making the maven repo are welcome;


Ideally the build would be setup with the maven release plugin, but
without
that you can deploy individual files manually. As an example, I've just
deployed the sdo impl jar in that beta1-rc1 to a temp folder in my
people.a.o space (http://people.apache.org/~antelder/temp/) with the
following:

mvn deploy:deploy-file
-DgroupId=org.apache.tuscany.sdo-DartifactId=tuscany-sdo-impl
-Dversion=
1.0-incubating-beta1 -Dpackaging=jar -Dfile=
tuscany-sdo-impl-1.0-incubating-beta1.jar
-DrepositoryId=
apache.rsync-Durl=scp://people.apache.org/home/antelder/public_html/temp

   ...ant

Reply via email to