Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6024765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:12:11+00:00 2026-05-23T04:12:11+00:00

In my project I have the following structure: src/ plugins/ \__ mpc |__ oper

  • 0

In my project I have the following structure:

src/

plugins/

\__ mpc

|__ oper

I compile all of the scala files in src into a single jar (the main program), then each subdirectory in plugins contains scala files that should build a plugin jar to be loaded by the main program (so one jar for plugins/mpc and another for plugins/oper).

In the root I have a build.sbt:

name := “mrtoms”

organization := “chilon”

version := “0.1”

libraryDependencies ++= Seq(“commons-httpclient” % “commons-httpclient” % “3.1”)

crossPaths := false

scalaHome := Some(file(“/usr/share/scala”))

target := file(“project/target”)

scalaSource in Compile <<= baseDirectory(_ / “src”)

mainClass := Some(“org.chilon.mrtoms.MrToms”)

That builds my main jar file from the files in src just fine.. how do I add jars for the sources file in each plugin directory?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:12:12+00:00Added an answer on May 23, 2026 at 4:12 am

    Seems that you need full configuration (at the moment you are using basic one):

    https://github.com/harrah/xsbt/wiki/Full-Configuration

    In your case, root project is your main jar. Each plugin should then have it’s own project, that root project aggregates. Full configuration can be something like this:

    import sbt._
    
    object MyBuild extends Build {
        lazy val root = Project("root", file(".")) aggregate (mpc, oper) 
        lazy val mpc  = Project("mpc", file("plugins/mpc")) dependsOn(pluginApi)
        lazy val oper = Project("sub2", file("plugins/oper")) dependsOn(pluginApi)
        lazy val pluginApi = Project("pluginApi", file("plugins/api"))
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have the following file structure: app/ app.py controllers/ __init__.py project.py plugin.py If
MSBuild 3.5 I have the following project structure: trunk/MainSolution.sln trunk/Build/MyBuild.Proj trunk/Library/... trunk/etc... So far,
Let's say we have a solution with the following structure: Project.DAL - Data access
I have an Xcode project with the following group structure: ProjectName/ Classes/ class1.h class1.m
Suppose I have the following directory layout in a Maven project: src/ |-- main
I have a maven project with the following packages (for illustration only): Root: src/main/java
If i have the following directory structure: Project1/bin/debug Project2/xml/file.xml I am trying to refer
The following have been proposed for an upcoming C++ project. C++ Coding Standards, by
I have the following XML document: <projects> <project> <name>Shockwave</name> <language>Ruby</language> <owner>Brian May</owner> <state>New</state> <startDate>31/10/2008
I have a project that has the following line in the additional includes section:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.