This maybe dumb question, but I new to Java/Maven and cannot find any
good resources that would describe whole building, deployment,
binaries running workflow...
Here I probably need to describe what I'm trying to do (maybe this is
completely wrong approach I'm trying to implement).
We have Windows Dev environment with:
Scala+Lift+Jetty+Eclipse+Maven+maven-scala-plugin+maven-eclipse-
plugin
Test/Production Linux environment:
Maven+maven-scala-plugin+Scala+Jetty+Lift
Each dev machine and server would have local repository where all our
libs and servers are deployed
Now I'm trying to create a workflow for publishing/running test/
production servers.
1. Build release project
2. Deploy release binaries to Artifactory (private remote repository)
3. Run on test/production server machines those new binaries
Here are 2 questions:
1. How to deploy binaries to new empty machine from remote repository
(can it be done at all) or I need to install it some other way (not
using Maven)?
2. How to run using Maven compiled (jar) binaries installed into
local
(or maybe remote) repository?
Do I need to change maven't settings.xml to define maven-scala-plugin
so I can run commands "mvn scala:xxxx" from random location? If yes,
how?

On Jul 29, 10:14 am, ph <[email protected]> wrote:
> If I have private remote repository, I deploy there a new binaries,
> then all my servers need to run those binaries. I would need to get
> them to local repository and run locally.
> What would be a right workflow for that?
>
> On Jul 29, 4:54 am, David Bernard <[email protected]> wrote:
>
>
>
> > Hi,
>
> > I don't understand what you try to do and what you mean by "Now I need to
> > run project from repository" ?
> > Could you provide the use case ?
>
> > I also copy/move to the mailing-list maven-and-scala.
>
> > /davidB
>
> > On Tue, Jul 28, 2009 at 23:16, ph <[email protected]> wrote:
>
> > > Maybe better question would be:
> > > How to run scala artifact from maven repository (local and/or private
> > > remote)?
>
> > > On Jul 28, 3:28 pm, Timothy Perrett <[email protected]> wrote:
> > > > Hey there,
>
> > > > I wrote an article previously about how to use launchers with maven-
> > > > scala-plugin, find it here:http://is.gd/1RuLQ
>
> > > > Does that help?
>
> > > > Cheers, Tim
>
> > > > On Jul 28, 7:32 pm, ph <[email protected]> wrote:
>
> > > > > Is there a good recourse on how to setup/use scala project with maven?
>
> > > > > I've installed maven that comes with lift. Project is created with
> > > > > Eclipse maven plugin (q4ehttp://code.google.com/p/q4e/). I build and
> > > > > install scala project to local repository fine.
> > > > > I can also run project using "mvn scala:run" command from project
> > > > > folder.
> > > > > Now I need to run project from repository and I cannot figure out how
> > > > > to do so. Would I need to use "mvn scala:run"? This will resolve
> > > > > dependencies and install all required libraries...
> > > > > Scala plugin is not recognized as it declared only in "pom". I'm
> > > > > trying to update maven's "settings.xml", adding this:
>
> > > > >         <profile>
> > > > >                 <id>env-dev</id>
> > > > >                 <repositories>
> > > > >                         <repository>
> > > > >                                 <id>scala-tools.org</id>
> > > > >                                 <name>Scala-tools Maven2
> > > Repository</name>
> > > > >                                 <url>
> > >http://scala-tools.org/repo-releases</url>
> > > > >                         </repository>
> > > > >                 </repositories>
> > > > >                 <pluginRepositories>
> > > > >                         <pluginRepository>
> > > > >                                 <id>org.scala-tools</id>
> > > > >                                 <name>Scala-tools Maven2
> > > Repository</name>
> > > > >                                 <url>
> > >http://scala-tools.org/repo-releases</url>
> > > > >                         </pluginRepository>
> > > > >                 </pluginRepositories>
> > > > >         </profile>
>
> > > > >   </profiles>
>
> > > > >   <activeProfiles>
> > > > >     <activeProfile>env-dev</activeProfile>
> > > > >   </activeProfiles>
>
> > > > > now if I run "mvn scala:run -DmainClass=..." it gives me error:
> > > > > [ERROR] BUILD ERROR
> > > > > [INFO]
>
> > > ------------------------------------------------------------------------
> > > > > [INFO] The plugin 'org.apache.maven.plugins:maven-scala-plugin' does
> > > > > not exist or no valid version could be found
>
> > > > > Maybe there is another way to run project from maven repository?
>
> > > > > Next step for me will be installing artifact into private remote
> > > > > repository (Artifactory) and run project from that remote
> > > > > repository... Any suggestions?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to