Maven is not picking up my 3 new properties

My main class references a class, and running maven w/o referencing the new properties it works fine when I do:

mvn assembly:assembly

If I reference a new property, I get this error:

[ERROR] /Users/.../[41,58] cannot find symbol
[ERROR] symbol  : method getDefaultScore()

This is a multi-maven project. The dependency is a local one that is just another maven module, so not sure why it isn't picking this new property up.

I did run mvn clean at the root just in case things where cached.

Note: This application works fine when I build and run it via IntelliJ, but using maven it doesn't seem to be liking this new property (which doesn't is simply a string property that returns a value that I assign, it isn't reading from a property file or anything).

When running with debug:

mvn assembly:assembly -X

I get the same 'cannot find symbol' and the location is my other maven module's class, and then I get:

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project myapp-jobs: Compilation failure
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
    at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(
    at org.apache.maven.DefaultMaven.doExecute(
    at org.apache.maven.DefaultMaven.execute(
    at org.apache.maven.cli.MavenCli.execute(
    at org.apache.maven.cli.MavenCli.doMain(
    at org.apache.maven.cli.MavenCli.main(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
    at org.apache.maven.plugin.AbstractCompilerMojo.execute(
    at org.apache.maven.plugin.CompilerMojo.execute(
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
    ... 23 more

Just to make sure, I replaced the reference of the new property with a property that is older, and the mvn command ran fine, so it is def. having an issue with the new property, which is simply:

public class Settings {
private String defaultScore = "100";

  public String getDefaultScore() {
        return defaultScore;


My computer/maven versions etc:

  • Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
  • Maven home: /Users/../java/apache-maven-3.0.3
  • Java version: 1.6.0_31, vendor: Apple Inc.
  • Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
  • Default locale: en_US, platform encoding: MacRoman
  • OS name: "mac os x", version: "10.7.4", arch: "x86_64", family: "mac"


Please make sure that you use the right version of the dependency project where you added the new property. If this project has version 1.0.0-SNAPSHOT (it's a snapshot version, right?), make sure to reference this version in the project where you want to see the property.

Once the versions have been verified, run a mvn clean install in the root to rebuild all of your dependencies.

If that doesn't work, please check your local Maven repository (in ~/.m2) to check that the JAR file of the dependency contains the latest version of the class.

Have you tried running mvn install in the first module?

Need Your Help

How to calculate the height of a T-tree?

math b-tree avl-tree

I sit with a piece of code of a T-tree index. A T-tree is a modified AVL-tree so that each node can hold many elements, as opposed to the AVL-tree, that can hold only 2 elements per node. The balan...

Align normal of plane to camera

camera alignment projection perspective plane

I use a perspective projection camera and need to align a 3D plane so that it is facing the camera. I believe it has something to do with aligning the normal to the ray projected from the camera to...